Click here to Skip to main content
15,905,967 members
Home / Discussions / C#
   

C#

 
Questionpixel to inches Pin
sindhutiwari12-Nov-07 1:44
sindhutiwari12-Nov-07 1:44 
QuestionC# and API's Pin
Illegal Operation12-Nov-07 1:12
Illegal Operation12-Nov-07 1:12 
AnswerRe: C# and API's Pin
Pete O'Hanlon12-Nov-07 1:52
mvePete O'Hanlon12-Nov-07 1:52 
QuestionButton.Click Error "Page Cannot Be Displayed" Pin
amdacc12-Nov-07 1:08
amdacc12-Nov-07 1:08 
QuestionMessagebox details Pin
Scalee11-Nov-07 23:50
Scalee11-Nov-07 23:50 
AnswerRe: Messagebox details Pin
Pete O'Hanlon11-Nov-07 23:51
mvePete O'Hanlon11-Nov-07 23:51 
AnswerRe: Messagebox details Pin
Christian Graus11-Nov-07 23:52
protectorChristian Graus11-Nov-07 23:52 
QuestionPrintPreviewControl - Document does not contain any pages Pin
Stevo Z11-Nov-07 23:42
Stevo Z11-Nov-07 23:42 
hi,

I have a PrintPreviewControl on my form, where print preview should be displayed.The problem is, that even when I set the Document Property of this control to a new created document, it doesn't raise any Print event. It always displays "Document does not contain any pages" text.

if (this.DocumentPreview == null)
{
    this.DocumentPreview = new PrintDocument();

    this.DocumentPreview.PrintPage += new PrintPageEventHandler(DocumentPreview_PrintPage);
    this.DocumentPreview.BeginPrint += new PrintEventHandler(DocumentPreview_BeginPrint);
    this.DocumentPreview.EndPrint += new PrintEventHandler(DocumentPreview_EndPrint);
    //?? doesn't help this.DocumentPreview.PrinterSettings.ToPage = 1;
    this.DocumentPreview.DocumentName = "Generating document";
}
         
this.printPreviewControl.Document = null;
this.printPreviewControl.Document = this.DocumentPreview;


Do you have any idea why ?

zilo
AnswerRe: PrintPreviewControl - Document does not contain any pages Pin
Stevo Z12-Nov-07 1:24
Stevo Z12-Nov-07 1:24 
QuestionLearning Mobile Application in C#.net Pin
sindhutiwari11-Nov-07 23:35
sindhutiwari11-Nov-07 23:35 
AnswerRe: Learning Mobile Application in C#.net Pin
Justin Perez12-Nov-07 2:27
Justin Perez12-Nov-07 2:27 
GeneralRe: Learning Mobile Application in C#.net Pin
sindhutiwari12-Nov-07 5:49
sindhutiwari12-Nov-07 5:49 
GeneralRe: Learning Mobile Application in C#.net Pin
Justin Perez12-Nov-07 5:53
Justin Perez12-Nov-07 5:53 
GeneralRe: Learning Mobile Application in C#.net Pin
darkelv12-Nov-07 13:13
darkelv12-Nov-07 13:13 
QuestionHow to set focus on Form when its visible ? Pin
Yanshof11-Nov-07 23:30
Yanshof11-Nov-07 23:30 
GeneralRe: How to set focus on Form when its visible ? Pin
Yanshof12-Nov-07 3:32
Yanshof12-Nov-07 3:32 
QuestionHow to scale resize form/controll according to mobile(product) in Mobile Applications Pin
pashitech11-Nov-07 23:11
pashitech11-Nov-07 23:11 
QuestionColoring issue Pin
Muammar©11-Nov-07 23:03
Muammar©11-Nov-07 23:03 
AnswerRe: Coloring issue Pin
Rajasekharan Vengalil11-Nov-07 23:09
Rajasekharan Vengalil11-Nov-07 23:09 
GeneralRe: Coloring issue Pin
Muammar©12-Nov-07 0:16
Muammar©12-Nov-07 0:16 
AnswerRe: Coloring issue [modified] Pin
Bekjong12-Nov-07 0:22
Bekjong12-Nov-07 0:22 
GeneralRe: Coloring issue Pin
Muammar©12-Nov-07 19:05
Muammar©12-Nov-07 19:05 
Questionhow to get focus on textbox control in C#.NEt Pin
D i x y11-Nov-07 22:48
D i x y11-Nov-07 22:48 
AnswerRe: how to get focus on textbox control in C#.NEt Pin
Christian Graus11-Nov-07 22:54
protectorChristian Graus11-Nov-07 22:54 
AnswerRe: how to get focus on textbox control in C#.NEt Pin
Muammar©11-Nov-07 23:06
Muammar©11-Nov-07 23:06 

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.