Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Status Strip and Progress Bar in MDI Form

Status
Not open for further replies.

adalli

Programmer
Feb 8, 2005
44
MT
Hi,

I have an MDI form with a Status Strip in which I have a progress bar as one of the panels. The purpose of this status bar is to show the progress when bringing up a child form.

I am using the following code to bring up the MDI form:-

Dim myForm As New frmMainMDI
myForm.ShowDialog()

On the page load of the child I am using the following code to show the progress bar but this is not showing.

frmMainMDI.stPanel5.ProgressBar.Minimum = 0
frmMainMDI.stPanel5.ProgressBar.Maximum = 15

frmMainMDI.stPanel5.ProgressBar.Show()
frmMainMDI.stPanel5.ProgressBar.Visible = True
frmMainMDI.stPanel5.ProgressBar.Value = intNoOfTimes
frmMainMDI.stPanel5.ProgressBar.PerformStep()
frmMainMDI.stPanel5.ProgressBar.Refresh()
frmMainMDI.Refresh()

Could any one please help?

Thanks
 

Either you should use myForm instead of frmMainMDI in load event of MDI Child form

or

Use frmMainMDI.ShowDialog() to bring up the MDI Parent form instead of

Dim myForm As New frmMainMDI
myForm.ShowDialog()

 
Hi,

I changed the code to frmMainMDI.ShowDialog() but the progress bar is still not showing.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top