Click here to Skip to main content
15,913,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to send mail using VB Pin
Mekong River26-Jan-06 15:04
Mekong River26-Jan-06 15:04 
Questionvb.net serial port comm using netcommocx activex control Pin
Neelima Raj22-Jan-06 18:24
Neelima Raj22-Jan-06 18:24 
QuestionThis Error Message PopUp when I execute, anyone can help me how to solve this? Pin
drexler_kk22-Jan-06 16:59
drexler_kk22-Jan-06 16:59 
AnswerRe: This Error Message PopUp when I execute, anyone can help me how to solve this? Pin
Owner drawn22-Jan-06 17:30
Owner drawn22-Jan-06 17:30 
GeneralRe: This Error Message PopUp when I execute, anyone can help me how to solve this? Pin
drexler_kk22-Jan-06 17:51
drexler_kk22-Jan-06 17:51 
GeneralRe: This Error Message PopUp when I execute, anyone can help me how to solve this? Pin
Owner drawn22-Jan-06 17:56
Owner drawn22-Jan-06 17:56 
GeneralRe: This Error Message PopUp when I execute, anyone can help me how to solve this? Pin
drexler_kk22-Jan-06 19:19
drexler_kk22-Jan-06 19:19 
QuestionSystem.IO.File.Delete Pin
elcheah22-Jan-06 16:57
elcheah22-Jan-06 16:57 
hi,
i try to send an email with attachment, but when the program fails to send out the mail, i can't delete the file (the file i wish to attach in the mail) in my local drive, i think it is locked when i am trying to send, i have used the code below to delete the file
For Each sSubstr In attach_string.Split(delim)<br />
If System.IO.File.Exists(sSubstr) = True Then<br />
Try<br />
System.IO.File.Delete(sSubstr)<br />
'MsgBox("File Deleted")<br />
Catch ex As IOException<br />
Label1.Text = ex.Message<br />
Finally<br />
End Try<br />
End If<br />
Next


i didn't catch any exception while debuging but it fails to delete the file, when i go to the path (where i the file is) to delete the file manually, windows tells me "Canot delete File: Access is Denied. Make sure the file is not ful or write protected or currently in use". Any idea how to fix that?

-- modified at 23:23 Sunday 22nd January, 2006
AnswerRe: System.IO.File.Delete Pin
Owner drawn22-Jan-06 17:34
Owner drawn22-Jan-06 17:34 
GeneralRe: System.IO.File.Delete Pin
elcheah22-Jan-06 18:03
elcheah22-Jan-06 18:03 
GeneralRe: System.IO.File.Delete Pin
Owner drawn22-Jan-06 18:09
Owner drawn22-Jan-06 18:09 
GeneralRe: System.IO.File.Delete Pin
elcheah22-Jan-06 19:15
elcheah22-Jan-06 19:15 
GeneralRe: System.IO.File.Delete Pin
Dave Kreskowiak23-Jan-06 5:09
mveDave Kreskowiak23-Jan-06 5:09 
GeneralRe: System.IO.File.Delete Pin
elcheah23-Jan-06 16:46
elcheah23-Jan-06 16:46 
GeneralRe: System.IO.File.Delete Pin
Dave Kreskowiak24-Jan-06 2:32
mveDave Kreskowiak24-Jan-06 2:32 
QuestionCreating Virtual Serial/Com ports? Pin
bskirkman22-Jan-06 16:31
bskirkman22-Jan-06 16:31 
AnswerRe: Creating Virtual Serial/Com ports? Pin
progload22-Jan-06 19:03
progload22-Jan-06 19:03 
GeneralRe: Creating Virtual Serial/Com ports? Pin
bskirkman23-Jan-06 13:43
bskirkman23-Jan-06 13:43 
QuestionDATA LINK PROPERTY LAYER Pin
thealca22-Jan-06 15:22
thealca22-Jan-06 15:22 
AnswerRe: DATA LINK PROPERTY LAYER Pin
Dave Kreskowiak22-Jan-06 15:57
mveDave Kreskowiak22-Jan-06 15:57 
GeneralRe: DATA LINK PROPERTY LAYER Pin
thealca22-Jan-06 17:45
thealca22-Jan-06 17:45 
GeneralRe: DATA LINK PROPERTY LAYER Pin
Dave Kreskowiak22-Jan-06 19:04
mveDave Kreskowiak22-Jan-06 19:04 
QuestionGenerating Crystal Report using Vb.net Pin
Meniacus22-Jan-06 15:11
Meniacus22-Jan-06 15:11 
AnswerRe: Generating Crystal Report using Vb.net Pin
lavanya_satheesh22-Jan-06 23:59
lavanya_satheesh22-Jan-06 23:59 
QuestionAdvice on vb/asp? Pin
Sam Marrocco22-Jan-06 10:52
Sam Marrocco22-Jan-06 10:52 

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.