473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I see Custom Contrrol properties in the designer?

How do I get the public properties of my custom control to show in the
designer. The properties are all Strings but they do not show up in
the designer property window.

My custom control inherits from:
System.Web.UI.UserControl

I have the following property:
Public Property workUnitCode() As String
....
End Property

I've tried putting the Browsable(true) tag but it does not help.

The custom control is in the same project with my page and I jsut drop
it onto the page. If I instantiate the control in the code-behind I
can see the properties.

Do I have to build the control in a dll and and include a reference to
that dll to make it work?

Nov 19 '05 #1
1 1295
Hi,

I always inherit from System.Web.UI.Control, not UserControl.

For my properties I have this:

<Browsable(True), Category("Stuff"),> _
Public Property FirstName() As String

For the properties I create custom designers for I use this:

<Browsable(True), Category("OtherStuff"),_
Editor(GetType(MyEditor), GetType(UITypeEditor))> _
Public Property FirstName() As String

Also be sure to add this line at the top of your control class:

Imports System.ComponentModel

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

<ch*********@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
How do I get the public properties of my custom control to show in the
designer. The properties are all Strings but they do not show up in
the designer property window.

My custom control inherits from:
System.Web.UI.UserControl

I have the following property:
Public Property workUnitCode() As String
...
End Property

I've tried putting the Browsable(true) tag but it does not help.

The custom control is in the same project with my page and I jsut drop
it onto the page. If I instantiate the control in the code-behind I
can see the properties.

Do I have to build the control in a dll and and include a reference to
that dll to make it work?

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: James Geurts | last post by:
Hey all... I posted this in the vs.net ide group too, but people are not answering, so I figured that it might be more appropriate here. I'm not sure if I'm adding a designer to my code properly. ...
7
by: Martin Schulze | last post by:
Hello, i tried to compose myself a custom usercontrol which is derieved from System.Windows.Forms.UserControl. It contains 2 comboboxes and one textbox (which are also custom controls, but...
0
by: paul.phillips | last post by:
Hi, I am a problem: I have a custom control called DataView that holds a DataGrid object. The DataGrid has an event attached (PageIndexChanged) now the problem is that the event is not being...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
0
by: Don | last post by:
I have a custom control with a custom designer. This designer allows me to open a dialog to define custom properties the way 'Property Builder' works for the datagrid. After I set the properties...
9
by: PJ6 | last post by:
I'm sure it's some attribute I have to set but I can't find it. I'd like to be able to have my properties in my custom web user controls show up in the web forms designer. Is that possible? Paul
0
by: Jordan Bowness | last post by:
I make a similar post in another newsgroup, but this example is simplified somewhat. I have a component (cmpMyComponent) with 2 properties. The 1st property is a string value (Description) and...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
3
by: Wade | last post by:
I am having an issue where I have added a custom property to one of my forms, but it doesn't show up in the properties window in the designer window. The property shows up in the intellisense in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.