I have two doubts..

1..I am trying to make a toolbox(As Like in the Visual studio screen at the left hand side ) in my project .when i put my mouse in the toolbox it should expand and when i put my mouse back then it should compressed.

2..In our Pc when we go to start and then search one search screen is coming..

In the left side some boxes are there where we are writing our search word ..i want to make my form as like the search screen ..

Can you Please share some idea with me...

Interesting, you could try this but I'm not guarenteeing it will work:

On form load size height to zero:

Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  me.height = 0
end sub

This will hopefully leave the menu bar of the form still visible. next use a mouse enter event to resize the form:

Private Sub Form_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseEnter
        Me.Height = 500
    End Sub

As I said Im just guessing at this...

Sorry, I'm not sure what you mean in point two.

Thanks for your reply..

As per your sugesstions i have done ..
Form load event is working one menu bar is coming but it should place in the left corner of the screen as per our visual studio application screen but mouse enter event is not working.In mouse enter event that form should expand .

If u have any further idea then please tell me..

2.My second question is -- i want to put some menus in the left side of my screen where i can select the menus.(Please go to "My Comuter" in your pc -- U can see one screen--In the left side u can see "System Tasks" - "Other Places" - "details" ,I want to do my screen like the "My Computer Screen" but i dont know how to do )

If u have anyidea then PLease tell me..I need this help very badly...

Thank you.


For no1, maybe try making the form something tiny e.g 1 px in height. Another option is to have a parent form with a menu item that opens a child form underneath with MDI but it could be tricky getting the positioning correct.

For no2 I think you'll be looking at a large form with containers like the panel class. Have a look on Google at the Panel, Groupbox and SplitContainer classes particularly SplitContainer...

For Mdi Child and parent forms: http://www.startvbdotnet.com/forms/mdi.aspx

For SplitContainer: http://msdn.microsoft.com/en-us/library/system.windows.forms.splitcontainer.aspx

For Panels: http://msdn.microsoft.com/en-us/library/system.windows.forms.panel.aspx

Thanks for your suggestions..

I will try and get back to you soon.


Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.