Click here to Skip to main content
16,009,847 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGetting Serial Port Details in VB.NET Pin
shejijoseph28-Mar-07 6:31
shejijoseph28-Mar-07 6:31 
AnswerRe: Getting Serial Port Details in VB.NET Pin
Dave Kreskowiak28-Mar-07 8:53
mveDave Kreskowiak28-Mar-07 8:53 
AnswerRe: Getting Serial Port Details in VB.NET Pin
Vasudevan Deepak Kumar29-Mar-07 6:18
Vasudevan Deepak Kumar29-Mar-07 6:18 
GeneralRe: Getting Serial Port Details in VB.NET Pin
shejijoseph18-Apr-07 12:12
shejijoseph18-Apr-07 12:12 
QuestionOptional Date parameter within a Function Pin
Central_IT28-Mar-07 5:32
Central_IT28-Mar-07 5:32 
AnswerRe: Optional Date parameter within a Function Pin
kubben28-Mar-07 6:06
kubben28-Mar-07 6:06 
AnswerRe: Optional Date parameter within a Function Pin
Psycho-*Coder*-Extreme30-Mar-07 23:00
Psycho-*Coder*-Extreme30-Mar-07 23:00 
QuestionHow to show progress bar during the files or folders deletion Pin
Pankaj Saha28-Mar-07 4:41
Pankaj Saha28-Mar-07 4:41 
hi i have a windows application. I am select the folder or file name
from the folderbrowserdialog box and to delete the folder or file i am
calling the following code.

Public Function DeleteFile(ByVal path As String) As Boolean
'Delete a specified file
Try
If File.Exists(path) = True Then
File.Delete(path)
Return True
End If
Catch ex As Exception
Throw ex
End Try
End Function

Public Function DeleteFolder(ByVal path As String) As Boolean
'Delete a specified folder
Dim objFileInfo As FileInfo
Dim objFolder As DirectoryInfo
Dim objSubFolder As DirectoryInfo
Dim dirInfo As DirectoryInfo = New DirectoryInfo(path)
Try
If Directory.Exists(path) = True Then
objFolder = New DirectoryInfo(path)
For Each objFileInfo In objFolder.GetFiles()
objFileInfo.Delete()
Next
If dirInfo.GetDirectories.Length = 0 Then
Directory.Delete(dirInfo.FullName)
Return True
Else
For Each objSubFolder In
objFolder.GetDirectories()
DeleteFolder(objSubFolder.FullName)
Next
End If
DeleteFolder(objFolder.FullName)
Return True
End If
Catch ex As Exception
Throw ex
End Try
End Function

but i have to show the progress bar during the files or folder
deletion.
so plz tell me what should i do.

Pankaj
AnswerRe: How to show progress bar during the files or folders deletion Pin
Christian Graus28-Mar-07 5:01
protectorChristian Graus28-Mar-07 5:01 
Questionmdi child maximization Pin
caymanislands28-Mar-07 4:21
caymanislands28-Mar-07 4:21 
AnswerRe: mdi child maximization Pin
caymanislands2-Apr-07 13:22
caymanislands2-Apr-07 13:22 
AnswerRe: resource Pin
Christian Graus28-Mar-07 13:40
protectorChristian Graus28-Mar-07 13:40 
Questionrun dts package on different domain Pin
leezardd28-Mar-07 4:06
leezardd28-Mar-07 4:06 
Question.mdb Pin
NANCO28-Mar-07 3:56
NANCO28-Mar-07 3:56 
AnswerRe: .mdb Pin
leckey28-Mar-07 8:46
leckey28-Mar-07 8:46 
GeneralRe: .mdb Pin
NANCO28-Mar-07 19:14
NANCO28-Mar-07 19:14 
AnswerRe: .mdb Pin
Vasudevan Deepak Kumar29-Mar-07 6:25
Vasudevan Deepak Kumar29-Mar-07 6:25 
QuestionWhat is the .NET equivalent of Format() and Mid() = ??? [modified] Pin
Marcus J. Smith28-Mar-07 2:29
professionalMarcus J. Smith28-Mar-07 2:29 
AnswerRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
RichardBerry28-Mar-07 3:56
RichardBerry28-Mar-07 3:56 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Marcus J. Smith28-Mar-07 4:07
professionalMarcus J. Smith28-Mar-07 4:07 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Kreskowiak28-Mar-07 4:18
mveDave Kreskowiak28-Mar-07 4:18 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Marcus J. Smith28-Mar-07 5:07
professionalMarcus J. Smith28-Mar-07 5:07 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Kreskowiak28-Mar-07 5:19
mveDave Kreskowiak28-Mar-07 5:19 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Marcus J. Smith28-Mar-07 5:22
professionalMarcus J. Smith28-Mar-07 5:22 
GeneralRe: What is the .NET equivalent of Format() and Mid() = ??? Pin
Dave Doknjas28-Mar-07 13:25
Dave Doknjas28-Mar-07 13:25 

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.