Click here to Skip to main content
16,005,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to Remove ~ from my command line argument? Pin
Ray Cassick21-Dec-05 8:20
Ray Cassick21-Dec-05 8:20 
QuestionUnique ID Generator Pin
mcgann20-Dec-05 23:51
mcgann20-Dec-05 23:51 
AnswerRe: Unique ID Generator Pin
George B Gilbert21-Dec-05 7:04
George B Gilbert21-Dec-05 7:04 
AnswerRe: Unique ID Generator Pin
Roy Heil21-Dec-05 7:16
professionalRoy Heil21-Dec-05 7:16 
AnswerRe: Unique ID Generator Pin
HemaRawat21-Dec-05 17:57
HemaRawat21-Dec-05 17:57 
QuestionFormat floppy disk Pin
johnjsm20-Dec-05 22:47
johnjsm20-Dec-05 22:47 
AnswerRe: Format floppy disk Pin
George B Gilbert21-Dec-05 5:49
George B Gilbert21-Dec-05 5:49 
AnswerRe: Format floppy disk Pin
Dave Kreskowiak21-Dec-05 7:50
mveDave Kreskowiak21-Dec-05 7:50 
Your probably looking for the Shell function SHFormatDrive[^]. This will open up the standard Format dialog you get when you click on Format in a drives context menu in Explorer.
Private Declare Auto Function SHFormatDrive Lib "shell32.dll" ( _
    ByVal hWnd As IntPtr, ByVal drive As Integer, _
    ByVal fmtId As Integer, ByVal options As Integer ) As Integer
 
...
 
Dim retVal As Integer
retVal = SHFormatDrive( Me.Handle, 0, 0, 1 )


hWnd is the handle to the parent window of the dialog, usually the current form's handle.
drive is the 0-based drive number. 0 for A:, 1 for B:, 2 for C:, ...
fmtId is the format code. 0 for 1.44/1.2MB floppies, 3 for 360KB, 5 for 720KB.
options is the format type. 0 for a Quick Format, 1 for Full Format, and 2 to copy the system files to the floppy.

The options are filled into the dialog. You can't just format the disk without the user interface using this function.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionSource Code For List All Hardware & Software In Your Computer Pin
Wachy Man20-Dec-05 22:37
Wachy Man20-Dec-05 22:37 
QuestionDatabase send one table from one database to other Pin
Sasmi20-Dec-05 20:22
Sasmi20-Dec-05 20:22 
AnswerRe: Database send one table from one database to other Pin
enjoycrack20-Dec-05 21:10
enjoycrack20-Dec-05 21:10 
AnswerRe: Database send one table from one database to other Pin
jpazgier21-Dec-05 15:20
jpazgier21-Dec-05 15:20 
AnswerRe: Database send one table from one database to other Pin
Gulfraz Khan28-Dec-05 6:48
Gulfraz Khan28-Dec-05 6:48 
QuestionDetermine the Type of Printer Pin
HemaRawat20-Dec-05 18:02
HemaRawat20-Dec-05 18:02 
AnswerRe: Determine the Type of Printer Pin
George B Gilbert21-Dec-05 7:09
George B Gilbert21-Dec-05 7:09 
AnswerRe: Determine the Type of Printer Pin
progload21-Dec-05 8:21
progload21-Dec-05 8:21 
GeneralRe: Determine the Type of Printer Pin
HemaRawat21-Dec-05 17:48
HemaRawat21-Dec-05 17:48 
QuestionDatabase Info Pin
nitin_ion20-Dec-05 17:37
nitin_ion20-Dec-05 17:37 
AnswerRe: Database Info Pin
Roy Heil21-Dec-05 4:14
professionalRoy Heil21-Dec-05 4:14 
Questioneasy XML question Pin
jcrussell20-Dec-05 16:48
jcrussell20-Dec-05 16:48 
AnswerRe: easy XML question Pin
Steve Pullan20-Dec-05 17:45
Steve Pullan20-Dec-05 17:45 
GeneralRe: easy XML question Pin
jcrussell20-Dec-05 18:04
jcrussell20-Dec-05 18:04 
GeneralRe: easy XML question Pin
Steve Pullan21-Dec-05 15:58
Steve Pullan21-Dec-05 15:58 
Question2k3 VB.net import Pin
miltond20-Dec-05 15:28
miltond20-Dec-05 15:28 
AnswerRe: 2k3 VB.net import Pin
Steve Pullan20-Dec-05 15:47
Steve Pullan20-Dec-05 15:47 

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.