Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Convert VB.NET to C# ????? Pin
Inquire2you8-Sep-04 5:43
Inquire2you8-Sep-04 5:43 
GeneralRe: How to Convert VB.NET to C# ????? Pin
mav.northwind8-Sep-04 6:16
mav.northwind8-Sep-04 6:16 
GeneralRe: How to Convert VB.NET to C# ????? Pin
Inquire2you9-Sep-04 2:14
Inquire2you9-Sep-04 2:14 
GeneralCalling c functions in a .h file from C# Pin
donmorr8-Sep-04 4:43
donmorr8-Sep-04 4:43 
GeneralRe: Calling c functions in a .h file from C# Pin
Nick Parker8-Sep-04 9:22
protectorNick Parker8-Sep-04 9:22 
GeneralRe: Calling c functions in a .h file from C# Pin
donmorr9-Sep-04 4:07
donmorr9-Sep-04 4:07 
QuestionC# How to disable focus?? Pin
adnanh758-Sep-04 2:02
adnanh758-Sep-04 2:02 
AnswerRe: C# How to disable focus?? Pin
Sebastian Schneider8-Sep-04 2:21
Sebastian Schneider8-Sep-04 2:21 
Select your button in the form designer.

Switch "Properties" to the "Events"-Mode.

Then scroll to the "Focus"-Section and give some method name for "Enter".

I used "button1_FocusEnter".

This will create an empty method in which you put one line:

someOtherControl.Focus;

You can also prevent users from "tabbing" through your control by setting "TabStop" to false.

With the "coded" solution, the button will never keep focus, the someOtherControl will receive Focus instead.

That will not prevent anyone from pressing that button, though.

If you want users NOT to press a button, disable it.

If you set TabStop to false, the control still gets focused if someone presses it.

If you combine both ways, the button will never KEEP focus, but users can still press it and trigger it and stuff.

Cheers
Sebs
GeneralRe: C# How to disable focus?? Pin
adnanh758-Sep-04 2:24
adnanh758-Sep-04 2:24 
AnswerRe: C# How to disable focus?? Pin
mav.northwind8-Sep-04 3:36
mav.northwind8-Sep-04 3:36 
GeneralRe: C# How to disable focus?? Pin
adnanh758-Sep-04 4:02
adnanh758-Sep-04 4:02 
QuestionC# How to set enabled/disabled buttons collor? Pin
adnanh758-Sep-04 1:34
adnanh758-Sep-04 1:34 
AnswerRe: C# How to set enabled/disabled buttons collor? Pin
Mazdak8-Sep-04 1:45
Mazdak8-Sep-04 1:45 
GeneralRe: C# How to set enabled/disabled buttons collor? Pin
adnanh758-Sep-04 2:01
adnanh758-Sep-04 2:01 
GeneralListView labeledit Pin
_Magnus_8-Sep-04 0:28
_Magnus_8-Sep-04 0:28 
GeneralRe: ListView labeledit Pin
mav.northwind8-Sep-04 1:10
mav.northwind8-Sep-04 1:10 
GeneralRe: ListView labeledit Pin
_Magnus_8-Sep-04 1:15
_Magnus_8-Sep-04 1:15 
GeneralRe: ListView labeledit Pin
mav.northwind8-Sep-04 1:58
mav.northwind8-Sep-04 1:58 
GeneralRe: ListView labeledit Pin
_Magnus_8-Sep-04 2:01
_Magnus_8-Sep-04 2:01 
Generalrefreshing datagrids Pin
Ashwin C8-Sep-04 0:23
Ashwin C8-Sep-04 0:23 
GeneralRe: refreshing datagrids Pin
Heath Stewart8-Sep-04 10:16
protectorHeath Stewart8-Sep-04 10:16 
Generalprevent new line in DataGrid Pin
BaraaSh7-Sep-04 23:41
BaraaSh7-Sep-04 23:41 
GeneralRe: prevent new line in DataGrid Pin
Mazdak8-Sep-04 1:47
Mazdak8-Sep-04 1:47 
GeneralRe: prevent new line in DataGrid Pin
BaraaSh8-Sep-04 3:48
BaraaSh8-Sep-04 3:48 
GeneralRe: prevent new line in DataGrid Pin
Heath Stewart8-Sep-04 10:15
protectorHeath Stewart8-Sep-04 10:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.