Solved

DirListBox  Change Initial Default Drive in Box to a:

Posted on 2003-11-04
3
212 Views
Last Modified: 2008-02-01
I notice when using dirlistbox , the default is c:
ie. the dirlistbox initially shows c:

Is there a way of making the default =   a: ie (initial display)

if i use Drive1.drive=a:   the program tries to open drive a:, but there is no disk there yet.

The dir list box contains  a:   c:  d:  e:    but lights up the c: at load

Also, is there a way of determining if the drive is removeable ie floppy. as i need to format if this is so.??

Appreciate any help offered.

0
Comment
Question by:kennedymr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Expert Comment

by:dds110
ID: 9681983
The code you are using is correct, but, unless you have a disk in, it will fail (no way around this that I know of).

As far as determining the drive type?  Take a look at this code here:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=151

HTH
0
 
LVL 28

Accepted Solution

by:
AzraSound earned 125 total points
ID: 9682314
The DirListBox is simple enough that you can emulate it with your own using a simple combobox if you really want this functionality of setting the floppy as the default.
0
 

Author Comment

by:kennedymr
ID: 9682508
Azarasound, Thanks for your tip. This seems to be the answer to the problem.


Thanks also to dds110 for your help, much appreciated.

Allways Appreciate the help offered

Regards  kennedymr
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question