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

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(GetType(mytypeConverter)) << 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 1626
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.public.dotnet.framework.aspnet.buildingc ontrols 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(GetType(mytypeConverter)) << 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*********************@g49g2000cwa.googlegro ups.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.public.dotnet.framework.aspnet.buildingc ontrols 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(GetType(mytypeConverter)) << 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
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...
0
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...
4
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...
3
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...
14
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
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...
15
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...
5
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...
7
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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,...
0
jinu1996
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...

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.