Click here to Skip to main content
15,915,834 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sotware Template for manage SMEs Pin
Dave Kreskowiak17-Aug-13 11:40
mveDave Kreskowiak17-Aug-13 11:40 
AnswerRe: Sotware Template for manage SMEs Pin
Mycroft Holmes17-Aug-13 13:54
professionalMycroft Holmes17-Aug-13 13:54 
AnswerRe: Sotware Template for manage SMEs Pin
Abhinav S17-Aug-13 17:16
Abhinav S17-Aug-13 17:16 
GeneralRe: Sotware Template for manage SMEs Pin
Member 990191218-Aug-13 5:01
Member 990191218-Aug-13 5:01 
GeneralRe: Sotware Template for manage SMEs Pin
Dave Kreskowiak18-Aug-13 7:32
mveDave Kreskowiak18-Aug-13 7:32 
QuestionHow To access inner Control in custom user control Pin
Mahdi_kishislan17-Aug-13 0:11
Mahdi_kishislan17-Aug-13 0:11 
AnswerRe: How To access inner Control in custom user control Pin
Ron Beyer17-Aug-13 4:03
professionalRon Beyer17-Aug-13 4:03 
GeneralRe: How To access inner Control in custom user control Pin
OriginalGriff17-Aug-13 4:55
mveOriginalGriff17-Aug-13 4:55 
Bad idea!

You should not expose controls directly - it locks your control format so you cannot make any changes without risking breaking external code that uses the controls in ways you did not anticipate, and also constrains you to always use that control in future, even if you should "replace that text box with a drop down list and a numeric up-down because that reflects better what the data is used for". If you did, you would break outside code and potentially annoy a lot of people whose code relies on yours.

Instead, use a public property to get and set the value on your internal, hidden controls - that is why all controls default to private when you add them in the designer!
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

GeneralRe: How To access inner Control in custom user control Pin
Mahdi_kishislan17-Aug-13 20:15
Mahdi_kishislan17-Aug-13 20:15 
GeneralRe: How To access inner Control in custom user control Pin
OriginalGriff17-Aug-13 21:20
mveOriginalGriff17-Aug-13 21:20 
GeneralRe: How To access inner Control in custom user control Pin
Mahdi_kishislan17-Aug-13 20:15
Mahdi_kishislan17-Aug-13 20:15 
AnswerRe: How To access inner Control in custom user control Pin
OriginalGriff17-Aug-13 4:56
mveOriginalGriff17-Aug-13 4:56 
AnswerRe: How To access inner Control in custom user control Pin
Pete O'Hanlon17-Aug-13 6:54
mvePete O'Hanlon17-Aug-13 6:54 
Questiontcp ip Pin
Member 360103416-Aug-13 21:56
Member 360103416-Aug-13 21:56 
AnswerRe: tcp ip Pin
Mycroft Holmes16-Aug-13 23:11
professionalMycroft Holmes16-Aug-13 23:11 
AnswerRe: tcp ip Pin
Richard MacCutchan17-Aug-13 5:47
mveRichard MacCutchan17-Aug-13 5:47 
GeneralRe: tcp ip Pin
Member 360103425-Aug-13 21:43
Member 360103425-Aug-13 21:43 
GeneralRe: tcp ip Pin
Richard MacCutchan26-Aug-13 4:03
mveRichard MacCutchan26-Aug-13 4:03 
AnswerRe: tcp ip Pin
PIEBALDconsult17-Aug-13 7:08
mvePIEBALDconsult17-Aug-13 7:08 
QuestionChange of file Extension in C# Pin
Ratnadip Kuri16-Aug-13 20:36
professionalRatnadip Kuri16-Aug-13 20:36 
AnswerRe: Change of file Extension in C# Pin
Mycroft Holmes16-Aug-13 20:46
professionalMycroft Holmes16-Aug-13 20:46 
AnswerRe: Change of file Extension in C# Pin
Thomas Daniels16-Aug-13 23:21
mentorThomas Daniels16-Aug-13 23:21 
GeneralRe: Change of file Extension in C# Pin
Mycroft Holmes17-Aug-13 0:10
professionalMycroft Holmes17-Aug-13 0:10 
AnswerRe: Change of file Extension in C# Pin
Ahsan9817-Aug-13 1:29
Ahsan9817-Aug-13 1:29 
GeneralRe: Change of file Extension in C# Pin
Mycroft Holmes17-Aug-13 14:00
professionalMycroft Holmes17-Aug-13 14:00 

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.