Click here to Skip to main content
15,921,156 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to read image file ? Pin
Christian Graus23-Apr-07 0:59
protectorChristian Graus23-Apr-07 0:59 
QuestionMFC serialization Pin
Keshav V. Kamat23-Apr-07 0:28
Keshav V. Kamat23-Apr-07 0:28 
AnswerRe: MFC serialization Pin
Colin Angus Mackay23-Apr-07 0:41
Colin Angus Mackay23-Apr-07 0:41 
QuestionDriveInfo's IsReady problem Pin
Eduard Keilholz23-Apr-07 0:27
Eduard Keilholz23-Apr-07 0:27 
Questionusing instance of a class ? Pin
Software_Specialist23-Apr-07 0:12
Software_Specialist23-Apr-07 0:12 
AnswerRe: using instance of a class ? Pin
Colin Angus Mackay23-Apr-07 0:23
Colin Angus Mackay23-Apr-07 0:23 
GeneralRe: using instance of a class ? Pin
Software_Specialist23-Apr-07 0:27
Software_Specialist23-Apr-07 0:27 
GeneralRe: using instance of a class ? Pin
Colin Angus Mackay23-Apr-07 0:47
Colin Angus Mackay23-Apr-07 0:47 
Software_Specialist wrote:
how to store it as field


AKA Member variable

public class MyForm : Form
{
    // This is the field. It is "private" (cannot be seen outside this instance
    // of the class. It is of type "MyObject" (You'll want to put your own class
    // name in here). And it is called "someObject" (so you can refer to it in
    // other code in the class.)
    private MyObject someObject;
...
    // This could be the register button handler (for example)
    public void TheRegisterMethod()
    {
        this.someObject = new SomeObject("blah");
    }
...
    // This could be a button handler method
    public void SomeOtherMethodThatNeedsSomeObject()
    {
        this.SomeObject.DoStuff();
    }
}



Upcoming events:
* Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services...

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

AnswerRe: using instance of a class ? Pin
Eduard Keilholz23-Apr-07 0:47
Eduard Keilholz23-Apr-07 0:47 
GeneralRe: using instance of a class ? Pin
Christian Graus23-Apr-07 0:58
protectorChristian Graus23-Apr-07 0:58 
GeneralRe: using instance of a class ? Pin
Software_Specialist23-Apr-07 1:41
Software_Specialist23-Apr-07 1:41 
QuestionGetter and Setter functions Pin
Dewald23-Apr-07 0:06
Dewald23-Apr-07 0:06 
AnswerRe: Getter and Setter functions Pin
andre_swnpl23-Apr-07 0:29
andre_swnpl23-Apr-07 0:29 
GeneralRe: Getter and Setter functions Pin
Colin Angus Mackay23-Apr-07 0:40
Colin Angus Mackay23-Apr-07 0:40 
AnswerRe: Getter and Setter functions Pin
Colin Angus Mackay23-Apr-07 0:37
Colin Angus Mackay23-Apr-07 0:37 
AnswerRe: Getter and Setter functions Pin
Guffa23-Apr-07 1:00
Guffa23-Apr-07 1:00 
GeneralRe: Getter and Setter functions Pin
Dewald23-Apr-07 2:44
Dewald23-Apr-07 2:44 
AnswerRe: Getter and Setter functions Pin
Vikram A Punathambekar23-Apr-07 2:07
Vikram A Punathambekar23-Apr-07 2:07 
QuestionHow to set a parameter field in .rdlc during design time Pin
selvakumar Panchatcharam22-Apr-07 23:57
selvakumar Panchatcharam22-Apr-07 23:57 
QuestionC# time to C++ (VS 6) time Pin
Stevo Z22-Apr-07 23:49
Stevo Z22-Apr-07 23:49 
AnswerRe: C# time to C++ (VS 6) time Pin
Christian Graus23-Apr-07 0:06
protectorChristian Graus23-Apr-07 0:06 
GeneralRe: C# time to C++ (VS 6) time Pin
Stevo Z23-Apr-07 0:15
Stevo Z23-Apr-07 0:15 
QuestionSerialization problem Pin
NaNg1524122-Apr-07 23:48
NaNg1524122-Apr-07 23:48 
QuestionHow to add sub columns with C#.net for Pocket PC Pin
urairat22-Apr-07 23:44
urairat22-Apr-07 23:44 
QuestionMissing something in an unmanaged C++ function call? Pin
jozsurf22-Apr-07 23:26
jozsurf22-Apr-07 23:26 

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.