Amien90
asked on
Windows.Forms.Cursor.Hide()
in Form2_Load i use Windows.Forms.Cursor.Hide( )
then ..
on Form2_Load
Windows.Forms.Cursor.Show( )
so far so good .. now i want the cursor hidden again when a close button on form2 is pressed or a user hits close button in the FormBorder..
On Event: Form2_Closing : Windows.Forms.Cursor.Hide( )
This Event should be trigger both when the close button is hit on the FormBorder as wel on the when Button1 on Form2 is clicked ..
For some reason this is not working
then ..
on Form2_Load
Windows.Forms.Cursor.Show(
so far so good .. now i want the cursor hidden again when a close button on form2 is pressed or a user hits close button in the FormBorder..
On Event: Form2_Closing : Windows.Forms.Cursor.Hide(
This Event should be trigger both when the close button is hit on the FormBorder as wel on the when Button1 on Form2 is clicked ..
For some reason this is not working
Private Setup_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Windows.Forms.Cursor.Hide()
End Sub
Private Sub Setup_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Windows.Forms.Cursor.Show()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER