469,644 Members | 1,774 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,644 developers. It's quick & easy.

Is it possible to have a sharp window form border?

Hi

I use these two properties to have nothing except the content of the
window form on the display :
// Removing the maximize, minimize and close in the titlebar
frmTabrows.ControlBox = false;
// Remove the 3d border and the titlebar
frmTabrows.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;

But there is still remaining a small, very very very small and thin
border of 1 or 2 pixel that produce a window effect.

The consequence is when I do a mdi parent window of 800X600, and when
I include a 800X600 child inside there is an offset of the border on
the child display instead fit exactly the child on the parent.

Anybody know how to have sharp borders?

Thanks
François

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #1
2 3732
Hi!
How about using the client area property of the forms to resize them.
Maybe the client area of the parent is less than 800*600? Otherwise,
you might have to look into the win API on sending a message os
setting some flag. Hope this helps.

- Peder -
fl**@rfranco-dot-ca.no-spam.invalid (Efkas) wrote in message news:<41********@Usenet.com>...
Hi

I use these two properties to have nothing except the content of the
window form on the display :
// Removing the maximize, minimize and close in the titlebar
frmTabrows.ControlBox = false;
// Remove the 3d border and the titlebar
frmTabrows.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;

But there is still remaining a small, very very very small and thin
border of 1 or 2 pixel that produce a window effect.

The consequence is when I do a mdi parent window of 800X600, and when
I include a 800X600 child inside there is an offset of the border on
the child display instead fit exactly the child on the parent.

Anybody know how to have sharp borders?

Thanks
François

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Nov 16 '05 #2
Hi!
How about using the client area property of the forms to resize them.
Maybe the client area of the parent is less than 800*600? Otherwise,
you might have to look into the win API on sending a message os
setting some flag. Hope this helps.

- Peder -
fl**@rfranco-dot-ca.no-spam.invalid (Efkas) wrote in message news:<41********@Usenet.com>...
Hi

I use these two properties to have nothing except the content of the
window form on the display :
// Removing the maximize, minimize and close in the titlebar
frmTabrows.ControlBox = false;
// Remove the 3d border and the titlebar
frmTabrows.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.None;

But there is still remaining a small, very very very small and thin
border of 1 or 2 pixel that produce a window effect.

The consequence is when I do a mdi parent window of 800X600, and when
I include a 800X600 child inside there is an offset of the border on
the child display instead fit exactly the child on the parent.

Anybody know how to have sharp borders?

Thanks
François

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by MM | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.