I've got a StatusStrip...and I'm trying to initialize some code when it gets focus...so clicking on it should give focus to it right? I've tried the following code:
VB 2008 Code:
Private Sub StatusStrip_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StatusStrip.Enter MessageBox.Show("Wooh!") End SubVB 2008 Code:
Private Sub StatusStrip_GotFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StatusStrip.GotFocus MessageBox.Show("Wooh!") End Sub
The messagebox is just there to let me know it actually worked...but it isn't working...the messagebox isn't showing when I click on the StatusStrip, even when I'm sure it doesn't already have focus...suggestions?
Thanks.




Reply With Quote
