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 2 2784
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
I already Inherit from the class UITypeEditor. I have a class
SS_DataFieldEdi tor inherits from UITypeEditor , but I don't know how can I
make the class SS_DataFieldEdi tor 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_DataFieldEdi tor
Inherits UITypeEditor
......
End Class
Public Class SS
Inherits System.Windows. Forms.UserContr ol
<Category("SS_D ataPropeties"), Editor(GetType( SS_DataFieldEdi tor),
GetType(UITypeE ditor)), DefaultValue("" )>_
Public Property SourceTable() As String
....
End Property
End Class
Ahmed
"Jack hu" <Jackhu@microso ft> wrote in message
news:QJ******** ******@TK2MSFTN GXA01.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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, but I feel compelled to
mention it because it can be hard for someone to imagine my challenge when I
talk in hypotheticals.
Anyway, these controls each have an Ink property. For non-Tablet
developers, Ink is a class defined in the Tablet PC...
|
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 = value; Invalidate(); }
|
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 following:
(43): No overload for method 'EditorAttribute' takes '1' arguments
(43): No overload for method 'GetType' takes '1' arguments
// << SYNTAX ERROR
|
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
|
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 editor to fill up the dropdown list, so
far I have the following code which displays the property as a dropdown but
I do not know how to get values it to it, I have only 3 values.
Public Class EntryModeEditor
Inherits...
| |
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 editor to fill up the dropdown list, so
far I have the following code which displays the property as a dropdown but
I do not know how to get values it to it, I have only 3 values.
Public Class EntryModeEditor
Inherits...
|
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 time. If I type the code
in the aspx manually it does get parsed correctly though.
This is an example of the aspx code that gets parsed correctly. For some
reason, if I changed update the Tab property of the control through the GUI
at design...
|
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 textbox control which has a ‘TextMode’
property and when clicked on, displays as a dropdown list with 3 values, I
want to have a similar type property with a dropdown style.
So far, I have a property defined which displays the dropdown arrow...
|
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 seen erratic
results. I am aware of one known defect where user classes do not show up in
the list of types on the Property/Settings page in the visual designer and I
am wondering if I am encountering some other peculiar issue, or if there are...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |