Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Windows form not appearing as designed

views
     
TSshah770
post Jan 15 2017, 01:31 AM, updated 8y ago

New Member
*
Junior Member
44 posts

Joined: Apr 2013


I designed like this

user posted image


but when I run it appears like this

user posted image



Does the group box may cause of this problem ?

Visual Basic

This post has been edited by shah770: Jan 15 2017, 01:36 AM
buffalowings
post Jan 15 2017, 01:36 AM

Getting Started
**
Junior Member
225 posts

Joined: Nov 2006
check your picture box anchor property
TSshah770
post Jan 15 2017, 01:45 AM

New Member
*
Junior Member
44 posts

Joined: Apr 2013


QUOTE(buffalowings @ Jan 15 2017, 01:36 AM)
check your picture box anchor property
*
i changed both Anchor and dock it only change the position of the image , however the form shape are still same , those username and password text box are not aligned as in design mode when I run it .
buffalowings
post Jan 15 2017, 03:24 PM

Getting Started
**
Junior Member
225 posts

Joined: Nov 2006
your text box and picture box have the same anchor or dock property? it looks like your picture is stretching to the right and bottom when resize. is this by design?

also do check if your picture box is set to resize according to picture size?


QUOTE(shah770 @ Jan 15 2017, 01:45 AM)
i changed both Anchor and dock it only change the position of the image , however the form shape are still same , those username and password text box are not aligned as in design mode when I run it .
*
This post has been edited by buffalowings: Jan 15 2017, 03:26 PM
dstl1128
post Jan 16 2017, 11:04 AM

Look at all my stars!!
*******
Senior Member
4,463 posts

Joined: Jan 2003
DPI issue.

Seems like the OS is 125% DPI settings.

Your picturebox size have to be calculated real time with the scaling factor of the OS or using "point" as size instead of pixels.

This post has been edited by dstl1128: Jan 16 2017, 11:04 AM

 

Change to:
| Lo-Fi Version
0.0141sec    0.36    5 queries    GZIP Disabled
Time is now: 29th March 2024 - 04:22 AM