Click here to Skip to main content
15,887,318 members
Home / Discussions / C#
   

C#

 
Questionhow to make text box empty while click in it Pin
nilesh.saraf27-Apr-09 1:13
nilesh.saraf27-Apr-09 1:13 
AnswerRe: how to make text box empty while click in it Pin
Ashfield27-Apr-09 1:20
Ashfield27-Apr-09 1:20 
AnswerRe: how to make text box empty while click in it Pin
Christian Graus27-Apr-09 1:33
protectorChristian Graus27-Apr-09 1:33 
AnswerRe: how to make text box empty while click in it Pin
Michael Bookatz27-Apr-09 1:48
Michael Bookatz27-Apr-09 1:48 
GeneralRe: how to make text box empty while click in it Pin
EliottA27-Apr-09 1:59
EliottA27-Apr-09 1:59 
GeneralRe: how to make text box empty while click in it Pin
Michael Bookatz27-Apr-09 2:55
Michael Bookatz27-Apr-09 2:55 
AnswerRe: how to make text box empty while click in it Pin
290072014@qq.com27-Apr-09 4:40
290072014@qq.com27-Apr-09 4:40 
QuestionExecution time.....?? Pin
Hum Dum27-Apr-09 0:38
Hum Dum27-Apr-09 0:38 
Hi all,
I had an application on vs2003 in c#.net.

the execution/processing speed is kind of slow.
Suppose there are methods as

dtStart = Now;//date time obj
MethodA();
.
.
MethodG();
dtEnd = Now;//date time obj

I use datetime class to find out the elapsed time as
elapsed = dtEnd - dtStart;

elapsed time is approx 2.81 sec. or always above 2.5 secs.

Is this is slow?
What these methods are doing is operating upon some string,bool,array datatypes.
mostly string manipulation.
One Big string and then extracting other string obj from this !!

but most string,bool, etc data types are local to methods, and i guess they got out of scope(eligible for garbage collection) after method lost focus.

a)How can i speed up execution?
b)Is there a way to find out which method is taking most time or culprit method/object/operation?

regards
AnswerRe: Execution time.....?? Pin
Ashfield27-Apr-09 1:19
Ashfield27-Apr-09 1:19 
GeneralRe: Execution time.....?? Pin
Hum Dum27-Apr-09 2:58
Hum Dum27-Apr-09 2:58 
GeneralRe: Execution time.....?? Pin
Ashfield27-Apr-09 10:20
Ashfield27-Apr-09 10:20 
AnswerRe: Execution time.....?? Pin
Guffa27-Apr-09 2:17
Guffa27-Apr-09 2:17 
GeneralRe: Execution time.....?? Pin
Hum Dum27-Apr-09 2:44
Hum Dum27-Apr-09 2:44 
GeneralRe: Execution time.....?? Pin
S. Senthil Kumar27-Apr-09 4:56
S. Senthil Kumar27-Apr-09 4:56 
AnswerRe: Execution time.....?? Pin
Eddy Vluggen27-Apr-09 2:42
professionalEddy Vluggen27-Apr-09 2:42 
GeneralRe: Execution time.....?? Pin
Hum Dum27-Apr-09 2:51
Hum Dum27-Apr-09 2:51 
AnswerRe: Execution time.....?? Pin
Luc Pattyn27-Apr-09 3:16
sitebuilderLuc Pattyn27-Apr-09 3:16 
GeneralRe: Execution time.....?? [modified] Pin
Hum Dum27-Apr-09 20:48
Hum Dum27-Apr-09 20:48 
GeneralRe: Execution time.....?? Pin
Luc Pattyn28-Apr-09 0:18
sitebuilderLuc Pattyn28-Apr-09 0:18 
GeneralRe: Execution time.....?? Pin
Hum Dum28-Apr-09 1:56
Hum Dum28-Apr-09 1:56 
GeneralRe: Execution time.....?? Pin
Luc Pattyn28-Apr-09 2:31
sitebuilderLuc Pattyn28-Apr-09 2:31 
GeneralRe: Execution time.....?? Pin
Hum Dum28-Apr-09 19:08
Hum Dum28-Apr-09 19:08 
Questionproblem in inserting a record in data base tale Pin
Mangesh Tomar27-Apr-09 0:23
Mangesh Tomar27-Apr-09 0:23 
AnswerRe: problem in inserting a record in data base tale Pin
Mangesh Tomar27-Apr-09 0:26
Mangesh Tomar27-Apr-09 0:26 
Answerrepost Pin
N a v a n e e t h27-Apr-09 0:29
N a v a n e e t h27-Apr-09 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.