Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

Could someone let me know if it is possible for an Overlay Progress bar in windows Forms using VB.net

I have dashboard application where one form is taking time to load the data so I wanted to show Overlay Progress bar so that user doesn't click any and also he will know that something is loading up.


Your help is much appreciated.
Posted

1 solution

create splash

private void timer1_Tick(object sender, EventArgs e)
{
counter++;
progressBar1.Value = counter *5;
// label2.Text = (5*counter).ToString();
if (counter ==20)
{
timer1.Stop();
this.Close();
}
}
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.ClientSize = new System.Drawing.Size(397, 283);
this.ControlBox = false;
this.Controls.Add(this.label2);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.label1);
this.ForeColor = System.Drawing.SystemColors.ControlLightLight;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "Splash";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.ResumeLayout(false);
this.PerformLayout();
Then in your application

sp = new Splash();
sp.ShowDialog();

refer http://stackoverflow.com/questions/7955663/how-to-build-splash-screen-in-windows-forms-application[^]
 
Share this answer
 
v2
Comments
sudevsu 15-Apr-15 10:18am    
What do mean by "Create Splash". Do you mean just create a Form which is just empty? or do want the form have a Progress bar control?
Anil_Kumar_India 16-Apr-15 2:47am    
A screen having opacity 0 is displayed over the Form in process is splash screen. In this case we do not need to disable controls of the form.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900