473,378 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 3844
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: KathyB | last post by:
Hi, I'm trying to find a way to validate input text boxes where I don't know the names until the page is rendered. I've got 2 validate functions that fire with the onsubmit button of a "mini" form...
4
by: Ciar?n | last post by:
Hi all, I've go a little mailto: link on a page that when clicked opens an email form with the email address in the To field - all very simple. Problem is that in Netscape, a new blank window is...
2
by: jose | last post by:
Is it possible join in the same project a visual basic net form and a c sharp form?? if the answer is yes, how can I do it? Thanks for your answers
2
by: MM | last post by:
I am using the following code to display an image in a seperate window. <form> <input type=button onClick='window.open("image1.jpg","","width=260,height=260,resizable=0,border=0")' value=Shhow...
2
by: s_m_b | last post by:
<script language="javascript" src="/inc/js_popup_window.js" type="text/javascript"></script> <script language =" JavaScript" type="text/javascript"> function openScanWindow () {...
6
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
4
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
0
by: Efkas | last post by:
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;...
4
by: jose | last post by:
Is it possible join in the same project a visual basic net form and a c sharp form?? if the answer is yes, how can I do it? Thanks for your answers
5
by: ThunderMusic | last post by:
Hi I'm currently developping a skinnable form by using a borderless form (Form.FormBorderStyle=None). Is it the right way to go in the first place? if it is. Assuming that when there is no border...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.