|
-
Nov 14th, 2003, 09:59 AM
#1
Thread Starter
Frenzied Member
transferring from VB6 question
hello all,
I have been programming with VB6 for ages, now i found somethings within VB.NEt that i will need your help in.
1 - when i was doing a lenght jobs i usuall used the followin :
VB Code:
screen.mousepointer = 11
'''''dooing jobs
screen.mousepointer = 0
so i could make the waiting cursor. it seems i cant do it anymorein VB.net . how could i do that????
2 - when i declare a form in vb.net , how could i load it in memory without showing it. The old command " Load form1" is not supported in more
THX in advance
-
Nov 14th, 2003, 11:02 AM
#2
VB Code:
Me.Cursor = Cursors.WaitCursor
''do jobs
Me.Cursor = Cursors.Default
When you create an instance of a form it is created in memory. Note that this does not fire the load event, you should put any initialization code in the constructor which is fired at this time. Unless of course it doesn't matter if the form is shown or not in which is usually the case and you can still use the Load event.
VB Code:
Dim frm As New Form1 'it is now created and in memory
-
Nov 14th, 2003, 04:06 PM
#3
PowerPoster
Edneeis's way, or this way:
Code:
Dim cur as Cursor = Cursor.Current
Cursor.Current = Cursors.WaitCursor
'Code here.
Cursor.Current = cur
If the cursor is other than default when you start the code, you would want to put it back how it was when you are done.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|