Some progress bar properties remaining fixed!

S

StrandElectric

I am using a progress bar and I can set the maximum and minimum fine (and
the value within a loop). Very snazzy. But whatever I do I cannot change the
colour or the appearance (continuous etc) either in properties in the IDE or
in code. What am I doing wrongly I wonder?
 
A

Armin Zingler

Am 13.01.2011 01:36, schrieb StrandElectric:
I am using a progress bar and I can set the maximum and minimum fine (and
the value within a loop). Very snazzy. But whatever I do I cannot change the
colour or the appearance (continuous etc) either in properties in the IDE or
in code. What am I doing wrongly I wonder?

The progress bar "from the box" is one of the controls provided by the system.
Therefore it's drawn by the system, too, according to the system settings
(set in control panel).

The ForeColor and Backcolor properties have an effect only if
visual styles are disabled for the system or the application.

Style property:
- Visual styles disabled:
Continuous and Blocks are available. Marquee is the same as Blocks.

- Visual styles enabled:
Marquee and Continuous is available. Blocks is the same as Continuous.
 
S

StrandElectric

Armin Zingler said:
Am 13.01.2011 01:36, schrieb StrandElectric:

The progress bar "from the box" is one of the controls provided by the
system.
Therefore it's drawn by the system, too, according to the system settings
(set in control panel).

The ForeColor and Backcolor properties have an effect only if
visual styles are disabled for the system or the application.

Style property:
- Visual styles disabled:
Continuous and Blocks are available. Marquee is the same as Blocks.

- Visual styles enabled:
Marquee and Continuous is available. Blocks is the same as Continuous.

Thanks again but when I change properties to continuous it does not work. It
is still showing blocks. And when I change the colour it does not do it!
 
S

StrandElectric

Armin Zingler said:
Am 13.01.2011 01:36, schrieb StrandElectric:

The progress bar "from the box" is one of the controls provided by the
system.
Therefore it's drawn by the system, too, according to the system settings
(set in control panel).

The ForeColor and Backcolor properties have an effect only if
visual styles are disabled for the system or the application.

Style property:
- Visual styles disabled:
Continuous and Blocks are available. Marquee is the same as Blocks.

- Visual styles enabled:
Marquee and Continuous is available. Blocks is the same as Continuous.

Where is control panel?
 
A

Armin Zingler

Am 13.01.2011 07:13, schrieb StrandElectric:
Thanks again but when I change properties to continuous it does not work. It
is still showing blocks. And when I change the colour it does not do it!

I wrote what I wrote after trying only. Didn't know it before. I can only
say that it works here as described (Win7/64). As you wrote it is still
showing blocks, you must have visual styles disabled, right?

The following screenshot is taken from the running application, not
from the IDE:
http://www.abload.de/image.php?img=progressbar76u4.png

The other post: I meant the System's Control panel wher you can
set display settings and colors and so on.
 
S

StrandElectric

Armin Zingler said:
Am 13.01.2011 07:13, schrieb StrandElectric:

I wrote what I wrote after trying only. Didn't know it before. I can only
say that it works here as described (Win7/64). As you wrote it is still
showing blocks, you must have visual styles disabled, right?

The following screenshot is taken from the running application, not
from the IDE:
http://www.abload.de/image.php?img=progressbar76u4.png

The other post: I meant the System's Control panel wher you can
set display settings and colors and so on.

Thanks for the illo. I didn't doubt your word.

1) I am using XP. 32 bit
2) When you say not from the IDE, do you mean the behaviour is different if
running out of the IDE (presumably direct access to the .exe file after
compiling -- different to pressing F5 when in the IDE?
3) Also, do you mean the main control panel for the computer, where you set
up various computerwide settings.
 
A

Armin Zingler

Am 13.01.2011 18:32, schrieb StrandElectric:
Thanks for the illo. I didn't doubt your word.

I only meant that I didn't know it myself before trying.
Man, it's sometimes really hard for me to express myself correctly.
It's easy for you native speakers.
1) I am using XP. 32 bit
2) When you say not from the IDE, do you mean the behaviour is different if
running out of the IDE (presumably direct access to the .exe file after
compiling -- different to pressing F5 when in the IDE?

You can disable visual styles per application. If the IDE is running with
visual styles enabled but your application with visual styles disabled,
they look different.

You can (de)activate visual styles for your application:
1. Double-click on "My Project" in the Solution window. A new window opens.
2. Select the first page called "Application".
3. There's the option "Enable visual styles".

I'm using Win7-64, but I have XP-32 still in a VM (even with VB 2008 Express),
so let me have a look there..........You are right, it's still showing blocks:

http://www.abload.de/image.php?img=progressbarwinxpn50r.png

As you see, and as the documentation also states, Continuous is only available
with visual styles DISabled. But I think we can not blame VB for this.
3) Also, do you mean the main control panel for the computer, where you set
up various computerwide settings.

yes
 
M

mp

StrandElectric said:
Therefore it's drawn by the system, too, according to the system settings
(set in control panel).
[]

Where is control panel?

in xp
Start button in bottom left of screen
Settings menu item
Control Panel menu item

hth
mark
 
S

StrandElectric

Armin Zingler said:
Am 13.01.2011 18:32, schrieb StrandElectric:

I only meant that I didn't know it myself before trying.
Man, it's sometimes really hard for me to express myself correctly.
It's easy for you native speakers.


You can disable visual styles per application. If the IDE is running with
visual styles enabled but your application with visual styles disabled,
they look different.

You can (de)activate visual styles for your application:
1. Double-click on "My Project" in the Solution window. A new window
opens.
2. Select the first page called "Application".
3. There's the option "Enable visual styles".

I'm using Win7-64, but I have XP-32 still in a VM (even with VB 2008
Express),
so let me have a look there..........You are right, it's still showing
blocks:

http://www.abload.de/image.php?img=progressbarwinxpn50r.png

As you see, and as the documentation also states, Continuous is only
available
with visual styles DISabled. But I think we can not blame VB for this.


yes

Dear Armin

I must be getting better! I understood nearly all of this! I like your
reply to my 3)!! But haven't you just shown me how to do it in the IDE?
Hoy!! unexpectedly, I also know what a VM is. My wife says I'm one when I'm
at the keyboard.
 
S

StrandElectric

mp said:
StrandElectric said:
Therefore it's drawn by the system, too, according to the system
settings
(set in control panel).
[]

Where is control panel?

in xp
Start button in bottom left of screen
Settings menu item
Control Panel menu item

hth
mark
Thanks (I should precode one of my keyboard keys to say this!)
 
S

StrandElectric

Armin Zingler said:
visual styles enabled but your application with visual styles disabled,
they look different.

You can (de)activate visual styles for your application:
1. Double-click on "My Project" in the Solution window. A new window
opens.
2. Select the first page called "Application".
3. There's the option "Enable visual styles".

I don't see that. When I opne ub vb2008Express I do not see 'My Project',
just a list of the ones I have worked on. None of those lead to
'Application'
 
A

Armin Zingler

Am 14.01.2011 00:03, schrieb StrandElectric:
I don't see that. When I opne ub vb2008Express I do not see 'My Project',
just a list of the ones I have worked on. None of those lead to
'Application'

You must open your project first. Then it's here:
http://www.abload.de/image.php?img=idemyprojectgtfd.png

If it's not there (whyever), select menu Project->Properties
-or- right-click on the project in the solution explorer and
select "properties" in the context menu.
 
A

Armin Zingler

Am 13.01.2011 23:53, schrieb StrandElectric:
I must be getting better! I understood nearly all of this!

I must be getting better. You understood nearly all of this! :-D
I like your
reply to my 3)!! But haven't you just shown me how to do it in the IDE?

Do _what_ in the IDE?
Hoy!! unexpectedly, I also know what a VM is. My wife says I'm one when I'm
at the keyboard.

Pardon?
 
S

StrandElectric

StrandElectric said:
My opening page (default setting) looks nothing like yours! I'll try your
other suggestion.
Found the option as last and as it was selected I deselected it. No change.
My progress br remians at pale green boxes although I selected blue
continuous.>
 
S

StrandElectric

StrandElectric said:
Found the option as last and as it was selected I deselected it. No
change. My progress br remians at pale green boxes although I selected
blue continuous.>
Its all OK now! Perhaps it only comes into action on the next startup of
the IDE? Thanks Armin for your patience.
 
A

Armin Zingler

Am 14.01.2011 10:06, schrieb StrandElectric:
Its all OK now! Perhaps it only comes into action on the next startup of
the IDE? Thanks Armin for your patience.

The option is the setting for your own application. It's a property of the
project. You can set it differently in every project. It has no influence on
how the Form looks in the Form designer in the IDE. Anway, if it works for
you now, it's ok.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top