Marook-Online
* 06.Feb.2012, 14:57 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
28-Sep-2007 13:42
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


If you want to show a progressbar inside a statusbar panel, you could use the following code !

Code
GeSHi (vb):
  1. Public Function AttachProgBar(pb As ProgressBar, _
  2.                              Status As StatusBar, _
  3.                              Panel As Integer)
  4.  
  5. Dim defProgBarHwnd As Long
  6.  
  7.    defProgBarHwnd = SetParent(pb.hwnd, Status.hwnd)
  8.  
  9.    With Status
  10.  
  11.        .Align = vbAlignTop
  12.        .Visible = False
  13.  
  14.        With pb
  15.            .Visible = False
  16.            .Align = vbAlignNone
  17.            .Width = Status.Panels(Panel).Width
  18.            .Move (Status.Panels(Panel).Left), (Status.Top + 30), (Status.Panels(Panel).Width - 50), (Status.Height - (50))
  19.  
  20.            .Visible = True
  21.            .ZOrder 0
  22.        End With
  23.  
  24.        .Align = vbAlignBottom
  25.        .Visible = True
  26.  
  27.    End With
  28.  
  29. End Function
Created by GeSHI 1.0.7.20

Paste the above code into a module of from and add a progressbar and a statusbar to the form.

Usage:
Code
GeSHi (vb):
  1. Private Sub Form_Load()
  2.    AttachProgBar ProgressBar1, Status1, 2
  3. End Sub
Created by GeSHI 1.0.7.20

This will add the progressbar into the 2nd panel of the statusbar.
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!