teamdad Posted January 4, 2004 Posted January 4, 2004 Is there an easy way that can be explained on how to get vb.net to show text in the status bar when the curser is passed over a menu item and sub menu item? For example: clicking and then hovering your mouse on the word File brings up the text "Contains commands for working with the selected items."..... then when you hover the mouse down to the sub menu items with out clicking on them the text in the status bar changes to the description of what each sub menu item does. So far I have only got it to work by using the following code and it only works one time when the item is clicked on, it won't change the text when the mouse is moved to another item. I think there would need to be a response to MenuItem2 like a mouse over or something that would work but I haven't been able to come up with it either with just StatusBar1.Text or StatusBarPanel1.Text to specifically put the text in the first panel. Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click StatusBar1.Text = "This text shows in the status bar!" End Sub Thanking those that reply in advance. Quote
sizer Posted January 4, 2004 Posted January 4, 2004 try with this: Private Sub MenuItem2_Select(ByVal sender As Object, ByVal e As System.EventArgs) Handles MenuItem2.Select StatusBar1.Panels(0).Text = "menu1" End Sub :D Quote Some people are wise and some are other-wise.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.