Visual Basic Development Bookmark and Share   
 Home > Visual Basic Power Packs > open and hide panel
 

open and hide panel

How to ask this, I've build a form in VB08. I placed a Split panel on the form. Is there a way to hide and open one of the panels, simalar to the toolbox in visual studio. or is there a better way to open and hide information on a current screen. Thanks for any help.
IrishWolf
Failure is not an option! But sometime you need to look at those option.
IrishWolf  Wednesday, September 09, 2009 5:35 PM

Hey John Chen,
Thanks for replying, the thread you referred me to has some great ideas, but that's not what I was looking for or I guess I could use those methods. I didn't explain what I was exactly what I was looking for. I did resolve the issue. I'll post below for those of you who may be looking for the same. Sorry I'll work on my future questions.]

I only need to reduce the form size to hide the Item listed on a tab control in the bottom half on my form, by simply checking and Un-checking a box. I didn't use the split panel.

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged

If CheckBox1.Checked Then

Me.Size = New System.Drawing.Size(850, 673)

Else

Me.Size = New System.Drawing.Size(850, 418)

End If

End Sub

Thanks Again
Irish Wolf


Failure is not an option! But sometime you need to look at those option.
  • Marked As Answer byIrishWolf Thursday, September 10, 2009 8:26 PM
  •  
IrishWolf  Thursday, September 10, 2009 8:26 PM
Maybe you can take a look Martin's reply in this thread.
http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/aa1cb59e-03a6-4d28-8689-cce0376bd19d


John Chen -- See my team blog: http://blogs.msdn.com/vsdata. All my posts are provided "AS IS" with no warranties, and confer no rights.
John Chen MS  Thursday, September 10, 2009 4:13 AM

Hey John Chen,
Thanks for replying, the thread you referred me to has some great ideas, but that's not what I was looking for or I guess I could use those methods. I didn't explain what I was exactly what I was looking for. I did resolve the issue. I'll post below for those of you who may be looking for the same. Sorry I'll work on my future questions.]

I only need to reduce the form size to hide the Item listed on a tab control in the bottom half on my form, by simply checking and Un-checking a box. I didn't use the split panel.

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged

If CheckBox1.Checked Then

Me.Size = New System.Drawing.Size(850, 673)

Else

Me.Size = New System.Drawing.Size(850, 418)

End If

End Sub

Thanks Again
Irish Wolf


Failure is not an option! But sometime you need to look at those option.
  • Marked As Answer byIrishWolf Thursday, September 10, 2009 8:26 PM
  •  
IrishWolf  Thursday, September 10, 2009 8:26 PM

You can use google to search for other answers

Custom Search

More Threads

• VB Database Form Templates for VS 2005?
• My DataRepeater blog
• how can i view the .PS file created by PrintAction.PrintToFile?
• Combobox in a datarepeater
• Image analysis
• Child Forms
• VB6 support post vista era
• How can we implement Rubberband rectangle for RectangleShape,OvalShape
• Using Enter in place of Tab (DataGridView)
• Free MySQL Add-In That Works