Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: Notepad 1024 characters per line restriction Pin
lisan_al_ghaib24-Aug-08 0:14
lisan_al_ghaib24-Aug-08 0:14 
GeneralRe: Notepad 1024 characters per line restriction Pin
lane0p224-Aug-08 0:58
lane0p224-Aug-08 0:58 
GeneralRe: Notepad 1024 characters per line restriction Pin
DaveyM6924-Aug-08 2:23
professionalDaveyM6924-Aug-08 2:23 
GeneralRe: Notepad 1024 characters per line restriction Pin
lisan_al_ghaib24-Aug-08 3:17
lisan_al_ghaib24-Aug-08 3:17 
GeneralRe: Notepad 1024 characters per line restriction Pin
Paul Conrad24-Aug-08 6:44
professionalPaul Conrad24-Aug-08 6:44 
GeneralRe: Notepad 1024 characters per line restriction Pin
chaiguy133725-Aug-08 15:29
chaiguy133725-Aug-08 15:29 
GeneralRe: Notepad 1024 characters per line restriction Pin
DaveyM6924-Aug-08 7:02
professionalDaveyM6924-Aug-08 7:02 
QuestionStruct value persistance in designer Pin
DaveyM6923-Aug-08 23:39
professionalDaveyM6923-Aug-08 23:39 
I have a struct that holds two longs (Low and High). This struct is used as a property (FullRange) in a user control(RangeControl) which I've dropped on a form. The values are not being serialized in the InitializeComponent in the form's designer.cs file so are therefore not persisted.

I expected to see something like
this.rangeControl1.FullRange = new Range((long)1, (long)50);

If I change the struct to a class it creates a variable for the property in the InitializeComponent and saves the values.
range1.High = ((long)(50));
range1.Low = ((long)(1));
this.rangeControl1.FullRange = range1;


How can I get the struct to persist?

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)

AnswerRe: Struct value persistance in designer - solved Pin
DaveyM6924-Aug-08 6:57
professionalDaveyM6924-Aug-08 6:57 
QuestionMagic Number in C#...................URGENT Pin
Ranjit Chaturvedi23-Aug-08 23:32
Ranjit Chaturvedi23-Aug-08 23:32 
AnswerRe: Magic Number in C#...................URGENT Pin
lisan_al_ghaib23-Aug-08 23:41
lisan_al_ghaib23-Aug-08 23:41 
AnswerRe: Magic Number in C#...................URGENT Pin
DaveyM6923-Aug-08 23:42
professionalDaveyM6923-Aug-08 23:42 
GeneralRe: Magic Number in C#...................URGENT Pin
User 665823-Aug-08 23:53
User 665823-Aug-08 23:53 
GeneralRe: Magic Number in C#...................URGENT Pin
lisan_al_ghaib24-Aug-08 0:09
lisan_al_ghaib24-Aug-08 0:09 
GeneralRe: Magic Number in C#...................URGENT Pin
Gareth H24-Aug-08 4:36
Gareth H24-Aug-08 4:36 
GeneralRe: Magic Number in C#...................URGENT Pin
User 665824-Aug-08 9:53
User 665824-Aug-08 9:53 
RantRe: Magic Number in C#...................URGENT Pin
Paul Conrad24-Aug-08 6:43
professionalPaul Conrad24-Aug-08 6:43 
AnswerRe: Magic Number in C#...................URGENT Pin
Pete O'Hanlon24-Aug-08 9:22
mvePete O'Hanlon24-Aug-08 9:22 
JokeRe: Magic Number in C#...................URGENT Pin
Paul Conrad24-Aug-08 10:08
professionalPaul Conrad24-Aug-08 10:08 
GeneralRe: Magic Number in C#...................URGENT Pin
Pete O'Hanlon24-Aug-08 10:19
mvePete O'Hanlon24-Aug-08 10:19 
GeneralRe: Magic Number in C#...................URGENT Pin
Paul Conrad24-Aug-08 10:23
professionalPaul Conrad24-Aug-08 10:23 
GeneralRe: Magic Number in C#...................URGENT Pin
Mycroft Holmes24-Aug-08 17:02
professionalMycroft Holmes24-Aug-08 17:02 
GeneralRe: Magic Number in C#...................URGENT Pin
Jammer25-Aug-08 0:47
Jammer25-Aug-08 0:47 
GeneralRe: Magic Number in C#...................URGENT Pin
Pete O'Hanlon25-Aug-08 22:48
mvePete O'Hanlon25-Aug-08 22:48 
QuestionUnable to connect to a Remedy database in C# Pin
Praveen Raghuvanshi23-Aug-08 23:09
professionalPraveen Raghuvanshi23-Aug-08 23:09 

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.