I have two WinForms: MainMenu and Edit_Select. Edit_select is created at the class level of Edit_Select as follows:
Public Shared es_form As New Edit_select
The sequence of events goes like this: When the app is started, MainMenu is loaded. MainMenu form allows the user to enter search criteria. After the user does that and clicks the submit button on MainMenu, the next form is displayed with this line:
Edit_select.es_form.Show()
"edit_select_load" (handles mybase.load) is then executed.
Good.
Here's my problem. The first time the app runs, it works fine. But subsequent times that the user uses the MainMenu, after
Edit_select.es_form.Show() is executed,
"edit_select_load" (handles mybase.load) is not executed at all.
The result is that the second search (and beyond) all use the initial search criteria.
How do I get "edit_select_load" (handles mybase.load) to execute the second time around, as it does with the initial search? What can I do to trick the SHOW() method into calling "edit_select_load" (handles mybase.load) with each search - not just the first one?
Thanks so much - have a good weekend!
Lazer
Public Shared es_form As New Edit_select
The sequence of events goes like this: When the app is started, MainMenu is loaded. MainMenu form allows the user to enter search criteria. After the user does that and clicks the submit button on MainMenu, the next form is displayed with this line:
Edit_select.es_form.Show()
"edit_select_load" (handles mybase.load) is then executed.
Good.
Here's my problem. The first time the app runs, it works fine. But subsequent times that the user uses the MainMenu, after
Edit_select.es_form.Show() is executed,
"edit_select_load" (handles mybase.load) is not executed at all.
The result is that the second search (and beyond) all use the initial search criteria.
How do I get "edit_select_load" (handles mybase.load) to execute the second time around, as it does with the initial search? What can I do to trick the SHOW() method into calling "edit_select_load" (handles mybase.load) with each search - not just the first one?
Thanks so much - have a good weekend!
Lazer