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 8 4325
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
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
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.
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.
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
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
> 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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"...
|
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)...
|
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...
|
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...
|
by: FAQ server |
last post by:
-----------------------------------------------------------------------
FAQ Topic - I have window.status="Moomin"; why doesn't the statusbar change?...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |