473,326 Members | 2,102 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,326 software developers and data experts.

Custom UITypeEditor

In building controls we need to create Custom UITypeEditor classes, most of
this classes (in my case) doing the same job, its used to support the
controls properties with a drop down list contains some string values.
My question is, can I summarize all of this classes in one class that takes
an array of string as a parameter and used for all controls properties?

Thanks
Ahmed

Nov 21 '05 #1
2 2763
Ahmend,

Why don't you inherit UITypeEditor to create your own version of
UITypeEditor. you can have a constructor in your class take in array of
strings.

-jack

Nov 21 '05 #2
I already Inherit from the class UITypeEditor. I have a class
SS_DataFieldEditor inherits from UITypeEditor , but I don't know how can I
make the class SS_DataFieldEditor have parameter list also how could I pass
those parameters from my control specialy if the parameters are varied.

this a part from my code

Public Class SS_DataFieldEditor

Inherits UITypeEditor

......

End Class

Public Class SS

Inherits System.Windows.Forms.UserControl

<Category("SS_DataPropeties"), Editor(GetType(SS_DataFieldEditor),
GetType(UITypeEditor)), DefaultValue("")>_

Public Property SourceTable() As String

....

End Property

End Class

Ahmed

"Jack hu" <Jackhu@microsoft> wrote in message
news:QJ**************@TK2MSFTNGXA01.phx.gbl...
Ahmend,

Why don't you inherit UITypeEditor to create your own version of
UITypeEditor. you can have a constructor in your class take in array of
strings.

-jack

Nov 21 '05 #3

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

Similar topics

0
by: Rhy Mednick | last post by:
I have a series of simple controls that I created to make some aspects of Tablet PC programming a little easier. The "Tablet PC" aspects of the controls are irrelevant to the problem I'm having,...
2
by: Michiel | last post by:
Hello, Can anyone tell me how I can add a custom property to a Form, so that it is visible in the designer ? I tried public int MyProperty { get { return m_MyProperty; } set { m_MyProperty...
4
by: Peter | last post by:
Hello, Thanks for reviewing my question. I am just starting out create a custom control following the KB example "Create a Data Bound ListView Control". I am receiving a syntax error on the...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
0
by: Kay | last post by:
Hello, I have developed a web custom control, I want one of the properties of the control to appear as a dropdown list so the user can select from the list. My question is: how do I define an...
0
by: Kay | last post by:
Hello, I have developed a web custom control, I want one of the properties of the control to appear as a dropdown list so the user can select from the list. My question is: how do I define an...
0
by: Jeremy Chapman | last post by:
I have included below virtually all the code to a control I'm trying to build. My issue is that an array list property in my control does not get persisted properly to the aspx page code in design...
0
by: Kay | last post by:
Hello, I have written my own custom control and I want one of its properties to display as a dropdown list when clicked, so the user can select from the list, it would be similar to the asp...
11
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I have worked with application settings in VS2005 and C# for awhile, but usually with standard types. I have been trying to store a custom container/class/type in an application setting and I have...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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.