473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Fix Progessbar in status bar

Hi,
is there a way to fix the position of the progressbar in the status bar.
when I resize the window, the progressbar stays at the initial location.

Thanks
Alex

Nov 20 '05 #1
8 4325
Hello,

"alex" <ai******@hotmail.com> schrieb:
is there a way to fix the position of the progressbar in the
status bar. when I resize the window, the progressbar stays
at the initial location.


http://groups.google.de/groups?selm=...TNGP11.phx.gbl

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
thanks, looked it up but is it a VB.Net example ?
A

Herfried K. Wagner [MVP] wrote:
Hello,

"alex" <ai******@hotmail.com> schrieb:
is there a way to fix the position of the progressbar in the
status bar. when I resize the window, the progressbar stays
at the initial location.

http://groups.google.de/groups?selm=...TNGP11.phx.gbl

HTH,
Herfried K. Wagner


Nov 20 '05 #3
Hello,

"alex" <ai******@hotmail.com> schrieb:
thanks, looked it up but is it a VB.Net example ?


It can be translated to VB.NET and should give you an idea on how to cope
with the problem. If you have problems translating it, please feel free to
post your questions here.

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
alex <ai******@hotmail.com> wrote in news:#DZGx6gcDHA.2960
@tk2msftngp13.phx.gbl:
Hi,
is there a way to fix the position of the progressbar in the status bar.
when I resize the window, the progressbar stays at the initial location.

Thanks
Alex


When you add the progress bar to the status bar, make sure you set the
progress bar's parent to be the status bar.

Nov 20 '05 #5
How do I do that? Can that be done through the designer in the property
menu?

Thanks

Chris Dunaway wrote:
alex <ai******@hotmail.com> wrote in news:#DZGx6gcDHA.2960
@tk2msftngp13.phx.gbl:

Hi,
is there a way to fix the position of the progressbar in the status bar.
when I resize the window, the progressbar stays at the initial location.

Thanks
Alex

When you add the progress bar to the status bar, make sure you set the
progress bar's parent to be the status bar.


Nov 20 '05 #6
alex <ai******@hotmail.com> wrote in news:3F**************@hotmail.com:
How do I do that? Can that be done through the designer in the property
menu?


You'll have to do it in code:

ProgressBar1.Parent = StatusBar1

Once you do that, then the coordinates for sizing and placing the progress
bar will be relative to the status rather than the form. For example, if
you set the location of the ProgressBar to 10,10, then it will be 10 pixels
over and 10 pixels down from the top left of the status bar.

Chris
Nov 20 '05 #7
Thanks, part of it works now but...

I use
Me.progBar.Parent = stBar
Me.progBar.Location = New System.Drawing.Point(Me.stBar.Left +185,5)

This does the job and fixes the progress bar in the statusbar.
However, when I resize the window I would expect that the 185,5 is
constant from the top left of the stBar. But... onl the 5 from top is
fixed, the progress bar floats somewhere inside the status bar.

Any Idea why this could be.

Chris Dunaway wrote:
alex <ai******@hotmail.com> wrote in news:3F**************@hotmail.com:

How do I do that? Can that be done through the designer in the property
menu?

You'll have to do it in code:

ProgressBar1.Parent = StatusBar1

Once you do that, then the coordinates for sizing and placing the progress
bar will be relative to the status rather than the form. For example, if
you set the location of the ProgressBar to 10,10, then it will be 10 pixels
over and 10 pixels down from the top left of the status bar.

Chris


Nov 20 '05 #8
> Me.progBar.Parent = stBar
Me.progBar.Location = New System.Drawing.Point(Me.stBar.Left +185,5)

However, when I resize the window I would expect that the 185,5 is
constant from the top left of the stBar. But... onl the 5 from top is

I presume that you want the progress bar to always be 185 pixels from the
left of the status bar? Since the progress bar's coordinates are always
relative to the parent (status bar), there's no need to add 185 to the
Statusbar's left position, just use 185:

Me.progBar.Location = New System.Drawing.Point(185,5)

This line will place the progress bar 185 pixels over and 5 pixels down
from the top left of the status bar.

Chris
Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: mark4asp | last post by:
Why won't the window.status message change ? IE ver. 6.0.2800.1106 displays the tooltip OK. <td> <A HREF="editAuthor.asp?item=4" title="Edit author details"...
2
by: Charles Mendell | last post by:
1. When I go to http://www.w3schools.com/js/default.asp and choose: 2. JS HTML DOM and then choose: 3. the Window object and then choose: 4. Write some text in the windows status bar ( a link)...
6
by: Ada | last post by:
i have a little bit of issue getting the status bar to work properly. this is what happens now. when the program loaded, the status is "READY..." the code is inside the FORM LOAD. i also...
6
by: jez123456 | last post by:
Hi Is there anyway to display the percentage value completed in a Progressbar. I've found a Microsoft link http://support.microsoft.com/default.aspx/kb/323116/EN-US/ to create a smooth...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
4
by: Mark | last post by:
Hey folks, I'm looking at making the following query more efficient potentially using the ranking functions and I'd like some advice from the gurus. The purpose of the following is to have a...
3
by: bharathreddy | last post by:
This article will explain you how to find the status of the fax operation. (Using FAXCOM.dll). Author: Bharath Reddy VasiReddy Reference to the FAXCOM.DLL Reference to import FAXCOM...
9
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on the form. But the problem is that the work is...
0
by: tvnaidu | last post by:
I wrote a status page HTML code, here I have 8 port status, it prints first 7 and last status it won't print, from there onwards it won't print footer also, if I make 10 instead 8, then it prints...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.