|
-
Jul 17th, 2008, 04:14 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] [02/03] Simple combobox question
Hi people,
I was hoping someone could help me out please, the question is really simple.
I have 2 forms, on form 1 I have 2 buttons which both open up form 2. What I want is when button 1 opens up form2, I want to display text 1,3 and 4. And when button 2 opens up form 2 I want to display only text 2 in the combobox.
In the combobox collection I have the following text one, two, three, four.
So far I have the following coding which doesn't do much apart from display two in the combobox when button 2 is selected:
Code:
'button1
frm2.ShowDialog()
frm2.Dispose()
'button2
frm2.Tag = "Two"
frm2.ShowDialog()
frm2.Dispose()
frm2 load event'
If Me.Tag = "Two" Then
cmbnum.SelectedIndex = 1
cmbnum.Text = "Two"
Any help please? thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|