473,588 Members | 2,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need control building advice please

Hi

I'm a bit new to the designing of custom web page controls and using
them in the properties designer window - need a little advice on a
concept here.

I have two properties in my control - one that is a server name, which
when entered will populate a drop-down list for the second property.

I know that to get a drop-down list I will either need my second
property to be an enum (in which case it will do it auto, but I can't
cast my enum at design-time, it's derived from results querying
property one), or use a custome TypeConverter.

I have the documentation on this and have read Shawn Burke's "make your
components really rad.." article, but my problem is I can't see how my
custom typeconverter class will pick up the value from property one as
I can't pass that value through in my property type definition:

<Bindable(True) , _
TypeConverter(G etType(mytypeCo nverter)) << can't pass a param there?

I can code the lookup no problem, but it's how to get property one
value into the myTypeConverter class I'm having problems with.

I guess it's a simple thing, that I'm just missing the concept of.
After all, it's done in the designer when you pick a database and the
list of tables is populated for example. Just can't see what I'm
missing here...

Thanks in advance for any advice - any code snippets/pointers showing
how one property affects the values in another would be useful thanks
:)

AW

Nov 19 '05 #1
2 1639
Hi

Is there nobody here who can give advice on this ? If there is a more
appropriate group for this posting, please advise. I already tried
microsoft.publi c.dotnet.framew ork.aspnet.buil dingcontrols but got no
response there either.

Anyone?


I'm a bit new to the designing of custom web page controls and using
them in the properties designer window - need a little advice on a
concept here.

I have two properties in my control - one that is a server name, which
when entered will populate a drop-down list for the second property.

I know that to get a drop-down list I will either need my second
property to be an enum (in which case it will do it auto, but I can't
cast my enum at design-time, it's derived from results querying
property one), or use a custome TypeConverter.

I have the documentation on this and have read Shawn Burke's "make your
components really rad.." article, but my problem is I can't see how my
custom typeconverter class will pick up the value from property one as
I can't pass that value through in my property type definition:

<Bindable(True) , _
TypeConverter(G etType(mytypeCo nverter)) << can't pass a param there?

I can code the lookup no problem, but it's how to get property one
value into the myTypeConverter class I'm having problems with.

I guess it's a simple thing, that I'm just missing the concept of.
After all, it's done in the designer when you pick a database and the
list of tables is populated for example. Just can't see what I'm
missing here...

Thanks in advance for any advice - any code snippets/pointers showing
how one property affects the values in another would be useful thanks
:)

AW

Nov 19 '05 #2
Hi Andy,

There are several reasons why questions do not get answered. In your case, I
can tell you my own experience from reading it. I can't figure out what
you're asking. I'm not sure this is the reason that nobody else has
answered, but I would suspect that to be the case.

Perhaps you could explain your situation and your question in more detail,
or using different language and terminology. For example, I followed your
first 2 paragraphs just fine, but the third omits information that would
make it clear to me. The fourth paragraph builds on the third, and
introduces a reference to an article that I have never read, nor even heard
of the author. From there it continues along similar lines.

So, as you can see from this reply, there are people that are reading your
question. Care to take another stab at asking it?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

<an*****@gmail. com> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.com...
Hi

Is there nobody here who can give advice on this ? If there is a more
appropriate group for this posting, please advise. I already tried
microsoft.publi c.dotnet.framew ork.aspnet.buil dingcontrols but got no
response there either.

Anyone?


I'm a bit new to the designing of custom web page controls and using
them in the properties designer window - need a little advice on a
concept here.

I have two properties in my control - one that is a server name, which
when entered will populate a drop-down list for the second property.

I know that to get a drop-down list I will either need my second
property to be an enum (in which case it will do it auto, but I can't
cast my enum at design-time, it's derived from results querying
property one), or use a custome TypeConverter.

I have the documentation on this and have read Shawn Burke's "make your
components really rad.." article, but my problem is I can't see how my
custom typeconverter class will pick up the value from property one as
I can't pass that value through in my property type definition:

<Bindable(True) , _
TypeConverter(G etType(mytypeCo nverter)) << can't pass a param there?

I can code the lookup no problem, but it's how to get property one
value into the myTypeConverter class I'm having problems with.

I guess it's a simple thing, that I'm just missing the concept of.
After all, it's done in the designer when you pick a database and the
list of tables is populated for example. Just can't see what I'm
missing here...

Thanks in advance for any advice - any code snippets/pointers showing
how one property affects the values in another would be useful thanks
:)

AW

Nov 19 '05 #3

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

Similar topics

10
2634
by: Beach Potato | last post by:
Dear Y'all: I'm about to start porting a big old project written in anscient version of Delphi to something more stable, robust, supportable and maybe even portable. Since I haven't seriously touched C for large implementations, I'm seeking advice on what to use for development. My ultimate goal is to spend as less time on it as possible. I'll be writing it in Windows 32-bit environment, probably Win2000 or Win98. Planning to use a...
0
521
by: Gary Stollman | last post by:
My Father is a Clone//ETs plotting to overthrow the human race! On August 19, 1987 a gun-carrying Gary Stollman entered the studio of Los Angeles's KNBC television, crashing consumer reporter David Horowitz's live newscast. Stollman handed Horowitz a written statement and ordered him to read it while holding a gun on him. Unbeknownst to Stollman, KNBC immediately switched to a commercial, not permitting the statement to be transmitted. ...
4
2298
by: Marquisha | last post by:
If this is off-topic, please forgive me. But I thought this might be the perfect spot to get some advice about how to proceed with a project. Working on a Web site design for a nonprofit organization, and I'm donating the work. Haven't done Web work in a while, and things have changed since I last did anything of this magnitude. I'm looking for a solution that will enable me to edit pages easily and in totally WYSIWYG fashion, while...
3
2341
by: B Maxey | last post by:
I am storing images in a database and need a way to browse those files. I can load the files into an image list or whatever the control needs, but I need a control. It doesn't seem that any of the standard window controls would work, but I am thinking I can just draw all the images on an panel (or a browser form for that matter). Does anyone have any advice?
14
1763
by: Nick Z. | last post by:
I have a file that I want to read a UTF-16 unicode string from. What is the easiest way to accomplish that? Thanks in advance, Nick Z.
1
1519
by: dasein fiasco | last post by:
I'm sure this is a design question that is commonly encountered, but I can't find any resources which explain how to solve it. I would deeply appreciate any advice. Basically, when building a composite server control, I'm trying to avoid having to build the control twice. Here's why this happens: The routine for building the control can be called from two places: (1) CreateChildControls, or (2) DataBind. If DataBind is called, it sets...
15
4586
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
5
1995
by: Guillaume BRAUX | last post by:
Hello, What I want to do is to add a userControl to a form class witch is a different class from the one the button is generated. For example, I want to instanciate a label in "class1" and add it ("show it") on a WinForm situated in "class2" (without having to add code to class2 !) The problem is that I need to instanciate "class2" from "class1" to be able to do a class2.controls.add(myLabel) in class1..
7
2040
by: John Paul | last post by:
I'm thinking of building an e-commerce site in php. Anyone got any advice in building one? What is the best way to implement a payment system? Are any legal issues involved? Thanks,
0
7929
marktang
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...
1
7987
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,...
0
8223
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 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...
0
6634
agi2029
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...
0
5398
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();...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2372
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1459
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1196
bsmnconsultancy
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...

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.