Hi Ahmad,
In the Button_Click event, call the ComboBox1_SelectedIndexChanged method, passing the same parameters sent to the Click 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
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi