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 8 1355
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" <vi********@yahoo.com> schrieb im Newsbeitrag
news:O2**************@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
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" <vi********@yahoo.com> schrieb im Newsbeitrag
news:O2**************@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
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" <fo***********@loeffelmann.de> wrote in message
news:eR**************@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" <vi********@yahoo.com> schrieb im Newsbeitrag news:O2**************@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
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" <fo***********@loeffelmann.de> wrote in message
news:eR**************@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" <vi********@yahoo.com> schrieb im Newsbeitrag news:O2**************@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
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" <vi********@yahoo.com> schrieb im Newsbeitrag
news:uJ**************@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" <fo***********@loeffelmann.de> wrote in message news:eR**************@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" <vi********@yahoo.com> schrieb im Newsbeitrag news:O2**************@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
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" <vi********@yahoo.com> schrieb im Newsbeitrag
news:uJ**************@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" <fo***********@loeffelmann.de> wrote in message news:eR**************@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" <vi********@yahoo.com> schrieb im Newsbeitrag news:O2**************@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
Hi VJ, 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?
No, if you want us to help you, show than some code you are using.
Cor
Hi VJ, 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?
No, if you want us to help you, show than some code you are using.
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: daniel kaplan |
last post by:
Hi All,
Been learning Javascript (via google) to create forms with pre-set values.
As seen below. My problem I have found is this: I can't seem to figure out
(or find so far via google) how to...
|
by: Wiktor Zychla |
last post by:
today we've found a critical issue regarding the ListView from
Windows.Forms. it was confirmed on several machines with Win2K and XP.
here's the problem: create a ListView with about 50000 rows....
|
by: Joshua Russell |
last post by:
Hi,
Both the methods below open up a windows form called MasterForm. However, one works better than the other. Method 1 opens the form correctly but I don't have any reference to the instance of...
|
by: Ayende Rahien |
last post by:
Excetremely annoying problem, I've an application with a long startup time.
So I created another form with my logo in it to as a splash screen.
The splash screen is run from another thread and is...
|
by: Alex |
last post by:
Does anybody know why VB.NET would omit the Forms collection available in
previous versions versions of VB? I imagine that there must be a reason why
they decided to do away with it, but I can't...
|
by: Andre Ranieri |
last post by:
Hello everyone,
I'm wondering if I could get some advice on the best way to build the user
interface depicted in this diagram:
http://www.senske.com/images/winforms_layout.jpg
The gray areas...
|
by: Jake Montgomery |
last post by:
I am using .NET 2.0 forms and running on Windows XP SP2. When I have a
tooltip on a combo box, and the combo box is expanded (“dropped down”)
using the arrow, it will no longer display it’s...
|
by: Patel |
last post by:
Hi All,
I am doing one INTERESTING work with Context Menu Strip. I am
trying to insert a custom control / .Net control in Context menu as a
context menu strip. I tried inserting MonthCalender in...
|
by: edepperson |
last post by:
I've been looking for an answer to this problem and have seen the same
question posted on other forums... but still no answer. My background
is Delphi2 - 7 and I used to do this all the time with...
|
by: sklett |
last post by:
I know that Panel (and most of it's derivitives) don't raise keyboard
events. I *really* need to catch keyboard events though so I've been
googling the topic and have found quite a few...
|
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...
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: 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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |