Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Designer Support: How to have user control's properties appear in IDE's properties window?

Reply
Thread Tools

Designer Support: How to have user control's properties appear in IDE's properties window?

 
 
Max2006
Guest
Posts: n/a
 
      07-13-2007
Hi,

I have a user control with a public property like this:

public string Text
{
get { return cboCountry.Text; }
set { cboCountry.Text = value; }
}

How can I have my user control's Text property appear in IDE's properties
window?

Any help would be appreciated,
Max


 
Reply With Quote
 
 
 
 
Walter Wang [MSFT]
Guest
Posts: n/a
 
      07-13-2007
Hi Max,

If you use the User Control on a Web Form, when it's selected, the
properties window should show the "Text" property correctly. I verified
this using your code and it's working as expected.

Please note though this property will not show when you're working on the
User Control's designer itself.

Would you please tell me more about the issue? This should be a by default
behavior. If necessary, you can create a reproducible project and send it
to me for further troubleshooting. Thank you.


Regards,
Walter Wang ((E-Mail Removed), remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
 
Max2006
Guest
Posts: n/a
 
      07-13-2007

You are correct. All I had to do was close all pages and re-open them in the
IDE.
Sorry about the confiuseion

Regards,
Max



"Walter Wang [MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Max,
>
> If you use the User Control on a Web Form, when it's selected, the
> properties window should show the "Text" property correctly. I verified
> this using your code and it's working as expected.
>
> Please note though this property will not show when you're working on the
> User Control's designer itself.
>
> Would you please tell me more about the issue? This should be a by default
> behavior. If necessary, you can create a reproducible project and send it
> to me for further troubleshooting. Thank you.
>
>
> Regards,
> Walter Wang ((E-Mail Removed), remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
User Control's Default Property Values do Not Appear In Properties Window Jonathan Wood ASP .Net 2 02-08-2008 12:26 AM
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Building Controls 3 07-30-2007 09:09 PM
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Web Controls 0 07-21-2007 12:58 AM
Viewing or Editing Web User Control properties in the designer Jay Douglas ASP .Net 2 11-02-2003 01:27 AM



Advertisments