473,395 Members | 1,975 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,395 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 3846
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...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.