Click here to Skip to main content
15,794,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem desigin a simple window in winforms. In fact I use Visual webgui, but basiclly this is winforms designing.

So, I have a TabControl control and within a tabpage I inserted datagridview. What I want shows this imgage:[^]

I've designed 10px space between end of datagridview and end of tabpage.. but when app in executing there is a lot more space... why?

Thanks for help,

1 solution

Remember that a pixel is not a fixed size, it varies according to the screen resolution. Also the view in the design window is scaled to fit the IDE.
Share this answer
mnd017 13-Jun-12 4:51am    
Do you have any advice, how to set this space to 10px ?
I've got another control above this dvg. Both were design the same (10px from right border), and when window is running - space between right border is different.. Besides, I've got another window with dgv, and there everything works great. There must be something in properties or.. i dont know
Richard MacCutchan 13-Jun-12 5:18am    
Sorry no, but it looks like your design window uses one windows theme but your execution uses a more modern one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900