473,388 Members | 1,382 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,388 software developers and data experts.

Eliminate highlighted button outline

I know this is REALLY picky, but how would one go about preventing that
hideous outline from showing up around a button when it receives focus in VS
2003? I'm known for my eyecandy UI's but this is something that has plagued
me for awhile. Many thanks in advance.


Mar 6 '07 #1
2 2524
You could try handling the button's GotFocus event and explicitly
setting the focus somewhere else, maybe to the next control in the tab
order, or to a hidden button (one under another control, not one whose
Visible is false).

void button1_GotFocus(object sender, EventArgs e)
{
this.SelectNextControl(this.button1, true, true, false, true);
// or
// this.hiddenButton.Focus();
}

==================
Clay Burch
Syncfusion, Inc.

Mar 6 '07 #2
Thanks. Actually, I went all-out and created a PrettyButton class derived
from a PictureBox control, with three child PictureBoxes(Left button cap,
Middle stretchy segment, Right button cap) and a label control. It does all
kinds of light-up pretties. But thanks for your suggestion, it probably
would have been a good deal simpler to implement. =/

"ClayB" <cl***@syncfusion.comwrote in message
news:11**********************@q40g2000cwq.googlegr oups.com...
You could try handling the button's GotFocus event and explicitly
setting the focus somewhere else, maybe to the next control in the tab
order, or to a hidden button (one under another control, not one whose
Visible is false).

void button1_GotFocus(object sender, EventArgs e)
{
this.SelectNextControl(this.button1, true, true, false, true);
// or
// this.hiddenButton.Focus();
}

==================
Clay Burch
Syncfusion, Inc.

Mar 6 '07 #3

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

Similar topics

4
by: Doug van Vianen | last post by:
Hi, I am working on an Applet which provides some mouse practice for new computer users in our local seniors' computer club. The applet contains several cards, in a card layout, which are...
3
by: NONYA | last post by:
This is driving me crazy. I'm having trouble with how a simple radio button is displayed, in a simple html form. The default has the outline around the radio button shaded gray only in the top...
2
by: Julian Jordan | last post by:
Hi I'm trying to write a system in which you can highlight some text in a form box, click a button (or press a key combination) and the text highlighted gets surrounded by a given html tag. ...
5
by: BBFrost | last post by:
Win2000 ..Net 1.1 SP1 c# using Visual Studio Ok, I'm currently in a "knock down - drag out" tussle with the .Net 1.1 datagrid. I've come to realize that a 'block' of rows highlighted within...
3
by: Charlie | last post by:
Hi: When you click image button in Firefox, a thin, gray dotted line appears around image. Is there a way to get rid of this? Thanks, Charlie
2
by: russiandevil | last post by:
hi, Does anyone have an idea on how I'd go about highlighting (with a border, or something equally effective) a input button of type 'image' (i.e. <input type=image alt=Login src=http://<etc,...
11
by: dana1 | last post by:
I have a form which contains some buttons. The buttons use some of the standard images that come with access 2003 (e.g., the move next record image, or the sort ascending/descending images). The...
1
by: brad | last post by:
I am wondering if it is at all possible to create a button that--when clicked--grabs a paragraph of text that a user has highlighted. So you go to this website, then highlight a section of text....
3
by: Doug | last post by:
Hi I am trying to find a way to make the mouse cursor move to the keyboard cursor position in an application. For example, I use an application called Enterprise Guide, and I control this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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
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,...

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.