Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i want to create a menu (like the upper usual menu), but i want to put it in the left side of my main form (something like web sites links).

The menu supposed to have "main" items and every one from them should open to sub menu when the user press it (little menus like when you write click in other app.)

 

I don't know how to approach the problem, does some body have any idea?

  • *Experts*
Posted

You'll probably need to write your own control to do it, although a StatusBar control might be able to do it; dock it to the left side, and make each panel have one of the "main" items. Create a pop-up menu for each item, and when you click on the StatusBar panels, pop up the menu.

 

Failing that, a simply UserControl shouldn't be too hard to make for that purpose.

  • Leaders
Posted

here's an idea , put a panel on your form , set it so it's left is something like -150 ( depending on the width of the panel ) then do this :

Public OldPanelPos As Integer '/// public variable.

   Private Sub Panel1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseEnter
       Dim x As Integer
       OldPanelPos = Panel1.Left
       For x = OldPanelPos To 0
           Panel1.Left = x
       Next
   End Sub

   Private Sub Panel1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseLeave
       Panel1.Left = OldPanelPos
   End Sub

then the panel will slide on to the form , from being just sticking out. then you could add options on to the panel as menu's.

Posted

The bar look like exactly what I need, but I don't know how to use it (�¼) , when I try to run it I get this error massage:

 

"A project with an output type of class library cannot be started directly¡K.."

 

How do I run it, and I do I put my own missions to each button?

 

And finally- how do I put it in my own project?

 

A lot of thanks

  • *Experts*
Posted

Class library cannot be ran byitself, just like the error said :).

Go into your application project, then toolbar, then right click Add/Remove items, then .NET components, then browse button, and point to its location. Now it will appear in your toolbox and you will be able to place it on your form. From there its easy to add button and things like that.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...