Simple question. I have MainForm and settingsForm. The settings form is initialized once, and then displayed each time the user clicks a button. I need to do something when this button is pressed.
m_inputSettings.ShowDialog(this);
This is MainForm, which invokes the settings form, and itβs great. But I need SettingsForm to do something every time this happens. At present, I cannot understand if this call actually causes any events for which I can set handlers. Does this event trigger an event? If not, is there any other way that I can say that my SettingsForm does something every time this call is made?
Note. Any code in the main form after this line will not be executed until the SettingsForm function returns, but this is intentional.
Thanks.
Edit: One of the things in which I want my form to do this selects a specific control when this happens, but it seems like this is not possible until the form is loaded.
Akron source share