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

C#

 
AnswerRe: Save a file from ASP.NET down to database and upp again. Pin
J4amieC7-Oct-10 0:50
J4amieC7-Oct-10 0:50 
Questionmake mouse disable, how that user could not be able to use it. Pin
Fred 346-Oct-10 23:36
Fred 346-Oct-10 23:36 
AnswerRe: make mouse disable, how that user could not be able to use it. Pin
Eddy Vluggen7-Oct-10 1:01
professionalEddy Vluggen7-Oct-10 1:01 
AnswerRe: make mouse disable, how that user could not be able to use it. Pin
Rhuros7-Oct-10 1:35
professionalRhuros7-Oct-10 1:35 
AnswerRe: make mouse disable, how that user could not be able to use it. Pin
S Houghtelin7-Oct-10 5:52
professionalS Houghtelin7-Oct-10 5:52 
GeneralRe: make mouse disable, how that user could not be able to use it. Pin
PIEBALDconsult9-Oct-10 4:27
mvePIEBALDconsult9-Oct-10 4:27 
GeneralRe: make mouse disable, how that user could not be able to use it. Pin
S Houghtelin12-Oct-10 3:09
professionalS Houghtelin12-Oct-10 3:09 
QuestionList inside a struct Pin
Islorvat6-Oct-10 22:45
Islorvat6-Oct-10 22:45 
Hello,

Can anyone tell me how to use a List of strings inside a struct? I get the 'Object reference not set to an instance of an object.' error.

public Form1()
{
    InitializeComponent();
}

struct testStruct
{
    public List<string> sList
    {
        get;
        set;
    }

}

private void Form1_Load(object sender, EventArgs e)
{
    testStruct aTestStruct = new testStruct();
    aTestStruct.sList.Add("test");
}


Thank you!
AnswerRe: List inside a struct Pin
J4amieC6-Oct-10 22:57
J4amieC6-Oct-10 22:57 
AnswerRe: List inside a struct Pin
DaveyM697-Oct-10 0:11
professionalDaveyM697-Oct-10 0:11 
GeneralRe: List inside a struct Pin
harold aptroot7-Oct-10 0:39
harold aptroot7-Oct-10 0:39 
GeneralRe: List inside a struct Pin
DaveyM697-Oct-10 7:02
professionalDaveyM697-Oct-10 7:02 
GeneralRe: List inside a struct Pin
harold aptroot7-Oct-10 7:05
harold aptroot7-Oct-10 7:05 
GeneralRe: List inside a struct Pin
DaveyM697-Oct-10 7:14
professionalDaveyM697-Oct-10 7:14 
QuestionApplication Fauled to Initialize (0xc000007b) Pin
Enobong Adahada6-Oct-10 22:12
Enobong Adahada6-Oct-10 22:12 
AnswerRe: Application Fauled to Initialize (0xc000007b) Pin
Sauro Viti6-Oct-10 22:26
professionalSauro Viti6-Oct-10 22:26 
GeneralRe: Application Fauled to Initialize (0xc000007b) Pin
Enobong Adahada7-Oct-10 3:12
Enobong Adahada7-Oct-10 3:12 
AnswerRe: Application Fauled to Initialize (0xc000007b) Pin
Luc Pattyn7-Oct-10 3:25
sitebuilderLuc Pattyn7-Oct-10 3:25 
GeneralRe: Application Fauled to Initialize (0xc000007b) Pin
Enobong Adahada7-Oct-10 3:53
Enobong Adahada7-Oct-10 3:53 
GeneralRe: Application Fauled to Initialize (0xc000007b) Pin
Enobong Adahada7-Oct-10 4:34
Enobong Adahada7-Oct-10 4:34 
JokeRe: Application Fauled to Initialize (0xc000007b) Pin
Sauro Viti7-Oct-10 22:35
professionalSauro Viti7-Oct-10 22:35 
QuestionServer side validation Pin
janani136-Oct-10 20:44
janani136-Oct-10 20:44 
AnswerRe: Server side validation Pin
rah_sin6-Oct-10 21:24
professionalrah_sin6-Oct-10 21:24 
GeneralCommunication with DCOM Server Pin
loic.ploumen6-Oct-10 6:50
loic.ploumen6-Oct-10 6:50 
GeneralRe: Communication with DCOM Server Pin
loic.ploumen7-Oct-10 3:01
loic.ploumen7-Oct-10 3:01 

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.