Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2006, 12:25 PM
Authorized User
 
Join Date: Jun 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep
Default how to remove focus from a button


i designed a cool button giving a 3d effect when the mouse enters or leaves the
buttons but when the button is clicked, it is focused and a line appears around the border
of the button. how do i de-focus the button after it is clicked to remove the focus.
Language:c#
thanks for reading!

 
Old February 28th, 2007, 03:59 PM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just add a call to .SetFocus() on any other control in your click event. That will solve the problem.

Hope this helps...
Anand Raja






Similar Threads
Thread Thread Starter Forum Replies Last Post
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
how to use 'Enter' button to trigger a button, thx raybristol ASP.NET 1.0 and 1.1 Basics 1 December 16th, 2005 06:56 AM
Button acts depending on radio button values janise Access 4 March 10th, 2004 12:53 AM
Button Focus and Enter Key nigel VS.NET 2002/2003 1 August 19th, 2003 07:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.