|
-
Feb 3rd, 2002, 12:01 PM
#1
Thread Starter
Frenzied Member
Progressbar in Statusbar... (yes I know this q is asked millions of times :P)
Ok first of all, good to be back 
For those of ya who still remember me, good to see ya guys...
anyway, I know how to put a Progressbar in a statusbar in Vb6, but I'm wondering how to do it in VB.net
Is there a special property or function for it? because I read that it's not recommended to use the API, so there's probably a substitute right?
Thanks for the help peeps!
Jop
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Feb 4th, 2002, 12:19 PM
#2
Thread Starter
Frenzied Member
Ok, I found out there wasn't a substitute for SetParent, so I had to do it the API way 
for those who're interested, here's how I did it, and hey, if anyone has optimization tricks, lemme know 
Code:
Declare Function SetParent Lib "user32" Alias "SetParent" ( _
ByVal hWndChild As Integer, _
ByVal hWndNewParent As Integer _
) As Integer
'the code to do it:
Dim progpoint As Point
SetParent(ProgBar.Handle.ToInt32, Status.Handle.ToInt32)
progpoint.X = 0
progpoint.Y = 2
ProgBar.Location = progpoint
'^^^ about the above, is there a faster way to specify the Location? like I used to do in C++ :
' progbar.location = Point(0,2)
'which doesn't work here in VB.Net
I'm now at my new question, is it just me or does the new Progressbar doesn't have a property to set it to the smooth style the old one used to have?
Thanks for your attention!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|