Synchronizing cursors and text boxes between forms in a VB.NET application.
Posted on 2006-11-14
We have an application that may or may not display more than one form at a time. We would like the cursor to be the same on all of them. IN other words, change the cursor on one and the rest will follow. Also, there are text boxes on them we would also like to be the same. Right now we are writing the text for each form in a separate line. Any ideas?
We've tried a handler:
Addhandler MyBase.CursorChanged, Addressof Change_Cursor
Public Sub Change_Cursor(sender as Object, e as System.EventArgs)
form2.Cursor = Me.Cursor
form3.Cursor = Me.Cursor
It should change the cursors in form2 and form3 when we set Me. Cursor=Cursors.WaitCursor shouldn't it?