Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: a question about config file for windows service program Pin
Bright Zhang4-Sep-05 21:02
Bright Zhang4-Sep-05 21:02 
QuestionHook the tab key on Window Form Pin
Duong Tien Nam4-Sep-05 17:32
Duong Tien Nam4-Sep-05 17:32 
AnswerRe: Hook the tab key on Window Form Pin
Luis Alonso Ramos4-Sep-05 20:04
Luis Alonso Ramos4-Sep-05 20:04 
AnswerRe: Hook the tab key on Window Form Pin
Sheel Gohe4-Sep-05 20:08
Sheel Gohe4-Sep-05 20:08 
GeneralRe: Hook the tab key on Window Form Pin
Duong Tien Nam4-Sep-05 20:11
Duong Tien Nam4-Sep-05 20:11 
GeneralRe: Hook the tab key on Window Form Pin
Duong Tien Nam4-Sep-05 21:04
Duong Tien Nam4-Sep-05 21:04 
QuestionAcceptButton for a UserControl? Pin
WetRivrRat4-Sep-05 16:33
WetRivrRat4-Sep-05 16:33 
AnswerRe: AcceptButton for a UserControl? Pin
Luis Alonso Ramos4-Sep-05 16:59
Luis Alonso Ramos4-Sep-05 16:59 
Your user control can't have an AcceptButton property because what happens if there are multiple user controls on the same form and all have that property set? which is the one that counts?

A workaround is to expose a public read only property named something like DefaultButton, and have it return a reference to your OK Button. Then, the form can set its AcceptButton property to that reference. Or the other way around, make the form pass a reference to itself to the user control, so it can set the form's AcceptButton property (I like the first way better).

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!


The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
Questionruler control Pin
azusakt4-Sep-05 16:32
azusakt4-Sep-05 16:32 
AnswerRe: ruler control Pin
Christian Graus4-Sep-05 16:35
protectorChristian Graus4-Sep-05 16:35 
AnswerRe: ruler control Pin
Mohamad Al Husseiny4-Sep-05 16:36
Mohamad Al Husseiny4-Sep-05 16:36 
GeneralRe: ruler control Pin
azusakt4-Sep-05 16:42
azusakt4-Sep-05 16:42 
QuestionI darg-drop item to a WebBrowser control Pin
Member 19785854-Sep-05 15:31
Member 19785854-Sep-05 15:31 
AnswerRe: I darg-drop item to a WebBrowser control Pin
Christian Graus4-Sep-05 15:34
protectorChristian Graus4-Sep-05 15:34 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Member 19785854-Sep-05 16:55
Member 19785854-Sep-05 16:55 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Christian Graus4-Sep-05 16:58
protectorChristian Graus4-Sep-05 16:58 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Member 19785854-Sep-05 20:31
Member 19785854-Sep-05 20:31 
GeneralRe: I darg-drop item to a WebBrowser control Pin
Christian Graus5-Sep-05 10:52
protectorChristian Graus5-Sep-05 10:52 
QuestionTwo Dimensional Control Array? Pin
ehollar4-Sep-05 15:15
ehollar4-Sep-05 15:15 
AnswerRe: Two Dimensional Control Array? Pin
Mohamad Al Husseiny4-Sep-05 15:30
Mohamad Al Husseiny4-Sep-05 15:30 
Questionhow to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 14:45
monica2k4-Sep-05 14:45 
AnswerRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 14:53
protectorChristian Graus4-Sep-05 14:53 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:00
monica2k4-Sep-05 15:00 
GeneralRe: how to access main form controls from usercontrol on the form Pin
Christian Graus4-Sep-05 15:04
protectorChristian Graus4-Sep-05 15:04 
GeneralRe: how to access main form controls from usercontrol on the form Pin
monica2k4-Sep-05 15:18
monica2k4-Sep-05 15:18 

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.