473,495 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

removing border from Flat buttons

JSM
Hi,

is there any way of removing the border from a button when the style is set
to Flat. I am assuming the best way is to create a class derived from a
standard button and override the On_Paint method but I'm not sure what I
would need to do to remove the border within this method

Any help would be appreciated.

Cheers,

John
Nov 16 '05 #1
1 4625
Why not use a label instead of a button? Works just as well.

"JSM" <js*@sirotilk.com.au> wrote in message
news:Os**************@TK2MSFTNGP11.phx.gbl...
Hi,

is there any way of removing the border from a button when the style is set to Flat. I am assuming the best way is to create a class derived from a
standard button and override the On_Paint method but I'm not sure what I
would need to do to remove the border within this method

Any help would be appreciated.

Cheers,

John

Nov 16 '05 #2

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

Similar topics

1
301
by: JSM | last post by:
Hi, is there any way of removing the border from a button when the style is set to Flat. I am assuming the best way is to create a class derived from a standard button and override the On_Paint...
7
13886
by: redneon | last post by:
Is it possible to change the border colour of a button whos FlatStyle is set to Flat? It's be nice to be able to change the width of the border too. Any ideas? Darrell
5
4330
by: AbdulGafoor GK | last post by:
hi i am using visual studio 2005. i could make combobox flat, but without border. is there any way to draw a border for it ?!!! thanks
3
12700
by: =?Utf-8?B?U2hhdWxp?= | last post by:
Hi, I created a button with flat style appearance and with border size set to 0. When the button is in focus it gets a border. How can I get rid of the border? Thanks Shaul
4
6149
by: active | last post by:
There are at least the following border styles: None FixedSingle Sizable
15
5236
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
7120
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
7160
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
6878
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...
0
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4583
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
3088
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
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
649
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.