Click here to Skip to main content
15,920,513 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Drag and drop controls into a usercontrols? Pin
Roy Heil14-Dec-05 1:52
professionalRoy Heil14-Dec-05 1:52 
Questiondifferences please Pin
faviochilo13-Dec-05 10:02
faviochilo13-Dec-05 10:02 
Questionvb.net user control in vb6.0 Pin
Animesh Misra13-Dec-05 0:39
Animesh Misra13-Dec-05 0:39 
QuestionWhich of the following is faster Pin
BabyEmperor12-Dec-05 21:09
BabyEmperor12-Dec-05 21:09 
AnswerRe: Which of the following is faster Pin
Briga12-Dec-05 22:17
Briga12-Dec-05 22:17 
AnswerRe: Which of the following is faster Pin
Brent Lamborn13-Dec-05 4:44
Brent Lamborn13-Dec-05 4:44 
AnswerRe: Which of the following is faster Pin
Steve Pullan13-Dec-05 12:23
Steve Pullan13-Dec-05 12:23 
GeneralRe: Which of the following is faster Pin
BabyEmperor15-Dec-05 1:13
BabyEmperor15-Dec-05 1:13 
Thanks Briga, dotnethead, and Steve for your replies.

As suggested by briga, i ran a test program with loop of 9999999. When i run the test about many times, each time the result was different. Some times Case #1,#2,#3 all took same time, at times #1 was the fastest, at times #2 , another time #3 and at other times there was a tie b/w the cases. so could not reach a conclusion.

As Steve pointed out [it was the reason i posted the question] #1 involves an implicit type conversion [integer is converted to boolean], #2 a comparison and #3 an explicit type conversion, it is difficult to say which would run faster.

After much thought i too reached the conclusion that #2 is better [it atleast explains the code better]

Thanks every one


Questionhelp.. Pin
ferdausie12-Dec-05 20:56
ferdausie12-Dec-05 20:56 
AnswerRe: help.. Pin
Christian Graus13-Dec-05 13:17
protectorChristian Graus13-Dec-05 13:17 
GeneralRe: help.. Pin
ferdausie13-Dec-05 19:44
ferdausie13-Dec-05 19:44 
GeneralRe: help.. Pin
Christian Graus13-Dec-05 23:32
protectorChristian Graus13-Dec-05 23:32 
GeneralRe: help.. Pin
ferdausie13-Dec-05 23:38
ferdausie13-Dec-05 23:38 
QuestionNhibernate in VB.net Pin
Gaurav_Rahi_SE12-Dec-05 20:31
Gaurav_Rahi_SE12-Dec-05 20:31 
QuestionChecking Version of MSDOS EXES Pin
padmakumarg12-Dec-05 20:20
padmakumarg12-Dec-05 20:20 
AnswerRe: Checking Version of MSDOS EXES Pin
Dave Kreskowiak13-Dec-05 4:14
mveDave Kreskowiak13-Dec-05 4:14 
QuestionError message on Windows NT Server Pin
vincentkhoosiongleng12-Dec-05 19:57
vincentkhoosiongleng12-Dec-05 19:57 
AnswerRe: Error message on Windows NT Server Pin
oykica13-Dec-05 3:07
oykica13-Dec-05 3:07 
GeneralRe: Error message on Windows NT Server Pin
vincentkhoosiongleng14-Dec-05 3:06
vincentkhoosiongleng14-Dec-05 3:06 
QuestionExport from Lotus Notes Pin
jcrussell12-Dec-05 19:54
jcrussell12-Dec-05 19:54 
QuestionRSACryptoServiceProvider.Encrypt. Pin
Sunniawaty12-Dec-05 18:48
Sunniawaty12-Dec-05 18:48 
QuestionIs it possible to create a reversible hash? Pin
Zenly12-Dec-05 15:53
Zenly12-Dec-05 15:53 
AnswerRe: Is it possible to create a reversible hash? Pin
Christian Graus12-Dec-05 16:03
protectorChristian Graus12-Dec-05 16:03 
GeneralRe: Is it possible to create a reversible hash? Pin
Zenly13-Dec-05 16:01
Zenly13-Dec-05 16:01 
Questionenter password only can in algha&num. Pin
eileenpp12-Dec-05 15:37
eileenpp12-Dec-05 15:37 

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.