Employing a user control to workaround generic designer error

P

Peter Duniho

Peter: It seems that you are taking my questions posted to this forum
in an unusually personal manner. Your sincerest responses to this
post have been very helpful and much appreciated. However, you have
grown increasingly hostile throughout this post to a point where you
are behaving in an unacceptable manner.

You are making an attempt to read between the lines when none is warranted.
When one runs the following statement:
"See above for how English-speaking people parse your paragraph (I
don't know whether English is your native language..."
through any translator, the conclusion is that you are being offensive
and rude.

I have no idea what you are talking about. Why would you run it through a
translator, and why would you take the translator's output at face value,
given how poorly human language translators work?

I can't speak for the output of a translator, but in plain English there
is no reason at all to take offense at the statement you've quoted. If
anything, you should be gratified that it is an attempt to give you the
benefit of the doubt with respect to the difficult you seem to be having
in expressing your question.

If you have to run the statement through a translator to understand it,
then you are simply proving my point.
All: The DisplayItems function is showing 1, then 2 in a MessageBox,
so these Items which were added to the doubly wrapped ComboBox are in
fact in the ComboBox as Items. However when this ComboBox is added to
the form via the following statement:
this.Controls.Add(this.newObjComWrprWrpr1);
the doubly wrapped ComboBox appears on the form, but without the two
Items (1 & 2) that were displayed in the MessageBoxes via the
DisplayItems method. I am wondering why they are not displayed in the
doubly wrapped ComboBox.

Show the code.

Pete
 
P

Paul

My understanding is the controls collection is a list of Control objects and
allControls should have control as their base?

Why would you need generics?

Are you sure you really don't want to be looking at creating custom server
controls this may then let you ovveride the controls collection but thats a
maybe?


Anthony,

Call me stupid but I still do not understand what your are trying to
achieve. From a use case perspective what are your goals.

1. You talk about adding controls from the designer but then give examples
of adding controls to the form.controls list dynamically. This confuses
me!

2. You talk about double wrapping controls. What is this, Why and again
what
are you trying to achieve.

It all seems overly complicated for a web application, Overdoing something
will inevitably lead to a maintenance nightmare going forward, so my
advice
is pick your battles, and maybe review your goals.

Paul: I am trying to find a means of getting a generic ComboBox for
which any kind of object can be added to its Items collection to
appear in the Designer before Items are added, and appear at compile
time with the populated Items after they are added in the Form.cs. I
apologize for not clarifying this as a response to your last post.

Peter: It seems that you are taking my questions posted to this forum
in an unusually personal manner. Your sincerest responses to this
post have been very helpful and much appreciated. However, you have
grown increasingly hostile throughout this post to a point where you
are behaving in an unacceptable manner. When one runs the following
statement:
"See above for how English-speaking people parse your paragraph (I
don't know whether English is your native language..."
through any translator, the conclusion is that you are being offensive
and rude.

All: The DisplayItems function is showing 1, then 2 in a MessageBox,
so these Items which were added to the doubly wrapped ComboBox are in
fact in the ComboBox as Items. However when this ComboBox is added to
the form via the following statement:
this.Controls.Add(this.newObjComWrprWrpr1);
the doubly wrapped ComboBox appears on the form, but without the two
Items (1 & 2) that were displayed in the MessageBoxes via the
DisplayItems method. I am wondering why they are not displayed in the
doubly wrapped ComboBox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top