|
-
Jul 29th, 2003, 12:30 AM
#1
Thread Starter
Lively Member
How to call the event?
Hi,
I have a form with a ComboBox, and I have an event if the Combobox indexchanged to do somthing as follow, and I have a button, if the button clicked it should call the ComboBox event.
How I can call the ComboBox event from the Button bush ?
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
MsgBox("change")
...
...
End Sub
Thanks for the help
<><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><>
-
Jul 29th, 2003, 01:02 AM
#2
You'd call it like any other method:
VB Code:
ComboBox1_SelectedIndexChanged(Nothing, System.EventArgs.Empty)
-
Jul 29th, 2003, 01:09 AM
#3
Thread Starter
Lively Member
Thank u Edneeis
Long time I didn't get replys from you 
And, you made my day!!
Thanks a lot
<><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><>
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
|