Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read an image from an .xml file can we insert an image in .xml file Pin
dan!sh 14-Feb-10 3:58
professional dan!sh 14-Feb-10 3:58 
QuestionOnPaint() not being called for my custom control...! Pin
kupps13-Feb-10 17:54
kupps13-Feb-10 17:54 
QuestionQuestion on shutting down another program and wating for it to exit. Pin
Zundee13-Feb-10 16:47
Zundee13-Feb-10 16:47 
AnswerRe: Question on shutting down another program and wating for it to exit. Pin
tonyonlinux13-Feb-10 18:18
tonyonlinux13-Feb-10 18:18 
GeneralRe: Question on shutting down another program and wating for it to exit. Pin
Zundee14-Feb-10 11:27
Zundee14-Feb-10 11:27 
QuestionRe: Question on shutting down another program and wating for it to exit. Pin
22491713-Feb-10 18:22
22491713-Feb-10 18:22 
AnswerRe: Question on shutting down another program and wating for it to exit. Pin
dan!sh 13-Feb-10 18:51
professional dan!sh 13-Feb-10 18:51 
QuestionDELETE A PDF IN A WEBBROWSER Pin
Maria_Esteba13-Feb-10 14:49
Maria_Esteba13-Feb-10 14:49 
HELLO EVERYBODY,
I have a problem, I load a pdf in a webbrowser in Windows, in this event


string gcPthTMP = @"C:\TMP\";
string gcPthTrans = @"C:\TRANS\";

private void frmWebBrowser_Load(object sender, EventArgs e)
{
Uri uriPdf = new Uri(gcPthTMP + fileName);
this.webBrowser.Url = uriPdf;
}

This works fine, the problem is when I want to delete this file, i do:

private void frmWebBrowser_FormClosed(object sender, FormClosedEventArgs e)
{
this.webBrowser.Dispose();
this.Refresh();
System.Threading.Thread.Sleep(1000);
string fileName = this.txtUrl.Text.ToString().Trim();
this.Dispose(true);
if (System.IO.File.Exists(gcPthTMP + fileName))
{
System.IO.File.Delete(gcPthTMP + fileName);
}
}

this works fine in Vista, because delete the file without any problem, but the problem is in XP, this produce a error It says that the process is using by other process. Please help me, Ineed to solve this problem.

Thanks
Answerrepost Pin
Luc Pattyn13-Feb-10 15:00
sitebuilderLuc Pattyn13-Feb-10 15:00 
GeneralRe: repost Pin
Maria_Esteba13-Feb-10 15:09
Maria_Esteba13-Feb-10 15:09 
GeneralRe: repost Pin
Garth J Lancaster13-Feb-10 16:14
professionalGarth J Lancaster13-Feb-10 16:14 
GeneralRe: repost Pin
Muammar©13-Feb-10 19:25
Muammar©13-Feb-10 19:25 
AnswerRe: DELETE A PDF IN A WEBBROWSER Pin
Muammar©13-Feb-10 19:40
Muammar©13-Feb-10 19:40 
GeneralRe: DELETE A PDF IN A WEBBROWSER Pin
Luc Pattyn13-Feb-10 23:16
sitebuilderLuc Pattyn13-Feb-10 23:16 
Questionhow to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal13-Feb-10 12:55
YawerIqbal13-Feb-10 12:55 
AnswerRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active13-Feb-10 14:13
mentorNot Active13-Feb-10 14:13 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal13-Feb-10 18:48
YawerIqbal13-Feb-10 18:48 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active14-Feb-10 3:09
mentorNot Active14-Feb-10 3:09 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal14-Feb-10 19:00
YawerIqbal14-Feb-10 19:00 
GeneralRe: how to handle optional parameters using DAAB ? plz guide [modified] Pin
Not Active15-Feb-10 1:27
mentorNot Active15-Feb-10 1:27 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
YawerIqbal15-Feb-10 4:57
YawerIqbal15-Feb-10 4:57 
GeneralRe: how to handle optional parameters using DAAB ? plz guide Pin
Not Active15-Feb-10 5:44
mentorNot Active15-Feb-10 5:44 
Questionhow to make a default value in combobox where item doesn't exist in collection Pin
tonyonlinux13-Feb-10 10:10
tonyonlinux13-Feb-10 10:10 
AnswerRe: how to make a default value in combobox where item doesn't exist in collection Pin
Abhinav S13-Feb-10 10:16
Abhinav S13-Feb-10 10:16 
GeneralRe: how to make a default value in combobox where item doesn't exist in collection [resolved] Pin
tonyonlinux13-Feb-10 10:32
tonyonlinux13-Feb-10 10:32 

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.