My app is possessed

Jas91

Member
Joined
Jul 12, 2012
Messages
17
Location
Baghdad, Italy. OK?=
Programming Experience
5-10
...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.

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
 
yes frmMainMenu is my project's startup form.
What you mean by "how do you initialize them"?
According to my code, that wav file should be played only in response to an user action (like clicking on a button). Shouldn't play alone :O

however...I think that the components are just initialized in frmMainMenu.Designer.vb, I never touched that file..
 
Back
Top