Click here to Skip to main content
15,920,576 members
Home / Discussions / C#
   

C#

 
AnswerRe: document code Pin
Pete O'Hanlon5-May-10 9:26
mvePete O'Hanlon5-May-10 9:26 
AnswerRe: document code Pin
Dave Kreskowiak5-May-10 9:32
mveDave Kreskowiak5-May-10 9:32 
AnswerRe: document code Pin
Peace ON5-May-10 21:03
Peace ON5-May-10 21:03 
QuestionDate formate changing in Italian settings Pin
attalurisubbu5-May-10 5:28
attalurisubbu5-May-10 5:28 
AnswerRe: Date formate changing in Italian settings Pin
Not Active5-May-10 5:55
mentorNot Active5-May-10 5:55 
AnswerRe: Date formate changing in Italian settings Pin
dan!sh 5-May-10 6:26
professional dan!sh 5-May-10 6:26 
AnswerRe: Date formate changing in Italian settings Pin
The Man from U.N.C.L.E.5-May-10 6:48
The Man from U.N.C.L.E.5-May-10 6:48 
QuestionParsing JSON Pin
harsimranb5-May-10 5:18
harsimranb5-May-10 5:18 
AnswerRe: Parsing JSON Pin
OriginalGriff5-May-10 5:39
mveOriginalGriff5-May-10 5:39 
AnswerRe: Parsing JSON Pin
Kythen5-May-10 11:32
Kythen5-May-10 11:32 
GeneralRe: Parsing JSON Pin
harsimranb5-May-10 12:03
harsimranb5-May-10 12:03 
QuestionBuffering video files Pin
TimSWatson5-May-10 4:12
TimSWatson5-May-10 4:12 
AnswerRe: Buffering video files Pin
Peace ON5-May-10 4:27
Peace ON5-May-10 4:27 
QuestionAccesing Data using DMO Pin
Nandakumar.n.pai5-May-10 2:45
Nandakumar.n.pai5-May-10 2:45 
AnswerRe: Accesing Data using DMO Pin
Henry Minute5-May-10 3:00
Henry Minute5-May-10 3:00 
GeneralRe: Accesing Data using DMO Pin
Nandakumar.n.pai5-May-10 17:39
Nandakumar.n.pai5-May-10 17:39 
GeneralRe: Accesing Data using DMO Pin
Henry Minute6-May-10 1:45
Henry Minute6-May-10 1:45 
GeneralRe: Accesing Data using DMO Pin
Nandakumar.n.pai6-May-10 20:46
Nandakumar.n.pai6-May-10 20:46 
GeneralRe: Accesing Data using DMO Pin
Henry Minute7-May-10 1:32
Henry Minute7-May-10 1:32 
GeneralRe: Accesing Data using DMO Pin
Nandakumar.n.pai7-May-10 18:57
Nandakumar.n.pai7-May-10 18:57 
QuestionSelect local class pointer to static class instance with property explorer (Best description I can manage!). Pin
kevsticle25-May-10 2:37
kevsticle25-May-10 2:37 
Hi,

I have a class (call it Fred) which contains several static classes (call them Freds_Box1, Freds_Box2 etc) which are identical in structure.

In a component I have a "Fred_Box". I want to be able to select which "Fred_Box" this points to out of all the "Freds_Boxe's" in "Fred" using the property explorer.

Defining the components "Freds Box" selection in code is easy and works perfectly but as Fred will be accessed by a whole bunch of components using data sources contained in the "Freds Box" selected, I need to be able to do this from the property explorer.

This is hard to explain, I hope it makes sense - here is some example code (untested, but it should hopefully get the point across!).

public class Fred
{
public static Freds_Box1 = new Freds_Box();
public static Freds_Box2 = new Freds_Box();
}

public partial class SomeComponent : UserControl
{
//the code way which works but isn't selectable:-
//private Freds_Box _Local_Freds_Box = Fred.Freds_Box1;

private Freds_Box _Local_Freds_Box;

//this property does not allow selecting anything, how can I "point" it at "Fred"
//so that I can select say "Freds_Box_1" from the list?
public Local_Freds_Box
{
get { return Local_Freds_Box; }
set { Local_Freds_Box = value; }
}
}

Any help with this would be greatly appreciated!!

Confused | :confused:


Thanks.
AnswerRe: Select local class pointer to static class instance with property explorer (Best description I can manage!). Pin
Michel Godfroid5-May-10 3:29
Michel Godfroid5-May-10 3:29 
GeneralRe: Select local class pointer to static class instance with property explorer (Best description I can manage!). Pin
kevsticle25-May-10 3:37
kevsticle25-May-10 3:37 
GeneralRe: Select local class pointer to static class instance with property explorer (Best description I can manage!). Pin
Michel Godfroid5-May-10 6:25
Michel Godfroid5-May-10 6:25 
AnswerRe: Select local class pointer to static class instance with property explorer (Best description I can manage!). Pin
OriginalGriff5-May-10 6:09
mveOriginalGriff5-May-10 6: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.