473,396 Members | 1,748 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,396 software developers and data experts.

Adding a usercontrol's property in the property window

Hi

I have created a control with 3 properties (TextDiff, DarkColorDiff
and LightColorDiff). When I use that control in a program, I would
like those properties to show up in the property window with all the
other properties for that control.

How could I do that? I had hoped that declaring them as properties
would work, but that doesn't seem to be the case...

thanks
Nov 21 '05 #1
2 1204
* Zyrthofar Blackcloak <Zy*@hotmail.com> scripsit:
I have created a control with 3 properties (TextDiff, DarkColorDiff
and LightColorDiff). When I use that control in a program, I would
like those properties to show up in the property window with all the
other properties for that control.


\\\
Imports System.ComponentModel
..
..
..
<Browsable()> _
Public Property...
...
End Property
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
Greatly helped with my problem. Thank you very much!
On 28 Aug 2004 18:14:41 +0200, hi***************@gmx.at (Herfried K.
Wagner [MVP]) wrote:
* Zyrthofar Blackcloak <Zy*@hotmail.com> scripsit:
I have created a control with 3 properties (TextDiff, DarkColorDiff
and LightColorDiff). When I use that control in a program, I would
like those properties to show up in the property window with all the
other properties for that control.


\\\
Imports System.ComponentModel
.
.
.
<Browsable()> _
Public Property...
...
End Property
///


Nov 21 '05 #3

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

Similar topics

4
by: DraguVaso | last post by:
Hi, I'm having some weird behaviour, and I can't find any solution to this. I made a UserControl (uclCommands) which contains a Toolbar (ToolBar1) with Modifiers = Public. I put this...
4
by: james | last post by:
I cannot get my UserControl's browsable properties to show up in the designer properties panel. I have then public virtual bool TestProp { {get return testProp; } set { testProp = value; } } ...
2
by: Joe | last post by:
OK, so i searched this forum, and it seems like my question has come close to being answered a dozen times, but never fully... I have a very simple control that inherits from UserControl. It has...
2
by: bill yeager | last post by:
When trying to run my web project, I get the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the...
2
by: SamSpade | last post by:
This more out of curiosity than need. The Object Browser shows a property Text for UserControl. But if I look in the property window for a UserControl Text is not there (How come??). I...
5
by: Sylvain Barde | last post by:
Wanna make a usercontrol that when seen from properties window has a "plus" sign at left that indicate some members of a property. Like the property Size of a form. Or like a collection like...
0
by: Charlie | last post by:
For a Windows Form: A Label is added to a UserControl. A public property of type Label is added to the UserControl code to represent the Label. The property, LabelOne, provides a tree view in...
3
by: Don | last post by:
I've created a custom UserControlwithin which I have placed a Panel. I've changed the Panel's "Modifier" property to Public so that it appears in the Properties Window of the UserControl. This...
1
by: bonk | last post by:
I have a very simple UserControl (derived from System.Windows.Forms.UserControl) that contains several ListViews. The UserControl exposes a single public property: public...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.