Re: forms Control collections
From: Klaus Löffelmann (fornewsgroups_at_loeffelmann.de)
Date: 04/02/04
- Next message: Jason Cooke [MSFT]: "[ANN] April 6, "Deploying Visual Basic .NET Applications" chat"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: Quick question about Hashtable....."
- In reply to: VJ: "Re: forms Control collections"
- Next in thread: Cor: "Re: forms Control collections"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 3 Apr 2004 01:31:17 +0200
VJ,
don't mix up start (also as "release build") and "start without debugging".
The release build in the vs dev environment is still debuggable (even if
only with the disassembler), and therefore slower. If you start without
debugging, how fast (or slow) is it then?
Could you also post some code to see, if we can speed things up there?
What is the time, when you run the program on its own (without the
environment)?
By the way: Are you catching and possible exception in the loop? If so, then
you should really try to run the program in not-debug-mode, since
exceptions, while running the program in the environment, take about 15
seconds to come up - no matter if you catch them, or not.
Klaus
PS: It's already half one, here, so I will only come back to you in the
morning (GMT+1).
"VJ" <vijaybalki@yahoo.com> schrieb im Newsbeitrag
news:uJNI1SQGEHA.2976@TK2MSFTNGP10.phx.gbl...
> I am testing in Release build.. I was just saying 40 Controls for a
> example.. But we actually don't know the run-time controls numbers.. my
test
> case was about 40 controls.. and it took about 20sec to find the control,
> and I am on P-4 512 Dell Laptop.. Is this normal?
>
> VJ
>
>
> "Klaus Löffelmann" <fornewsgroups@loeffelmann.de> wrote in message
> news:eRGr9KQGEHA.1368@TK2MSFTNGP11.phx.gbl...
> > VJ,
> >
> > it shouldn't be slow for "only" 40 controls. Try starting the program
with
> > "start without debugging" (don't know the exact caption of the menue
entry
> > in the "debug" menue, since I use the German version), and see how the
> speed
> > turns out then.
> >
> > Klaus
> >
> > "VJ" <vijaybalki@yahoo.com> schrieb im Newsbeitrag
> > news:O2SwC2PGEHA.2808@TK2MSFTNGP10.phx.gbl...
> > > I have a bunch of controls in my Form. Is there a way to locate a
> control
> > by
> > > using its name? , something like in ASP where they use
> > > Controls.FindControl(string name). I know using ForEach to loop
through
> > and
> > > locate a control is a option, but that seems to be slow when I have
like
> > 40
> > > controls on a form.
> > >
> > > Thanks
> > > VJ
> > >
> > >
> >
> >
>
>
- Next message: Jason Cooke [MSFT]: "[ANN] April 6, "Deploying Visual Basic .NET Applications" chat"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: Quick question about Hashtable....."
- In reply to: VJ: "Re: forms Control collections"
- Next in thread: Cor: "Re: forms Control collections"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|