i am new to VB.Net. I have an assignment to submit next week that is on the 5 november 2007, and am having some problem in creating my program. Can you please help?
i want to limit my MDI to open only one specific form at a time. like for example if the menu balance is selected from the mdi, it must display a form and the menu in the mdi mus be disable.
Here is the code used, the only thing is that i do not know how to make the button enable again once the form is closed.
Public Class Bank_Account
Dim View_Balance As Integer = 0
Dim childForms(1) As Balance
Private Sub mnuBalance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuBalance.Click
View_Balance += 1
childForms(View_Balance) = New Balance
childForms(View_Balance).Text = "ChildForm" & Str(View_Balance)
'setting title for child windows and incrementing the number with an array
childForms(View_Balance).MdiParent = Me
mnuBalance.Visible = False
please do answer me because i really don't know what to do anymore.
i wanted to use an if condition to do the above by the click of the button but i do not know how. please help.