Click here to Skip to main content
15,915,328 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: IP Address and MAC Address Pin
nawalage5-Feb-07 20:02
nawalage5-Feb-07 20:02 
AnswerRe: IP Address and MAC Address Pin
Ahmed El-Badry5-Feb-07 22:55
Ahmed El-Badry5-Feb-07 22:55 
AnswerRe: deleting many folders Pin
Christian Graus4-Feb-07 23:01
protectorChristian Graus4-Feb-07 23:01 
Questiondeleting many folders Pin
charchabil034-Feb-07 22:44
charchabil034-Feb-07 22:44 
AnswerRe: deleting many folders Pin
Christian Graus4-Feb-07 23:02
protectorChristian Graus4-Feb-07 23:02 
GeneralRe: deleting many folders Pin
ChandraRam5-Feb-07 3:49
ChandraRam5-Feb-07 3:49 
GeneralRe: deleting many folders Pin
charchabil035-Feb-07 5:26
charchabil035-Feb-07 5:26 
AnswerRe: deleting many folders Pin
TwoFaced5-Feb-07 7:06
TwoFaced5-Feb-07 7:06 
Give this a try
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim folderDate As Date      'Holds the date the folder name represents

    'Loop through each folder under a given directory
    For Each dir As String In IO.Directory.GetDirectories("c:\test")
        'Try to parse folder name to valid date
        Date.TryParse(IO.Path.GetFileName(dir), folderDate)

        'If folderDate is less then Date selected, then remove it
        If folderDate <> Nothing AndAlso Date.Compare(folderDate, DateTimePicker1.Value.Date) < 0 Then
            IO.Directory.Delete(dir, True)
        End If
    Next
End Sub

GeneralRe: deleting many folders Pin
charchabil035-Feb-07 8:00
charchabil035-Feb-07 8:00 
QuestionWiFi Connection Pin
ChPortos4-Feb-07 22:00
ChPortos4-Feb-07 22:00 
AnswerRe: WiFi Connection Pin
ChPortos7-Feb-07 3:35
ChPortos7-Feb-07 3:35 
Questionhow to handle list boxes? Pin
Jennisa4-Feb-07 21:27
Jennisa4-Feb-07 21:27 
AnswerRe: how to handle list boxes? Pin
jack_claudine4-Feb-07 21:54
jack_claudine4-Feb-07 21:54 
AnswerRe: how to handle list boxes? Pin
Vikash Yadav4-Feb-07 21:59
Vikash Yadav4-Feb-07 21:59 
GeneralRe: how to handle list boxes? Pin
Jennisa4-Feb-07 22:23
Jennisa4-Feb-07 22:23 
GeneralRe: how to handle list boxes? Pin
Vikash Yadav4-Feb-07 22:44
Vikash Yadav4-Feb-07 22:44 
GeneralRe: how to handle list boxes? Pin
Jennisa4-Feb-07 23:27
Jennisa4-Feb-07 23:27 
AnswerRe: how to handle list boxes? [modified] Pin
TwoFaced5-Feb-07 7:33
TwoFaced5-Feb-07 7:33 
QuestionSave & access file on network Pin
Vikash Yadav4-Feb-07 21:13
Vikash Yadav4-Feb-07 21:13 
AnswerRe: Save & access file on network Pin
Colin Angus Mackay4-Feb-07 21:42
Colin Angus Mackay4-Feb-07 21:42 
GeneralRe: Save & access file on network Pin
Vikash Yadav4-Feb-07 22:04
Vikash Yadav4-Feb-07 22:04 
QuestionHi Access denied For HIT Counter Pin
sandipan.neogi@gmail.com4-Feb-07 20:29
sandipan.neogi@gmail.com4-Feb-07 20:29 
QuestionHow to update data by using datagird and textbox ? Pin
bircut4-Feb-07 16:17
bircut4-Feb-07 16:17 
AnswerRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt4-Feb-07 23:16
Johan Hakkesteegt4-Feb-07 23:16 
GeneralRe: How to update data by using datagird and textbox ? [modified] Pin
bircut5-Feb-07 2:10
bircut5-Feb-07 2:10 

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.