Click here to Skip to main content
16,012,508 members
Home / Discussions / C#
   

C#

 
QuestionPrintDocument margins ignored Pin
Eli Nurman11-Feb-10 13:09
Eli Nurman11-Feb-10 13:09 
AnswerRe: PrintDocument margins ignored Pin
Dr.Walt Fair, PE11-Feb-10 16:17
professionalDr.Walt Fair, PE11-Feb-10 16:17 
GeneralRe: PrintDocument margins ignored Pin
Eli Nurman11-Feb-10 19:27
Eli Nurman11-Feb-10 19:27 
QuestionPROBLEM WITH WEBBROWSER AND PDF Pin
Maria_Esteba11-Feb-10 11:22
Maria_Esteba11-Feb-10 11:22 
AnswerRe: PROBLEM WITH WEBBROWSER AND PDF [modified] Pin
Garth J Lancaster11-Feb-10 12:49
professionalGarth J Lancaster11-Feb-10 12:49 
AnswerRe: PROBLEM WITH WEBBROWSER AND PDF Pin
The Man from U.N.C.L.E.11-Feb-10 12:58
The Man from U.N.C.L.E.11-Feb-10 12:58 
AnswerRe: PROBLEM WITH WEBBROWSER AND PDF Pin
Luc Pattyn11-Feb-10 12:58
sitebuilderLuc Pattyn11-Feb-10 12:58 
AnswerRe: PROBLEM WITH WEBBROWSER AND PDF Pin
Luc Pattyn11-Feb-10 13:22
sitebuilderLuc Pattyn11-Feb-10 13:22 
Hi,

sorry, my previous approach does not work.

while the WebBrowser is showing a file, it does keep it open, preventing you deleting it; so you must navigate away from x in order to delete file x. It works like this:
myWebBrowser.Navigate(anotherPage);
... wait a while
File.Delete(previousPage);


If you don't have anotherPage available, you can create a local one, hence:
string anotherPage="C:\temp\dummy.html";
File.WriteAllText(anotherPage, "<html><head></head><body></body></html>";
myWebBrowser.Navigate(anotherPage);
... wait a while
File.Delete(previousPage);


This works for me.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

QuestionRaise an event whenever a property’s value changed ? Pin
Mohammad Dayyan11-Feb-10 7:43
Mohammad Dayyan11-Feb-10 7:43 
AnswerRe: Raise an event whenever a property’s value changed ? Pin
Not Active11-Feb-10 8:18
mentorNot Active11-Feb-10 8:18 
GeneralRe: Raise an event whenever a property’s value changed ? Pin
Ennis Ray Lynch, Jr.11-Feb-10 11:20
Ennis Ray Lynch, Jr.11-Feb-10 11:20 
GeneralRe: Raise an event whenever a property’s value changed ? Pin
The Man from U.N.C.L.E.11-Feb-10 13:08
The Man from U.N.C.L.E.11-Feb-10 13:08 
GeneralRe: Raise an event whenever a property’s value changed ? Pin
Ennis Ray Lynch, Jr.11-Feb-10 15:46
Ennis Ray Lynch, Jr.11-Feb-10 15:46 
GeneralRe: Raise an event whenever a property’s value changed ? Pin
The Man from U.N.C.L.E.12-Feb-10 3:45
The Man from U.N.C.L.E.12-Feb-10 3:45 
AnswerRe: Raise an event whenever a property’s value changed ? Pin
The Man from U.N.C.L.E.12-Feb-10 3:47
The Man from U.N.C.L.E.12-Feb-10 3:47 
GeneralRe: Raise an event whenever a property’s value changed ? Pin
Mohammad Dayyan12-Feb-10 5:50
Mohammad Dayyan12-Feb-10 5:50 
Questionremote delegate handling Pin
kasraa0009800011-Feb-10 7:33
kasraa0009800011-Feb-10 7:33 
AnswerRe: remote delegate handling Pin
#realJSOP11-Feb-10 7:39
professional#realJSOP11-Feb-10 7:39 
GeneralRe: remote delegate handling Pin
kasraa0009800011-Feb-10 22:19
kasraa0009800011-Feb-10 22:19 
AnswerRe: remote delegate handling Pin
Not Active11-Feb-10 8:21
mentorNot Active11-Feb-10 8:21 
QuestionRe: remote delegate handling Pin
kasraa0009800011-Feb-10 22:14
kasraa0009800011-Feb-10 22:14 
AnswerRe: remote delegate handling Pin
Not Active12-Feb-10 1:50
mentorNot Active12-Feb-10 1:50 
Generalalternitive to CurrentForm CurForm = new CurrentForm(); Pin
tyjnfghnfgsdf11-Feb-10 7:17
tyjnfghnfgsdf11-Feb-10 7:17 
GeneralRe: alternitive to CurrentForm CurForm = new CurrentForm(); Pin
#realJSOP11-Feb-10 7:41
professional#realJSOP11-Feb-10 7:41 
GeneralRe: alternitive to CurrentForm CurForm = new CurrentForm(); Pin
Luc Pattyn11-Feb-10 10:40
sitebuilderLuc Pattyn11-Feb-10 10:40 

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.