Click here to Skip to main content
15,919,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Distribution periods for teachers With Rnd -vb6 Pin
Simon_Whale12-May-11 6:10
Simon_Whale12-May-11 6:10 
AnswerRe: Distribution periods for teachers With Rnd -vb6 Pin
Eddy Vluggen13-May-11 7:23
professionalEddy Vluggen13-May-11 7:23 
AnswerRe: Distribution periods for teachers With Rnd -vb6 Pin
Joshi, Rushikesh12-May-11 22:07
professionalJoshi, Rushikesh12-May-11 22:07 
AnswerRe: Distribution periods for teachers With Rnd -vb6 Pin
Eddy Vluggen13-May-11 7:28
professionalEddy Vluggen13-May-11 7:28 
QuestionHow to check whether CD inesrted into CDDrive or not and how to check the CD free space and used space in VB6 Pin
sandeep sangshetty11-May-11 19:27
sandeep sangshetty11-May-11 19:27 
QuestionError while executing WMI query to check whther CD inserted or not Pin
sandeep sangshetty11-May-11 19:00
sandeep sangshetty11-May-11 19:00 
Questionscript for MS Word 2003 doesn't work for Word 2007 Pin
Member 791550011-May-11 5:05
Member 791550011-May-11 5:05 
AnswerRe: script for MS Word 2003 doesn't work for Word 2007 Pin
Dave Kreskowiak11-May-11 6:19
mveDave Kreskowiak11-May-11 6:19 
QuestionSave a PDF file into a SQL Server Pin
Central_IT10-May-11 2:36
Central_IT10-May-11 2:36 
AnswerRe: Save a PDF file into a SQL Server Pin
Shameel10-May-11 3:03
professionalShameel10-May-11 3:03 
Questionhow to create dynamic reports Pin
Preeti19799-May-11 23:24
Preeti19799-May-11 23:24 
QuestionProper way to use .contains and .find methods with List(of object) Pin
Jon_Boy6-May-11 4:35
Jon_Boy6-May-11 4:35 
AnswerRe: Proper way to use .contains and .find methods with List(of object) Pin
Manfred Rudolf Bihy6-May-11 5:10
professionalManfred Rudolf Bihy6-May-11 5:10 
AnswerRe: Proper way to use .contains and .find methods with List(of object) [modified] Pin
AspDotNetDev6-May-11 5:16
protectorAspDotNetDev6-May-11 5:16 
GeneralRe: Proper way to use .contains and .find methods with List(of object) Pin
Jon_Boy6-May-11 6:01
Jon_Boy6-May-11 6:01 
GeneralRe: Proper way to use .contains and .find methods with List(of object) Pin
Tarun.K.S6-May-11 8:04
Tarun.K.S6-May-11 8:04 
QuestionData binding Pin
Margaret Nansubuga4-May-11 3:46
Margaret Nansubuga4-May-11 3:46 
AnswerRe: Data binding Pin
Simon_Whale4-May-11 4:04
Simon_Whale4-May-11 4:04 
QuestionHow to check CDDrvive is ready or not Pin
sandeep sangshetty3-May-11 19:21
sandeep sangshetty3-May-11 19:21 
Hi All,

I have written a code to check whether the 'Removable' or 'CDRom' is ready or not.

Below is the code .

But while executing the code ,for the 'removable' its working fine means "Removable disk is ready".

When coming to CDRom its showing that "Disk is not ready" even though i have a blank CD in my Cd Drive.

loDrive.IsReady returning false for "blank CD"
loDrive.IsReady returning true for "Already data contained CD",But this is not needed in my case.


Dim loFileSystem As FileSystemObject
Dim loDrive As drive

Set loFileSystem = New FileSystemObject

For Each loDrive In loFileSystem.Drives

If loDrive.drivetype = Removable Or loDrive.drivetype = CDRom Then

If loDrive.IsReady = True Then

If loDrive.FreeSpace = 0 Then

MsgBox "There is no free space"

End If

If loDrive.FreeSpace > 1457664 Then

MsgBox "Space more then 1457664"

WriteToCDDVD ("C:\testdir\test2.txt")

End If

End If
End If
Next

Please help me in this.
AnswerRe: How to check CDDrvive is ready or not Pin
Dave Kreskowiak4-May-11 1:21
mveDave Kreskowiak4-May-11 1:21 
AnswerRe: How to check CDDrvive is ready or not Pin
Simon_Whale4-May-11 1:22
Simon_Whale4-May-11 1:22 
QuestionCannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 16:32
Alan Burkhart3-May-11 16:32 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 17:34
sitebuilderLuc Pattyn3-May-11 17:34 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 17:45
Alan Burkhart3-May-11 17:45 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:13
sitebuilderLuc Pattyn3-May-11 18:13 

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.