Hi,
It has been 9 years since I have done some VB.NET development and I have never done anything with Tabbed form applications.
I ran into a problem when I wanted to copy a simple text box that was coupled to the MainForm Controls.Collection. As soon as I copied and pasted it, using the designer, Visual Studio linked it to the
Controls.Collection of the visible tab page so it ended up something like this:
Me.TabPage1.Controls.Add(Me.lblConnecting)
But I needed it to be like this because I wanted it to be shown over any and all tab pages
Me.Controls.Add(Me.lblConnecting)
I found the first line of code in
MainForm.designer.vb Then I did something you are not supposed to do: I changed and relocated it in that file to the MainForm controls collection and sure enough it worked.
OK: it worked but is there a more conventional way of doing this within the Visual Studio Designer?
Any answer/suggestion much appreciated.
What I have tried:
Use Google wide and far but no clear answers. Lots of information on how to manipulate the control.collections via code but not on how to do it using the designer itself.