Double crlf's  
Author Message
RobertMC





PostPosted: Visual Basic General, Double crlf's Top

I have this little segment of code that I plan on using in a listbox. I want to be able to select the drive in the listbox pulldown, load that to a variable and use it. I've included the basic code below.

Dim getInfo As System.IO.DriveInfo()

getInfo = System.IO.DriveInfo.GetDrives

For Each info As System.IO.DriveInfo In getInfo

ListBox23.Items.Add(info.Name)

Next

Also, does anyone know how to get rid of the double spacing in here

Thanks



Visual Basic6  
 
 
spotty





PostPosted: Visual Basic General, Double crlf's Top

I dont see any double spacing.

What version of product are you using and where are you seeing the double spacing

Please elaborate.


 
 
RobertMC





PostPosted: Visual Basic General, Double crlf's Top

Microsoft Visual Studio 2005

Version 8.0,50727.42

.net framework 2.0.50727

As for the double spacing, it must be something on my end and I can live with it.

Thanks


 
 
DMan1





PostPosted: Visual Basic General, Double crlf's Top

Dim TheDriveLetter As String = ListBox23.SelectedItem



 
 
RobertMC





PostPosted: Visual Basic General, Double crlf's Top

Dman1 ... Thanks for the prompt response. I was making it harder on myself than need be.

Question answered!

RobertMC


 
 
weirdbeardmt





PostPosted: Visual Basic General, Double crlf's Top

When you say double spacing, are you referring to the forum software here I see the same thing...

 
 
RobertMC





PostPosted: Visual Basic General, Double crlf's Top

Yep, that is exactly what I'm seeing. For instance, if I hit the enter key now...

this line is not directly below the starting line, as if on an old electric typewriter the double crlf is engaged. I shouldn't have said spacing, but you picked up on it as a double crlf.

Take care, happy coding.