473,513 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Borders

Is there anyway around being stuck with the border color of the currently
selected color theme in XP?

I'm sure I could use the FormBorderStyle=None and then try to figure out how
to draw it but I'm hoping there's a MUCH simpler way. Any help is much
appreciated

Gene
Nov 20 '05 #1
3 1048
* "Gene" <Ge***@ameritech.net> scripsit:
Is there anyway around being stuck with the border color of the currently
selected color theme in XP?

I'm sure I could use the FormBorderStyle=None and then try to figure out how
to draw it but I'm hoping there's a MUCH simpler way. Any help is much
appreciated


You will have to draw the border yourself.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Any ideas as to how I can do that? I've wasted a couple days playing around
with the Drawing class to no avail. I have searched all over and can find
nothing on this. Any help is appreciated
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oj**************@TK2MSFTNGP10.phx.gbl...
* "Gene" <Ge***@ameritech.net> scripsit:
Is there anyway around being stuck with the border color of the currently selected color theme in XP?

I'm sure I could use the FormBorderStyle=None and then try to figure out how to draw it but I'm hoping there's a MUCH simpler way. Any help is much
appreciated


You will have to draw the border yourself.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
Inherit the Form class, override the onPaint method I believe.

then do your drawing.
"Gene" <Ge***@ameritech.net> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
Any ideas as to how I can do that? I've wasted a couple days playing around with the Drawing class to no avail. I have searched all over and can find
nothing on this. Any help is appreciated
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oj**************@TK2MSFTNGP10.phx.gbl...
* "Gene" <Ge***@ameritech.net> scripsit:
Is there anyway around being stuck with the border color of the currently selected color theme in XP?

I'm sure I could use the FormBorderStyle=None and then try to figure out
how
to draw it but I'm hoping there's a MUCH simpler way. Any help is

much appreciated


You will have to draw the border yourself.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3733
by: Henk ten Bos | last post by:
Hi All, consider the following situation: I have a form that contains an image. I would like to show a second form where at startup the top left corner of this second form is positioned exactly...
2
1943
by: blah blah blah | last post by:
I'm trying to make a form that can be sized vertically but not horizontally. Any pointers? First attempt was to set the form's FormBorderStyle = Sizeable set the form's MaximumSize.Width to...
104
5421
by: Colin McGuire | last post by:
Hi, is there a way to show a form without a titlebar (and therefore no control box/minimize box/title etc) but still have it appear looking like 3D? The property FormBorderStyle to None - this...
1
5833
by: Glen Vermeylen | last post by:
Hi, For a project at school we have to automate the assignment of seats in classrooms to students during the exams. The lady who previously did everything manually kept the layouts of the...
2
1232
by: Phill. W | last post by:
How can I make a Form that looks and feels like a normal Windows Form but that is *very* narrow? In some cases, this needs ot be /far/ less than the apparent, 112 pixel, intrinsic limit that VB...
4
3322
by: gsb58 | last post by:
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are...
14
3396
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the...
3
2228
by: byteschreck | last post by:
Is it possible to change the distance from the form's border the form designer suggests when you use snaplines? I think it should be smaller.
2
3103
by: Samuel | last post by:
I have some questions that are sort of connected. I use Access 2003. Is it possible to set some properties that can make the Access window open at a particular size? Is it possible to make a...
2
30810
by: nicstel | last post by:
Hello, I'm trying to find documentation about the xlwt (py_excelerator). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line...
0
7267
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
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7391
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,...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.