Form size different

S

steve

I have a c# windows forms app that runs fine on my laptop. The form is
1024x768 with no border, and when I run it on my laptop with 1024x768 screen
resolution it fills the whole screen perfectly. The problem is, when I run
the same application on two other machines that have the screen resolution
set to 1024x768, it doesn't fill the whole screen. In fact, the black
border that I had around the form only shows on the top and left side of the
form. Any ideas on why this is happening?
 
H

Herfried K. Wagner [MVP]

* "steve said:
I have a c# windows forms app that runs fine on my laptop. The form is
1024x768 with no border, and when I run it on my laptop with 1024x768 screen
resolution it fills the whole screen perfectly. The problem is, when I run
the same application on two other machines that have the screen resolution
set to 1024x768, it doesn't fill the whole screen. In fact, the black
border that I had around the form only shows on the top and left side of the
form. Any ideas on why this is happening?

The laptop and the normal machines use different number of dpi.
 
S

steve

Thanks. So I would probably be best off developing the c# app on a normal
machine.
 
S

steve

Actually, solved my problem by just changing the dpi to normal 96 dpi on the
laptop. Now everything works great.
Thanks for you input.
 
H

Herfried K. Wagner [MVP]

* "steve said:
Actually, solved my problem by just changing the dpi to normal 96 dpi on the
laptop. Now everything works great.

That will work too. Nevertheless, I still don't know about a
"workaround" for simply editing the forms on machines with different #
of dpi.
 

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