H
Hrvoje Voda
How to use progressBar with loading picture into pictureBox.
Code:
private void InitializeMyTimer()
{
// Set the interval for the timer.
time.Interval = 250;
// Connect the Tick event of the timer to its event handler.
time.Tick += new EventHandler(IncreaseProgressBar);
// Start the timer.
string fName = "F:\\ReportLogo\\pictures\\Coffee Bean.bmp";
try
{
time.Start();
pb.Image = System.Drawing.Image.FromFile(fName);
}
catch (Exception x)
{
MessageBox.Show(x.Message);
}
}
What's wrong?
Code:
private void InitializeMyTimer()
{
// Set the interval for the timer.
time.Interval = 250;
// Connect the Tick event of the timer to its event handler.
time.Tick += new EventHandler(IncreaseProgressBar);
// Start the timer.
string fName = "F:\\ReportLogo\\pictures\\Coffee Bean.bmp";
try
{
time.Start();
pb.Image = System.Drawing.Image.FromFile(fName);
}
catch (Exception x)
{
MessageBox.Show(x.Message);
}
}
What's wrong?
