Home All Groups Group Topic Archive Search About

Form - controls is placed different on Vista than in XP

Author
19 Nov 2007 8:35 AM
Kenneth
Hi

Have made simple form which consists of two controls besides of each
other. It looks fine for me on my XP machine but when I run the app on
a Vista machine the controls is not besides anymore but one of the
controls is a little bit on top of the other! Why does this happen?

Kenneth

Author
19 Nov 2007 12:41 PM
Herfried K. Wagner [MVP]
"Kenneth" <andersen.kenn***@gmail.com> schrieb:
> Have made simple form which consists of two controls besides of each
> other. It looks fine for me on my XP machine but when I run the app on
> a Vista machine the controls is not besides anymore but one of the
> controls is a little bit on top of the other! Why does this happen?

I suggest to describe the problem im more detail:  Which controls are you
referring to (control type, anchoring, docking, ...)?  Are visual styles
enabled on the Windows XP machine?  Are the controls positioned at design
time or at runtime

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Nov 2007 1:00 PM
Kenneth
It is actually very simple. Create a new project -> a new form ->
place a text box (multiline) besides a MonthCalendar control. Nothing
else is changed.
I start the application on my XP mashine and it looks as I placed them
in my design.
When I run the same application on a Vista maschine the monthCalendar
control is placed a little bit more to the right a little bit above
the textbox.

Visual styles on the XP mashine? What is this? The difference between
windows runnning XP or 2000 layout?

Kenneth

On Nov 19, 1:41 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h***@gmx.at> wrote:
Show quoteHide quote
> "Kenneth" <andersen.kenn***@gmail.com> schrieb:
>
> > Have made simple form which consists of two controls besides of each
> > other. It looks fine for me on my XP machine but when I run the app on
> > a Vista machine the controls is not besides anymore but one of the
> > controls is a little bit on top of the other! Why does this happen?
>
> I suggest to describe the problem im more detail:  Which controls are you
> referring to (control type, anchoring, docking, ...)?  Are visual styles
> enabled on the Windows XP machine?  Are the controls positioned at design
> time or at runtime
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
Author
19 Nov 2007 1:37 PM
Herfried K. Wagner [MVP]
"Kenneth" <andersen.kenn***@gmail.com> schrieb:
> Visual styles on the XP mashine? What is this? The difference between
> windows runnning XP or 2000 layout?

Yes, exactly.

Unfortuntately I do not have Windows Vista installed yet, so I am not able
to repro the scenario.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>