Results 1 to 2 of 2

Thread: runtime control with events how?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    runtime control with events how?

    hi,
    i have write codes that generate radio buttons at runtime.

    can u plz tell me how i get the events of this radio button...
    i define the code forms_load event bcoz it's first get some values from database then generate the radio buttons.

    if i write
    public withevents rd as radiobutton..............it says that i can't define withevetns in local variables..

    any idea??????

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: runtime control with events how?

    HI,
    similar to...

    VB Code:
    1. cmbx(ict) = New ComboBox
    2. cmbx(ict).Size = New System.Drawing.Size(200, 21)
    3. AddHandler cmbx(ict).SelectedIndexChanged, AddressOf cmbXsect_SelectedIndexChanged
    4.  
    5. Private Sub cmbXsect_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    6. ...

    Pete

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