Click here to Skip to main content
15,913,587 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Collection sort question Pin
Ben Fair4-Dec-08 4:29
Ben Fair4-Dec-08 4:29 
GeneralRe: Collection sort question Pin
EliottA4-Dec-08 5:11
EliottA4-Dec-08 5:11 
AnswerRe: Collection sort question Pin
Jay Royall4-Dec-08 4:51
Jay Royall4-Dec-08 4:51 
AnswerRe: Collection sort question Pin
Jon_Boy5-Dec-08 3:37
Jon_Boy5-Dec-08 3:37 
GeneralRe: Collection sort question Pin
EliottA5-Dec-08 4:32
EliottA5-Dec-08 4:32 
QuestionTakin pictures with webcam in full size... Pin
Matjaz-xyz4-Dec-08 3:20
Matjaz-xyz4-Dec-08 3:20 
AnswerRe: Takin pictures with webcam in full size... Pin
Marcus J. Smith4-Dec-08 3:24
professionalMarcus J. Smith4-Dec-08 3:24 
QuestionProper use of the keyword "Using" Pin
Marcus J. Smith4-Dec-08 3:14
professionalMarcus J. Smith4-Dec-08 3:14 
Someone at work told me that you can change code that would normally look like the following:

Using certainObject as new Object
     Using anotherObject as New Object
          Using somethingElse as new Object

               'Do stuff

          End Using
     End Using
End Using


into this:

Using certainObject as new Object, _
      anotherObject as New Object, _
      somethingElse as new Object

           'Do stuff

End Using


I know that VB.NET does something strange when you dimension multiple variables on the same line - ex. Dim str1, str2, str3 as String, I guess Dim str1 as String, str2 as String, str3 as String would be proper. Because of that I am unsure if it is truly proper to format the code with the second code example.

Is one more correct than the other or is this just simply a preference thing?


CleaKO

"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)

AnswerRe: Proper use of the keyword "Using" Pin
PIEBALDconsult4-Dec-08 4:05
mvePIEBALDconsult4-Dec-08 4:05 
AnswerRe: Proper use of the keyword "Using" Pin
Paul Conrad4-Dec-08 5:01
professionalPaul Conrad4-Dec-08 5:01 
AnswerRe: Proper use of the keyword "Using" Pin
Dave Kreskowiak4-Dec-08 5:05
mveDave Kreskowiak4-Dec-08 5:05 
NewsRe: Proper use of the keyword "Using" Pin
Luc Pattyn4-Dec-08 7:37
sitebuilderLuc Pattyn4-Dec-08 7:37 
GeneralRe: Proper use of the keyword "Using" Pin
Jon_Boy5-Dec-08 3:40
Jon_Boy5-Dec-08 3:40 
GeneralRe: Proper use of the keyword "Using" Pin
Luc Pattyn5-Dec-08 3:51
sitebuilderLuc Pattyn5-Dec-08 3:51 
QuestionDisable Close Button in Windows Form Pin
SelvaShankar4-Dec-08 1:48
SelvaShankar4-Dec-08 1:48 
AnswerRe: Disable Close Button in Windows Form Pin
Marcus J. Smith4-Dec-08 3:23
professionalMarcus J. Smith4-Dec-08 3:23 
GeneralRe: Disable Close Button in Windows Form Pin
SelvaShankar4-Dec-08 19:22
SelvaShankar4-Dec-08 19:22 
AnswerRe: Disable Close Button in Windows Form Pin
dan!sh 4-Dec-08 4:16
professional dan!sh 4-Dec-08 4:16 
AnswerRe: Disable Close Button in Windows Form Pin
SelvaShankar4-Dec-08 19:26
SelvaShankar4-Dec-08 19:26 
GeneralRe: Disable Close Button in Windows Form[modified] Pin
dan!sh 5-Dec-08 0:01
professional dan!sh 5-Dec-08 0:01 
AnswerRe: Disable Close Button in Windows Form Pin
ChandraRam4-Dec-08 19:40
ChandraRam4-Dec-08 19:40 
AnswerRe: Disable Close Button in Windows Form Pin
JR2124-Dec-08 20:42
JR2124-Dec-08 20:42 
Questionsearching a file from a folder Pin
dennymw4-Dec-08 1:00
dennymw4-Dec-08 1:00 
AnswerRe: searching a file from a folder Pin
JoeSharp4-Dec-08 1:15
JoeSharp4-Dec-08 1:15 
AnswerRe: searching a file from a folder Pin
Ashfield4-Dec-08 1:25
Ashfield4-Dec-08 1:25 

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.