Click here to Skip to main content
15,904,288 members
Home / Discussions / C#
   

C#

 
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 
QuestionDisplay List items? Pin
spankyleo1235-May-10 1:12
spankyleo1235-May-10 1:12 
AnswerRe: Display List items? Pin
Henry Minute5-May-10 1:15
Henry Minute5-May-10 1:15 
AnswerRe: Display List items? Pin
Peace ON5-May-10 2:01
Peace ON5-May-10 2:01 
AnswerRe: Display List items? Pin
Luc Pattyn5-May-10 2:52
sitebuilderLuc Pattyn5-May-10 2:52 
QuestionTCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 0:58
Tunisien865-May-10 0:58 
AnswerRe: TCP/IP connexion failed in csharp smart device Pin
Eddy Vluggen5-May-10 1:03
professionalEddy Vluggen5-May-10 1:03 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 1:10
Tunisien865-May-10 1:10 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Eddy Vluggen5-May-10 1:22
professionalEddy Vluggen5-May-10 1:22 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 2:25
Tunisien865-May-10 2:25 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 2:52
Tunisien865-May-10 2:52 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 4:04
Michel Godfroid5-May-10 4:04 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Tunisien865-May-10 4:22
Tunisien865-May-10 4:22 
GeneralRe: TCP/IP connexion failed in csharp smart device Pin
Michel Godfroid5-May-10 4:47
Michel Godfroid5-May-10 4:47 

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.