I am trying to create an informationBox which should just work like Balloon Tip
I want to hide the informationBox while user moves his mouse or presses any key on his keyboard
How should I detect that if a user has moved his mouse or pressed any key on the keyboard
About User Input in vb.net
Page 1 of 14 Replies - 137 Views - Last Post: 29 January 2013 - 04:12 AM
Replies To: About User Input in vb.net
#2
Re: About User Input in vb.net
Posted 28 January 2013 - 02:33 PM
You could use the MouseHover and MouseMove event to show and hide your balloon tip.
Private Sub IamDoingSomething_MouseHover(sender As Object, e As System.EventArgs) Handles Me.MouseHover
balloontip.visible = true
End Sub
Private Sub IamDoingSomething_MouseMove(sender As Object, e As System.EventArgs) Handles Me.MouseHover
balloontip.visible = false
End Sub
#3
Re: About User Input in vb.net
Posted 28 January 2013 - 02:39 PM
You could add the ToolTip control to the form. You can then set the ToolTip property for specific controls on your form. You can also do this programmatically, perhaps in the forms' load event:
The ToolTip control has a number of properties that you can explore.
If you wish to do this yourself then you'll need to investigate the various mouse and keyboard events for the form and its controls and use these to move a, perhaps, PictureBox, or even a Label.
If you are using the full version of VS then there's probably a Package that you can install for this.
ToolTip1.SetToolTip(TextBox1, "Hello textbox 1")
The ToolTip control has a number of properties that you can explore.
If you wish to do this yourself then you'll need to investigate the various mouse and keyboard events for the form and its controls and use these to move a, perhaps, PictureBox, or even a Label.
If you are using the full version of VS then there's probably a Package that you can install for this.
This post has been edited by andrewsw: 28 January 2013 - 02:41 PM
#4
Re: About User Input in vb.net
Posted 29 January 2013 - 12:36 AM
ya it was helpful
But I want to say that if you use GMail then you might have seen the Information Box at the top which gives information about what you have done. e.g. SAVED or THE MESSAGE HAS BEEN DELETED
I want to have the same thing in my desktop application and I have done it but I want some Additional features on it like informationBox should hide while user moves his mouse or press any key
I know I have to use some mousemove and keydown events
But I am Creating a Class Library Project, So how should I write these events for the container i.e. form in which the InformationBox will be Dropped
Thanks again for replying
But I want to say that if you use GMail then you might have seen the Information Box at the top which gives information about what you have done. e.g. SAVED or THE MESSAGE HAS BEEN DELETED
I want to have the same thing in my desktop application and I have done it but I want some Additional features on it like informationBox should hide while user moves his mouse or press any key
I know I have to use some mousemove and keydown events
But I am Creating a Class Library Project, So how should I write these events for the container i.e. form in which the InformationBox will be Dropped
Thanks again for replying
#5
Re: About User Input in vb.net
Posted 29 January 2013 - 04:12 AM
Ah, you didn't mention that you were creating a custom control. Have a look through the tutorials on this site.
I guess you would have to subscribe to events of your custom controls' parent containers' parent form
. Something like
You may have to extend the ExtenderControl class which kinda adds new properties to other controls on the form.
But I'm only speculating. Maybe someone who has already achieved something similar will contribute. Good luck.
I guess you would have to subscribe to events of your custom controls' parent containers' parent form
your_instance.FindForm.ParentForm
You may have to extend the ExtenderControl class which kinda adds new properties to other controls on the form.
But I'm only speculating. Maybe someone who has already achieved something similar will contribute. Good luck.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|