Click here to Skip to main content
15,909,373 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Validating XML in VB.NET Pin
Anonymous27-Jul-05 5:15
Anonymous27-Jul-05 5:15 
Generalfail to save new ATL ActiveX control on VB6 form page Pin
Amos.A27-Jul-05 3:51
Amos.A27-Jul-05 3:51 
GeneralStrange IO.Directory.Move behavior Pin
Brad Fackrell27-Jul-05 3:44
Brad Fackrell27-Jul-05 3:44 
Generalpcmcia card insertion detection Pin
Briga27-Jul-05 3:30
Briga27-Jul-05 3:30 
GeneralRe: pcmcia card insertion detection Pin
Briga27-Jul-05 4:28
Briga27-Jul-05 4:28 
GeneralTransparency within MDI application Pin
oakleaf27-Jul-05 3:19
oakleaf27-Jul-05 3:19 
GeneralRe: Transparency within MDI application Pin
oakleaf27-Jul-05 5:00
oakleaf27-Jul-05 5:00 
GeneralRe: Transparency within MDI application Pin
oakleaf27-Jul-05 7:30
oakleaf27-Jul-05 7:30 
OK so here was my way around it. Just never mind about transparency...

Used an owned form instead.Unsure | :~

At the form level:
Public WithEvents subnav As New System.Windows.Forms.Form

and within the load event of my main menu:

<br />
'add the owned form to the MDI parent<br />
F1.AddOwnedForm(subnav)<br />
'a little config<br />
        subnav.FormBorderStyle = FormBorderStyle.None<br />
        subnav.Text = ""<br />
        subnav.Width = 150<br />
        subnav.Height = 100<br />
'moves it to the extreme right of the main menu<br />
        subnav.Left = nav.Panel1.Width<br />
<br />
        subnav.Top = 100<br />
        subnav.BackColor = Color.AliceBlue<br />


And in the main menu buttons:

<br />
'Adds the existing panel from the main menu.<br />
'This kept me from having to move code and controls etc...<br />
        subnav.Controls.Add(nav.Panel2)<br />
<br />
        subnav.Controls.Item(0).Visible = True<br />
        subnav.Controls.Item(0).Left = 0<br />
        subnav.Controls.Item(0).Top = 0<br />
        subnav.Show()<br />


There are probly better ways to do this, but....
It works. And the link control events within the added panels still behave as they should. Again, without rewriting or copying and pasting...
Generalhelp on event handling Pin
bspro27-Jul-05 3:15
bspro27-Jul-05 3:15 
GeneralRe: help on event handling Pin
Briga27-Jul-05 3:42
Briga27-Jul-05 3:42 
GeneralRe: help on event handling Pin
bspro29-Jul-05 21:18
bspro29-Jul-05 21:18 
GeneralDLL Version Information Pin
Nagendra Kamath K27-Jul-05 2:05
Nagendra Kamath K27-Jul-05 2:05 
GeneralRe: DLL Version Information Pin
progload27-Jul-05 12:18
progload27-Jul-05 12:18 
GeneralRe: DLL Version Information Pin
Nagendra Kamath K27-Jul-05 22:15
Nagendra Kamath K27-Jul-05 22:15 
GeneralXML File Creation Pin
Mythri.B.L27-Jul-05 1:25
Mythri.B.L27-Jul-05 1:25 
GeneralRe: XML File Creation Pin
Briga27-Jul-05 3:39
Briga27-Jul-05 3:39 
GeneralXML file creation Pin
Anonymous27-Jul-05 1:23
Anonymous27-Jul-05 1:23 
GeneralUploading a File Pin
Raj_deepak26-Jul-05 23:29
Raj_deepak26-Jul-05 23:29 
GeneralRe: Uploading a File Pin
Dave Kreskowiak27-Jul-05 6:55
mveDave Kreskowiak27-Jul-05 6:55 
GeneralResolving hostname through a proxy server Pin
Fu Manchu26-Jul-05 23:27
Fu Manchu26-Jul-05 23:27 
GeneralSleep in VBScript Pin
Spaz8026-Jul-05 22:27
Spaz8026-Jul-05 22:27 
GeneralRe: Sleep in VBScript Pin
Dave Kreskowiak27-Jul-05 6:53
mveDave Kreskowiak27-Jul-05 6:53 
Generalunicode conversion Pin
justzain26-Jul-05 22:09
justzain26-Jul-05 22:09 
Generalvb6 call out side *.lib Pin
justzain26-Jul-05 21:49
justzain26-Jul-05 21:49 
GeneralRe: vb6 call out side *.lib Pin
Dave Kreskowiak27-Jul-05 6:50
mveDave Kreskowiak27-Jul-05 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.