Click here to Skip to main content
15,921,169 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow can I integrated a combobox ? Pin
jlizardo5-Dec-03 3:29
jlizardo5-Dec-03 3:29 
QuestionHow to Stop a Big Loop Pin
rrocha25-Dec-03 0:06
rrocha25-Dec-03 0:06 
AnswerRe: How to Stop a Big Loop Pin
Ian Darling5-Dec-03 0:19
Ian Darling5-Dec-03 0:19 
GeneralMy Computer Shell Extension Pin
MusclePup4-Dec-03 22:58
MusclePup4-Dec-03 22:58 
GeneralVisual Studio Freezing. Pin
cnurse4-Dec-03 21:40
cnurse4-Dec-03 21:40 
GeneralHelp me to draw Icon in CheckedListBox Pin
VitaminY4-Dec-03 16:38
sussVitaminY4-Dec-03 16:38 
GeneralCasting variables in VB.NET Pin
Jim Taylor4-Dec-03 12:16
Jim Taylor4-Dec-03 12:16 
GeneralRe: Casting variables in VB.NET Pin
Nick Seng4-Dec-03 14:48
Nick Seng4-Dec-03 14:48 
While DirectCast and CType are both used for casting, DirecCast can only case object to object they have a direct relationship (ie. inheritance ) with. For example, if B inherits A, and C inherits A, you can use DirectCast to cast a C object to A.
OTOH, CType can be used to cast from any object to any object. The advantage of DirectCast is that it's much faster than CType, so use it whenever appropriate.

Looking through the IL for CType and CInt, they're actually doing the same thing, so I assume there's no difference in using either.



"if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.

Support Bone
GeneralRe: Casting variables in VB.NET Pin
Dave Kreskowiak4-Dec-03 18:58
mveDave Kreskowiak4-Dec-03 18:58 
GeneralRe: Casting variables in VB.NET Pin
Jim Taylor4-Dec-03 22:48
Jim Taylor4-Dec-03 22:48 
Generalsending information from one application to another Pin
Leonard Munteanu4-Dec-03 10:39
Leonard Munteanu4-Dec-03 10:39 
GeneralRe: sending information from one application to another Pin
Dave Kreskowiak4-Dec-03 18:48
mveDave Kreskowiak4-Dec-03 18:48 
GeneralRe: sending information from one application to another Pin
Duncan Edwards Jones5-Dec-03 4:45
professionalDuncan Edwards Jones5-Dec-03 4:45 
GeneralRe: sending information from one application to another Pin
Guillermo Rivero5-Dec-03 11:06
Guillermo Rivero5-Dec-03 11:06 
GeneralRe: sending information from one application to another Pin
Dave Kreskowiak6-Dec-03 5:08
mveDave Kreskowiak6-Dec-03 5:08 
GeneralRe: sending information from one application to another Pin
dabuskol8-Dec-03 23:24
dabuskol8-Dec-03 23:24 
GeneralHide Folder and files Pin
R Sharma4-Dec-03 9:08
R Sharma4-Dec-03 9:08 
GeneralRe: Hide Folder and files Pin
Dave Kreskowiak4-Dec-03 18:51
mveDave Kreskowiak4-Dec-03 18:51 
Generaldate conversion Pin
gls2ro4-Dec-03 7:24
gls2ro4-Dec-03 7:24 
GeneralRe: date conversion Pin
Alex Korchemniy4-Dec-03 8:02
Alex Korchemniy4-Dec-03 8:02 
Generaldelimiters using VB.net Pin
ccandler4-Dec-03 4:29
ccandler4-Dec-03 4:29 
GeneralRe: delimiters using VB.net Pin
Colin Angus Mackay4-Dec-03 4:49
Colin Angus Mackay4-Dec-03 4:49 
GeneralRe: delimiters using VB.net Pin
Ian Darling4-Dec-03 4:57
Ian Darling4-Dec-03 4:57 
GeneralRe: delimiters using VB.net Pin
ccandler4-Dec-03 8:19
ccandler4-Dec-03 8:19 
GeneralRe: delimiters using VB.net Pin
Ian Darling4-Dec-03 12:35
Ian Darling4-Dec-03 12:35 

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.