Click here to Skip to main content
15,898,035 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Need help with twisted callback issue [modified] Pin
Luc Pattyn30-Jan-08 15:14
sitebuilderLuc Pattyn30-Jan-08 15:14 
GeneralRe: Need help with twisted callback issue Pin
MissingLinkError1-Feb-08 9:29
MissingLinkError1-Feb-08 9:29 
GeneralInterop problem Pin
teejayem30-Jan-08 5:37
teejayem30-Jan-08 5:37 
GeneralRe: Interop problem Pin
led mike30-Jan-08 5:43
led mike30-Jan-08 5:43 
GeneralRe: Interop problem Pin
teejayem30-Jan-08 6:58
teejayem30-Jan-08 6:58 
GeneralRe: Interop problem Pin
led mike30-Jan-08 7:44
led mike30-Jan-08 7:44 
GeneralRe: Interop problem Pin
teejayem30-Jan-08 8:03
teejayem30-Jan-08 8:03 
QuestionProperties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB29-Jan-08 4:49
W Balboos, GHB29-Jan-08 4:49 
Hi, all:

In VS2003, I had no problems declaring (custom control) properties that were visible in the properties window for the control - also in a catagory of my choosing (typically named after the control, itself).

With VS2008, I had to change the format for declaring the properties (to one much like that of C#). They compile without error, and can be used within the control class.

Problem is that they don't show in the properties window. Even if I use standard names. There also seems to be an insistance that I declare them as follows:

public:<br />
[Description("Some descriptive verbage"),Category("Layout"), Browsable(true)]

static property type propertyName {<br />
  public: void set(type value) {...}<br />
  public: type get() {....}<br />
}


The declaration as static has quite a few annoying side effects, and was unnecessary in the oldsyntax version (below).

This is not the first time I visited this problem, but now the frustration level is getting to me. How is this done correctly? I'd settle for, as above, where I have to use a predefine category, but would prefer to do as I'd done before, which is to block them together in a custom name.


Thanks, in advance,

Balboos


Old Syntax (VS2003):
<br />
public:		       <br />
[Description(S"Some Descriptive Verbage"),Category(S"Anything")]<br />
    __property type get_PropertyName() { ... }<br />
    __property void set_PropertyName(type value) { ... }


"The difference between genius and stupidity is that genius has its limits." - Albert Einstein

"How do you find out if you're unwanted if everyone you try to ask tells you to go away?" - Balboos HaGadol



AnswerRe: Properties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB29-Jan-08 5:30
W Balboos, GHB29-Jan-08 5:30 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
Scott Dorman29-Jan-08 8:27
professionalScott Dorman29-Jan-08 8:27 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB31-Jan-08 3:06
W Balboos, GHB31-Jan-08 3:06 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
Scott Dorman31-Jan-08 3:32
professionalScott Dorman31-Jan-08 3:32 
GeneralRe: Properties: How Do You Declare/Observe in VS2008? Pin
W Balboos, GHB1-Feb-08 1:16
W Balboos, GHB1-Feb-08 1:16 
QuestionXMLWriter over internet Pin
dSolariuM28-Jan-08 21:15
dSolariuM28-Jan-08 21:15 
GeneralRe: XMLWriter over internet Pin
led mike29-Jan-08 4:59
led mike29-Jan-08 4:59 
QuestionHow to use mutual access to public data in parent and mdi child Pin
Chesnokov Yuriy28-Jan-08 21:10
professionalChesnokov Yuriy28-Jan-08 21:10 
GeneralRe: How to use mutual access to public data in parent and mdi child Pin
led mike29-Jan-08 4:51
led mike29-Jan-08 4:51 
Question0xc0150002 error Pin
Arsalan Malik28-Jan-08 4:57
Arsalan Malik28-Jan-08 4:57 
GeneralRe: 0xc0150002 error Pin
Mark Salsbery28-Jan-08 7:09
Mark Salsbery28-Jan-08 7:09 
GeneralRe: 0xc0150002 error Pin
led mike28-Jan-08 7:22
led mike28-Jan-08 7:22 
GeneralRe: 0xc0150002 error Pin
Mark Salsbery28-Jan-08 7:29
Mark Salsbery28-Jan-08 7:29 
GeneralRe: 0xc0150002 error Pin
Arsalan Malik29-Jan-08 1:31
Arsalan Malik29-Jan-08 1:31 
GeneralRe: 0xc0150002 error Pin
Arsalan Malik29-Jan-08 1:34
Arsalan Malik29-Jan-08 1:34 
GeneralRe: 0xc0150002 error Pin
Mark Salsbery29-Jan-08 5:14
Mark Salsbery29-Jan-08 5:14 
Generaluse an Object (like datagridview) in a thread Pin
javad_200527-Jan-08 23:00
javad_200527-Jan-08 23:00 

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.