Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Textbox control Pin
Christian Graus2-Feb-07 16:24
protectorChristian Graus2-Feb-07 16:24 
GeneralRe: Textbox control [modified] Pin
alostdruid2-Feb-07 16:45
alostdruid2-Feb-07 16:45 
GeneralRe: Textbox control Pin
Luc Pattyn2-Feb-07 17:08
sitebuilderLuc Pattyn2-Feb-07 17:08 
GeneralRe: Textbox control Pin
Christian Graus2-Feb-07 17:21
protectorChristian Graus2-Feb-07 17:21 
QuestionRe: Textbox control Pin
alostdruid5-Feb-07 15:00
alostdruid5-Feb-07 15:00 
AnswerRe: Textbox control Pin
Christian Graus5-Feb-07 17:11
protectorChristian Graus5-Feb-07 17:11 
Questionaccess application settings in from code in windows application Pin
red60mans2-Feb-07 15:03
red60mans2-Feb-07 15:03 
QuestionArrays of structures (inside a structure) Pin
Kim Ferrari2-Feb-07 13:10
Kim Ferrari2-Feb-07 13:10 
I'm trying to create a structure that contains an array of another structure within it and keep getting compile errors: Here's what I'm trying to do:


public struct MyState
{
int Id;
byte state;
}

// This gives me a compile error - cannot have instance field initializers in struct
public struct MyArray
{
MyState[] state = new MyState(100);
}

so I tried this - Gives me a compile error also
// fixed size buffer must be one of the following int, bool, etc...
public struct MyArray
{
fixed MyState state[100];
}

Any ideas - I'm receiving a message from a legacy system that has the message format wired to a specific byte layout. Confused | :confused:

Kim

Kim Ferrari

AnswerRe: Arrays of structures (inside a structure) Pin
Luc Pattyn2-Feb-07 13:27
sitebuilderLuc Pattyn2-Feb-07 13:27 
GeneralRe: Arrays of structures (inside a structure) Pin
Kim Ferrari5-Feb-07 12:51
Kim Ferrari5-Feb-07 12:51 
QuestionMouseClick event on wia video overlay Pin
stevva2-Feb-07 12:58
stevva2-Feb-07 12:58 
AnswerRe: MouseClick event on wia video overlay Pin
Luc Pattyn2-Feb-07 13:04
sitebuilderLuc Pattyn2-Feb-07 13:04 
GeneralRe: MouseClick event on wia video overlay Pin
stevva3-Feb-07 4:39
stevva3-Feb-07 4:39 
GeneralRe: MouseClick event on wia video overlay Pin
Luc Pattyn3-Feb-07 5:27
sitebuilderLuc Pattyn3-Feb-07 5:27 
GeneralRe: MouseClick event on wia video overlay Pin
stevva6-Feb-07 6:21
stevva6-Feb-07 6:21 
Questionprogress bar Pin
netJP12L2-Feb-07 10:46
netJP12L2-Feb-07 10:46 
AnswerRe: progress bar Pin
Christian Graus2-Feb-07 11:19
protectorChristian Graus2-Feb-07 11:19 
GeneralRe: progress bar Pin
netJP12L2-Feb-07 11:31
netJP12L2-Feb-07 11:31 
GeneralRe: progress bar Pin
Christian Graus2-Feb-07 11:44
protectorChristian Graus2-Feb-07 11:44 
GeneralRe: progress bar Pin
netJP12L2-Feb-07 11:46
netJP12L2-Feb-07 11:46 
GeneralRe: progress bar Pin
Luc Pattyn2-Feb-07 13:08
sitebuilderLuc Pattyn2-Feb-07 13:08 
GeneralRe: progress bar Pin
Christian Graus2-Feb-07 15:54
protectorChristian Graus2-Feb-07 15:54 
Questionmouse position Pin
negar soleimani2-Feb-07 10:28
negar soleimani2-Feb-07 10:28 
AnswerRe: mouse position Pin
Luc Pattyn2-Feb-07 10:31
sitebuilderLuc Pattyn2-Feb-07 10:31 
QuestionHow do I cast a string to type System.Windows.Forms.MessageBoxButtons Pin
Vernware2-Feb-07 10:25
Vernware2-Feb-07 10:25 

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.