locked
How can I make the selected index event not fire before the form load is called? RRS feed

  • Question

  • User1113514742 posted
    I have a tab control with 5 pages. How can I make the selected index event not fire before the form load is called? What happens now is that when I showdialog my form, the selected index event fires before my form_load method is called. Weird. Thanks
    Tuesday, August 19, 2003 4:55 AM

All replies

  • User-1016547394 posted

    How can I make the selected index event not fire before the form load is called?

    No, the default index 0 will be selected, so the event must get fired.

    What happens now is that when I showdialog my form, the selected index event fires before my form_load method is called. Weird. Thanks

    Please just use if(IsPostBack) in the Selected event and do what you want because when you select an index and press a button, a PostBack will be generated.

    Friday, November 29, 2013 3:18 AM