TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
keenweng2001
NA
27
0
ProgressBar
Jul 5 2004 11:05 AM
I am facing some problem in using a color progress bar. Below is my code. The progress bar only start perform step after the tree view is display. What i need is while the program are searching in the directory the progress bar start showing the progress. // progressbar property this.colorProgressBar1.BarColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(128))); this.colorProgressBar1.BorderColor = System.Drawing.Color.Black; this.colorProgressBar1.FillStyle = ColorProgressBar.ColorProgressBar.FillStyles.Dashed; this.colorProgressBar1.Location = new System.Drawing.Point(448, 184); this.colorProgressBar1.Maximum = 100; this.colorProgressBar1.Minimum = 0; this.colorProgressBar1.Name = "colorProgressBar1"; this.colorProgressBar1.Size = new System.Drawing.Size(150, 15); this.colorProgressBar1.Step = 10; this.colorProgressBar1.TabIndex = 28; this.colorProgressBar1.Value = 0; // timer1 this.timer1.Enabled = false; this.timer1.Tick += new System.EventHandler(this.TimerEventProcessor); private void TimerEventProcessor(Object myObject,EventArgs myEventArg) { colorProgressBar1.PerformStep(); } private void Btn1_Click(object sender, System.EventArgs e) { timer1.Enabled = true; statusBar1.Text = " Detecting Network Terminal...... " ; private System.Windows.Forms.TreeView Terminal_List; DirectoryEntry Parent = new DirectoryEntry("WinNT:"); TreeNode Root = new TreeNode("Microsoft Windows Network",0,0); Terminal_List.Nodes.Add (Root); foreach (DirectoryEntry child in Parent.Children) { switch (child.SchemaClassName) { case "Domain": TreeNode Domain = new TreeNode(child.Name,2,2); Root.Nodes.Add (Domain); break; }} }
Reply
Answers (
2
)
How can I put Controls, a ProgressBar for example, into a StatusBar?
Datagrid autoresize -- from reflection