Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
GeneralA drawing method parameters ... Pin
Andres Coder31-Jan-04 2:44
Andres Coder31-Jan-04 2:44 
GeneralRe: A drawing method parameters ... Pin
Mazdak31-Jan-04 4:36
Mazdak31-Jan-04 4:36 
GeneralRe: A drawing method parameters ... Pin
Nick Parker31-Jan-04 4:44
protectorNick Parker31-Jan-04 4:44 
Questionwhere is "Project Settings (ALT+F7)" of VC++6.0 in VS.NET ?? Pin
Anonymous31-Jan-04 2:17
Anonymous31-Jan-04 2:17 
AnswerRe: where is "Project Settings (ALT+F7)" of VC++6.0 in VS.NET ?? Pin
22491731-Jan-04 2:50
22491731-Jan-04 2:50 
AnswerRe: where is "Project Settings (ALT+F7)" of VC++6.0 in VS.NET ?? Pin
Mazdak31-Jan-04 4:45
Mazdak31-Jan-04 4:45 
GeneralProperties in a Winform Pin
StephenMcAllister30-Jan-04 23:18
StephenMcAllister30-Jan-04 23:18 
GeneralRe: Properties in a Winform Pin
Colin Angus Mackay31-Jan-04 1:28
Colin Angus Mackay31-Jan-04 1:28 
Here's a stub of some code to get you creating get/set properties in C#

public string MyPropertyName
{
    get
    {
        return this.myTextBox.Text
    }
    set
    {
        this.myTextBox.Text = value;
    }
}


In this example the property is a string, but it can be any type you like.

The keyword value is special and it contains the value the caller want to set the property to.

To use the property you can just assign and use it like any variable.

Does this help?

--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar


GeneralRe: Properties in a Winform Pin
StephenMcAllister31-Jan-04 19:31
StephenMcAllister31-Jan-04 19:31 
GeneralRe: Properties in a Winform Pin
Colin Angus Mackay1-Feb-04 1:40
Colin Angus Mackay1-Feb-04 1:40 
Generalhttp/ftp download redirection problem Pin
Member 85084030-Jan-04 22:32
Member 85084030-Jan-04 22:32 
GeneralIntercept incoming html Pin
lustuyck30-Jan-04 22:04
lustuyck30-Jan-04 22:04 
GeneralRe: Intercept incoming html Pin
Dmitriy Kostovetskiy31-Jan-04 9:23
Dmitriy Kostovetskiy31-Jan-04 9:23 
GeneralRe: Intercept incoming html Pin
Anonymous31-Jan-04 23:34
Anonymous31-Jan-04 23:34 
GeneralRe: Intercept incoming html Pin
Nick Parker1-Feb-04 7:28
protectorNick Parker1-Feb-04 7:28 
GeneralRe: Intercept incoming html Pin
Anonymous1-Feb-04 10:40
Anonymous1-Feb-04 10:40 
GeneralSearch pdf contents Pin
Mahesh Varma30-Jan-04 19:47
Mahesh Varma30-Jan-04 19:47 
GeneralTextbox.lines[] Pin
gsrajput30-Jan-04 17:03
gsrajput30-Jan-04 17:03 
GeneralRe: Textbox.lines[] Pin
Kentamanos30-Jan-04 20:15
Kentamanos30-Jan-04 20:15 
GeneralRe: Textbox.lines[] Pin
Colin Angus Mackay31-Jan-04 1:36
Colin Angus Mackay31-Jan-04 1:36 
GeneralRe: Textbox.lines[] Pin
gsrajput31-Jan-04 4:38
gsrajput31-Jan-04 4:38 
GeneralHiding WinForm app from ALT-TAB Pin
gordingin30-Jan-04 15:47
gordingin30-Jan-04 15:47 
GeneralTypeInitializationException Pin
pahluwalia30-Jan-04 11:30
pahluwalia30-Jan-04 11:30 
GeneralRe: TypeInitializationException Pin
Broken God1-Feb-04 18:58
Broken God1-Feb-04 18:58 
GeneralRe: TypeInitializationException Pin
pahluwalia2-Feb-04 4:04
pahluwalia2-Feb-04 4:04 

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.