Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max2006 - 13 Jul 2007 04:58 GMT
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
Walter Wang [MSFT] - 13 Jul 2007 07:09 GMT
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 (wawang@online.microsoft.com, 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.
Max2006 - 13 Jul 2007 14:45 GMT
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

> Hi Max,
>
[quoted text clipped - 20 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.