Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools


Click here to copy the following block
' Move and resize a ProgressBar control so that it fits inside
' a StatusBar's Panel.
'
' The last argument is the panel index (one-based).

Sub MoveProgressBarIntoPanel(pb As ProgressBar, sb As StatusBar, _
  pnlIndex As Integer)
  Dim deltaY As Single, pnl As Panel, y As Single
  
  ' account for two pixels around each panel
  deltaY = pb.Parent.ScaleY(2, vbPixels, vbTwips)
  Set pnl = sb.Panels(pnlIndex)
  pnl.Bevel = sbrNoBevel
  ' It is necessary to evaluate the Y coordinate in this way because
  ' if this routine is invoked from Form_Resize you can't rely on
  ' the StatusBar's or Panel's Top property, which still has to be updated.
  y = pb.Parent.ScaleHeight - sb.Height
  
  ' Move the progress bar in position, and in front of the status bar.
  pb.Move pnl.Left, y + deltaY, pnl.Width, sb.Height - deltaY
  pb.Visible = True
  pb.ZOrder
End Sub


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.