Jas91
Member
...and I think it needs an exorcist!
Seriously, jokes apart...
The bug is in the startup form, which is a main-menu form with a list of buttons.
When I run the project, it actually plays a sound from a wav file, but I never wrote any code to make it do this on the form load.
I wrote the code to play that sound only when buttons are clicked.
you also have to know that I have no code in any other event of the form
the rest of the code is on button clicks and other controls.
Is there anything/event that runs before form_load? or have any idea? if you need other info/code, just ask...but I guess it must be a conceptual bug about what happen first during the form initialization
Seriously, jokes apart...
The bug is in the startup form, which is a main-menu form with a list of buttons.
When I run the project, it actually plays a sound from a wav file, but I never wrote any code to make it do this on the form load.
I wrote the code to play that sound only when buttons are clicked.
VB.NET:
Private Sub frmMainMenu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Here the debug breaks, but the sound has already been played!
Stop
Call LoadSettings()
Call LoadLanguagesList()
cmbLanguage.SelectedIndex = selectedLanguageID
...
End Sub
you also have to know that I have no code in any other event of the form
the rest of the code is on button clicks and other controls.
Is there anything/event that runs before form_load? or have any idea? if you need other info/code, just ask...but I guess it must be a conceptual bug about what happen first during the form initialization