By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

OnScreen floating menu

P: n/a

I wan tto do a program that when the user activates the program it shows a contextmenu in the screen (without the form) and nothing more. But the menu must appear where the mouse is. I trued to do as below, but the menu appears not in the RIGHT position of the mouse. it also does not close when I click out of it

The code is here

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Loa

Dim str As Strin
Dim mnu As New ContextMen

For Each str In IO.Directory.GetFiles(path, "*.lnk"
mnu.MenuItems.Add(str.Replace(path & "\Microsoft Office", String.Empty).Replace(".lnk", String.Empty)
mnu.Show(Me, Control.MousePosition

End Su

Any help will be very useful

Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.