Click here to Skip to main content
15,891,372 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 18:35
Alan Burkhart3-May-11 18:35 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn3-May-11 18:47
sitebuilderLuc Pattyn3-May-11 18:47 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart3-May-11 19:04
Alan Burkhart3-May-11 19:04 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 1:49
sitebuilderLuc Pattyn4-May-11 1:49 
GeneralRe: Cannot close application in or outside of debugger Pin
Alan Burkhart4-May-11 6:05
Alan Burkhart4-May-11 6:05 
AnswerRe: Cannot close application in or outside of debugger Pin
Luc Pattyn4-May-11 6:09
sitebuilderLuc Pattyn4-May-11 6:09 
GeneralRe: (RESOLVED) Cannot close application in or outside of debugger Pin
Alan Burkhart5-May-11 7:25
Alan Burkhart5-May-11 7:25 
AnswerRe: (RESOLVED) Cannot close application in or outside of debugger Pin
Luc Pattyn5-May-11 7:37
sitebuilderLuc Pattyn5-May-11 7:37 
GeneralRe: (RESOLVED) Cannot close application in or outside of debugger Pin
AspDotNetDev5-May-11 7:54
protectorAspDotNetDev5-May-11 7:54 
GeneralRe: (RESOLVED) Cannot close application in or outside of debugger Pin
Andreas Mertens7-May-11 4:00
professionalAndreas Mertens7-May-11 4:00 
GeneralRe: Cannot close application in or outside of debugger Pin
Oakman4-May-11 6:35
Oakman4-May-11 6:35 

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.