#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    9
    Rep Power
    0

    Writing to screen in VB 4


    How can I place text on the screen when using a form?
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    Add either a text box or label to the form.
    You can change the text programatically by accessing the object you added.
    for a text box:
    Text1.Text = "Something you want to show"
    or for a label
    Label1.Caption = "Something you want to show"
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    9
    Rep Power
    0

    Write to Form


    You mean that say if I had a Fireworks Display on my scree I would have to put a label or a button just to print my name or anything else?
  6. #4
  7. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    You have to have some form of object that will accept text. This is most commonly a text area or a label. This could also be a rich text control, etc...

    What are you trying to do?
    If you want the text to show up but not the background, easiest way would be to use a label and set the background to transparent. You might also want to set the zorder to 0 (I believe) which would put it to the top of the screen above everything else.

IMN logo majestic logo threadwatch logo seochat tools logo