CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Posts
    11

    how to put info in picture box

    im trying to figure out how to add info into the picture box

    ive done it befor but i saved in on my comp and it crashed

    i need to desplay item, quantity and price
    also the sum tax and total

    could someone please give me a hint or an example i know its not to hard i just need a start

    thanks

  2. #2
    Join Date
    Jan 2003
    Location
    7,107 Islands
    Posts
    2,487

    Re: how to put info in picture box

    you can use the Print method. the following code will print "hello" on the point (100,100) of the picture box.

    Picture1.CurrentX = 100
    Picture1.CurrentY = 100
    Picture1.Print "hello"

    there are other controls also that you may use to do the same but in easy way - grid controls, textbox, etc.
    Busy

  3. #3
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923

    Re: how to put info in picture box

    You can also put a label into a picturebox with a transparent backstyle.

    JeffB
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

  4. #4
    Join Date
    Mar 2005
    Posts
    17

    Re: how to put info in picture box

    Quote Originally Posted by JeffB
    You can also put a label into a picturebox with a transparent backstyle.

    JeffB
    But then you can't save the image, because it's seperate controls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured