Serious discussion about removing dynamically controls

  • Thread starter Thread starter Cor
  • Start date Start date
Cor said:
I thought that too, but because of the discussion last night I did
not want to contribute that, lets do if the while end loop is
the same as the do while loop.

???
 
Cor said:
I asume this is not your contribution after all you did
write last night.
???

I expect that Tom, Jeremy and Jay B do that for us when
it is for us night (Or is Tom too Europe?).

What? I do not really understand what you mean.
I think, this is more important than 6 man(3 MVP) who give
answers how to add a preceding zero to a string.
(Sorry but I had to laugh when I saw that)

I had to laugh too.
After doing this the people active in this newsgroup can
give an uniform answer and we have again less so long
useless threads anymore.

I don't understand what you mean.
The only one who I can imaging who gives not comments
is Armin, his idea it obvious.
I and I think others too are curious to the ideas of you and
the other MVP's.

???
 
Cor,
I expect that Tom, Jeremy and Jay B do that for us when it is for us night
Huh? someone talking about me??
After doing this the people active in this newsgroup can give an uniform
answer and ...
My concern is there is no 'uniform' answer! As there are multiple ways of
doing the same thing, equally correct. If only one of us, gives a single
'uniform' answer, then we did not give all the options. Depending on the
situation, one of the other options may be the better solution.
... we have again less so long useless threads anymore.
I try to avoid 'long useless threads'. If I feel I am communicating (two
way) an idea with someone & that idea may be beneficial for others I will
continue the thread (Richard & user controls come to mind). However if it
starts appearing that one of us is not getting what the other is saying, I
will 'drop the issue'. Or the discussion is largely "Oh Yea! mines bigger"
I think, this is more important than 6 man(3 MVP) who give answers how to
add a preceding zero to a string.
However they where 6 distinct equally correct answers! :-)

Even if we all gave the same 6 answers, as Herfried has stated before, its a
matter of timing. I don't know if the other 5 are currently on, answering a
question, they one of them is happening to hit send at the same micron that
I am. Its impractically for us to communicate with each other that one of us
has it, there are just too many questions. Most of the MVPs I know have full
time jobs, in addition to answering questions. Plus they author books.

Just a thought
Jay
 
Jay,
That is an answer,
This is not a matter of what is good or bad, no meaning about it, is too a
meaning.
But I think that it is not good for a newsgroup when there are messages who
says: "I think that is basicly not good".
And I have seen a lot about this subject.
Tell why or don't write those messages.
It is the same as when I say I don't like beans.

Because you are an important contributer to this group, and did give your
idea's in a discussion I mean a week ago, I thought it was good if you did
contribute to this discussion too.
Nick did some work to make a test, I thought because some people say we must
measure that.

But if you have no meaning.
That is a meaning too.

Cor.
 
Herfried,
Just an opinion.
If you want to know my opinion that is the same as mid, instr, substring,
indexoff + & (not for uper an lowercase and ==) etc.
But if you can tell why you find one methodiek better than the other, that
would be too a contribution.
And if you want to illustrate that with a hyperlink too no problem.
But I have seen yesterday many ACK in your post when this was the subject.
And that has nothing personal for me.
This subject or the late night ACK's changes nothing in my thinking about
you.
And if you don't want to do that, too no problem, but write that, I do want
to try to make a evaluation on about sunday.
Cor
 
Hi Cor

It's just that I often see Herfried say "ACK" when he agrees with something.
The guy's obviously got a brain the size of a planet, so I can only aspire
to the breadth of his knowledge. Even if I did know all the stuff he knows,
I could never recall it all so quickly, and post links to relevant info all
the time.

Charles
 
Hi Herfried

I don't think we are in disagreement. It's just my way of writing I think.

Charles
 
He is young, when I was that age I could that too in a way, now I have to
say, for me it is the same as you Charles.
:-)
 
Hi Cor, Charles,

It also helps to have an installed copy of the Herfried Handy Hypertext Help system - 10 gigabytes of links searchable via a
Brain-to-PC interface (USB 2, I believe). :-)

Regards,
Fergus
 
Hello, group:

I think you are building a planet from a grain of sand.
I'd prefer to give my contribution code working and tested, but I can't wait until tomorrow to write it on the computer in wich I have .NET installed. I hope you understand my intention and forgive the errors:

sub DeleteTextBoxes()
dim ctllist as Collection
dim ctl as control

for each ctl in me.controls
if typeof(ctl) is textbox then
ctllist.add ctl
end if
next

for each ctl in ctllist
me.controls.remove(ctl)
'Other cleaning stuff...
next

ctllist.clear 'Deletes the last reference to textboxes (unnecesary because ctllist stops existing when the sub ends).
end sub

I hope this works (and you like it)

Regards.


"Cor" <[email protected]> escribió en el mensaje | Hi,
| I start a new thread about a discussion from yesterday (or for some of us
| this morning). It was a not so nice discussion about dynamically removing
| controls from a panel or what ever.
| It started by an example from me, that was far from complete and with typing
| errors, but basically it had the meaning to show that removing controls
| reversible was the nicest method.
|
| This was a lets say conclusion (but what is that in a newsgroup) in a
| discussion some weeks ago in this newsgroup. The method was contributed by
| Armin. I found it brilliant and since that time I call this the method
| Armin.
|
| Jack did totally disagree with this method and did after a while contribute
| some code.
|
| Therefore I send both code's to this newsgroup in this new thread. I think
| it is good to talk professionally about it. So it is not the code Cor, Nick,
| Armin or Jack. Just the method "reverse For next loop", against the "While
| end while loop" for removing controls dynamically.
|
| I don't want to start with my + of - points about the methods, maybe I will
| give that, but I hope that it will come automatically in this newsgroup
|
| The code that Jack has given some contribution for me, because I did not
| know "removeAT" exist. But I always do the things that I do plus in the same
| way minus. So I doubt if I will use it, but for the example I did use
| "removeAT" (I think it is nicer). Please don't start a discussion about
| that. The question is the "While end while" against reversal "For next".
|
| "While end While"
| Dim idx As Integer
| idx = 0
| While idx < Me.Panel1.Controls.Count ' while in bounds
| If TypeOf Me.Panel1.Controls.Item(idx) Is Label Then
| Me.Panel1.Controls.RemoveAt(idx)
| Else
| idx = idx + 1 ' otherwise advance to next control
| End If
| End While
| -----------------
| "For index Next reversal"
| Dim idx As Integer
| For idx = Me.Panel1.Controls.Count - 1 To 0 Step -1
| If TypeOf Me.Panel1.Controls.Item(idx) Is Label Then
| Me.Panel1.Controls.RemoveAt(idx)
| End If
| Next
| I hope this contribute something
| Cor
|
|
|
|
 
Hi Jose,

But it's a hell of a great planet!!

I've seen your method before. It is very unambiguous and there are no worries about whether you are tripping over your own tail.
First you collect. Then you remove. Simple.

But, as I mentioned in my post above, screen space is very important, so, for me, it is too long.

However, welcome to the debate. :-)

Regards,
Fergus
 
Hello,

Cor said:
He is young, when I was that age I could that too in a way, now I have to
say, for me it is the same as you Charles.

;-)

When you were young, there was probably no .NET framework available.
 
Hello,

Fergus Cooney said:
But it's a hell of a great planet!!

I've seen your method before. It is very unambiguous and there
are no worries about whether you are tripping over your own tail.
First you collect. Then you remove. Simple.

But, as I mentioned in my post above, screen space is very important,
so, for me, it is too long.

Encapsulate it...

;-)))
 
Haha. I have a sent folder with 20,000 postings I wrote in the past. A
lot
of questions can be answered by querying this folder. And: I use Google
Groups Search and the MSDN documentation. For some unknown reason, most
people do not have a look at the docs before asking a question.
I was thinking about that Yesterday when I did read the message from
Charles,
I had always said, in this bussiness it't not important to know, just to
know where it is written.
And then I thought how would that be with Herfried, but you did send the
answer.

I did make that folder too last week.
A lot of Herfried, Jay B and now Fergus is in it.
The last one was a letter M.
The other things I can remember.
:-)
Cor
 
When you were young, there was probably no .NET framework available.

Were there computers then? I thought people used the abacus? ;-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
That was not yet invented only fingers and tones

LOL, like "Ug!" ? ;-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Back
Top