Click here to Skip to main content
15,881,588 members
Home / Discussions / C#
   

C#

 
Generalhelp Pin
imran_rafique22-Sep-02 13:53
imran_rafique22-Sep-02 13:53 
GeneralRe: help Pin
Stephane Rodriguez.22-Sep-02 20:15
Stephane Rodriguez.22-Sep-02 20:15 
GeneralDesktop Hierarchy Pin
Wjousts22-Sep-02 13:41
Wjousts22-Sep-02 13:41 
GeneralRe: Desktop Hierarchy Pin
Paul Riley22-Sep-02 15:07
Paul Riley22-Sep-02 15:07 
Questionhelp? Pin
imran_rafique22-Sep-02 13:35
imran_rafique22-Sep-02 13:35 
GeneralDragging files onto a windows form Pin
zimbar22-Sep-02 5:01
zimbar22-Sep-02 5:01 
GeneralRe: Dragging files onto a windows form Pin
Stephane Rodriguez.22-Sep-02 5:20
Stephane Rodriguez.22-Sep-02 5:20 
GeneralCustom Control Pin
Donald Blachly21-Sep-02 18:55
Donald Blachly21-Sep-02 18:55 
I am building a custom control in C# out of existing controls. One question I have:

Normally, when a control such as a TextBox is added to a Form, it is declared as private but as a member of the form, the Textbox.Text for example, is acessible for coding in the form. With a custom control, if I declare the controls as private, they are not directly accessible to the form the control is placed on. Should I declare the individual controls as protected or public members in the custom control and the custom control as private? Will this protect the data members or is the another way that would be better?

When you come to a fork in the road, take it! Y. Berra
GeneralRe: Custom Control Pin
Stephane Rodriguez.21-Sep-02 21:24
Stephane Rodriguez.21-Sep-02 21:24 
GeneralRe: Custom Control Pin
James T. Johnson21-Sep-02 21:42
James T. Johnson21-Sep-02 21:42 
GeneralRe: Custom Control Pin
Stephane Rodriguez.21-Sep-02 22:59
Stephane Rodriguez.21-Sep-02 22:59 
GeneralRe: Custom Control Pin
James T. Johnson21-Sep-02 23:13
James T. Johnson21-Sep-02 23:13 
GeneralRe: Custom Control Pin
Donald Blachly22-Sep-02 3:47
Donald Blachly22-Sep-02 3:47 
QuestionCentering a window at runtime? Pin
Zinj21-Sep-02 14:00
sussZinj21-Sep-02 14:00 
AnswerRe: Centering a window at runtime? Pin
David Stone21-Sep-02 14:14
sitebuilderDavid Stone21-Sep-02 14:14 
AnswerRe: Centering a window at runtime? Pin
James T. Johnson21-Sep-02 14:30
James T. Johnson21-Sep-02 14:30 
GeneralRe: Centering a window at runtime? Pin
Zinj21-Sep-02 15:43
sussZinj21-Sep-02 15:43 
GeneralRe: Centering a window at runtime? Pin
James T. Johnson21-Sep-02 15:50
James T. Johnson21-Sep-02 15:50 
GeneralRe: Centering a window at runtime? Pin
Zinj22-Sep-02 4:51
sussZinj22-Sep-02 4:51 
GeneralRGB and HSV Pin
Tomas Petricek21-Sep-02 4:43
Tomas Petricek21-Sep-02 4:43 
GeneralRe: RGB and HSV Pin
leppie21-Sep-02 5:34
leppie21-Sep-02 5:34 
GeneralRe: RGB and HSV Pin
Stephane Rodriguez.21-Sep-02 5:42
Stephane Rodriguez.21-Sep-02 5:42 
GeneralRe: RGB and HSV Pin
leppie21-Sep-02 5:55
leppie21-Sep-02 5:55 
GeneralRe: RGB and HSV Pin
Tomas Petricek21-Sep-02 6:19
Tomas Petricek21-Sep-02 6:19 
GeneralScrolling Metrics Pin
leppie21-Sep-02 3:53
leppie21-Sep-02 3:53 

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.