PC Review


Reply
Thread Tools Rate Thread

beginner question on progress bar positioning

 
 
Eva
Guest
Posts: n/a
 
      29th Dec 2003
hi,

I have just managed to add a progress bar to my statusbar
control. the problem i am having is that t appears in the
far left as default. I want it to appear in the far right
side of the form. Can anyone help me code this or point
me to a good article??

this is my code so far..
Dim Pbar As New ProgressBar()
StatusBar1.Controls.Add(Pbar)
Pbar.Visible = True

Thx
 
Reply With Quote
 
 
 
 
Les Smith
Guest
Posts: n/a
 
      2nd Jan 2004
You need to add panels to the status bar, and place the
progress bar in the right most panel. If there is no
reason to do this in code, I would do it in the designer
and add at least two panels to the statusbar. Then put
the pbar in the second panel. The statusbar does not
appear to act as a container, as I believe it did in VB6.
Unless there is a reason to place the pbar in the
statusbar, I wouldn't even use a status bar. Then you can
anchor the pbar left,bottom, right and it will autosize if
the form is resizable.

Hope this helps.

See articles on general .NET, add-ins, free code, books at
http://www.knowdotnet.com

>-----Original Message-----
>hi,
>
>I have just managed to add a progress bar to my statusbar
>control. the problem i am having is that t appears in the
>far left as default. I want it to appear in the far right
>side of the form. Can anyone help me code this or point
>me to a good article??
>
>this is my code so far..
>Dim Pbar As New ProgressBar()
> StatusBar1.Controls.Add(Pbar)
> Pbar.Visible = True
>
>Thx
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validator question on positioning tshad Microsoft ASP .NET 6 7th Jun 2005 05:09 PM
Current Excel Positioning Question =?Utf-8?B?cHRuYWdsZQ==?= Microsoft Excel Programming 3 12th May 2005 08:40 PM
No Class at ALL!!! beginner/beginner question =?Utf-8?B?S3VydCBTY2hyb2VkZXI=?= Microsoft ASP .NET 7 3rd Feb 2005 02:47 PM
Progress bar positioning on a statusbar. Tonya Microsoft Dot NET 1 18th Dec 2003 08:22 AM
beginner question about a progress bar Samantha Microsoft VB .NET 6 1st Nov 2003 01:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:05 AM.