• Want to help us with this year's BoS Trials?
    Let us know before 30 June. See this thread for details
  • Looking for HSC notes and resources?
    Check out our Notes & Resources page

Help plz VB6 (1 Viewer)

Mohit7

Member
Joined
Mar 25, 2006
Messages
35
Gender
Male
HSC
2007
For a major assignment I have to make a quiz.

I need help with how to open a new form according to what is written in the label(the label keeps changing), so i need to know how to open the form according to what appears in the label. Basically a number appears in the label.

Thanks
 

sasquatch

Member
Joined
Aug 15, 2005
Messages
384
Gender
Male
HSC
2006
Mohit7 said:
For a major assignment I have to make a quiz.

I need help with how to open a new form according to what is written in the label(the label keeps changing), so i need to know how to open the form according to what appears in the label. Basically a number appears in the label.

Thanks
You werent very clear in what you wanted, but this might be useful.

Code:
Select Case Label1.Caption
    Case "0"
        Form1.Show
    Case "1"
        Form2.Show
    Else
        Form5.Show
End Select
Repost describing what you require in more detail.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top