Results 1 to 3 of 3

Thread: How to call the event?

  1. #1

    Thread Starter
    Lively Member adsc's Avatar
    Join Date
    Nov 2002
    Location
    Kuwait
    Posts
    71

    Question 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 <><>
    <><><><><><><><><><><><><><><><><><>

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You'd call it like any other method:
    VB Code:
    1. ComboBox1_SelectedIndexChanged(Nothing, System.EventArgs.Empty)

  3. #3

    Thread Starter
    Lively Member adsc's Avatar
    Join Date
    Nov 2002
    Location
    Kuwait
    Posts
    71
    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
  •  



Click Here to Expand Forum to Full Width