Click here to Skip to main content
15,949,686 members
Home / Discussions / C#
   

C#

 
Questioncreating databse Pin
_tasleem27-Jun-06 4:53
_tasleem27-Jun-06 4:53 
Questioninherited menu problem Pin
Karl 200027-Jun-06 4:48
Karl 200027-Jun-06 4:48 
QuestionTreeView node Pin
printscreen1234527-Jun-06 4:41
printscreen1234527-Jun-06 4:41 
AnswerRe: TreeView node Pin
Judah Gabriel Himango27-Jun-06 5:23
sponsorJudah Gabriel Himango27-Jun-06 5:23 
QuestionHow to highlight? Pin
printscreen1234527-Jun-06 4:37
printscreen1234527-Jun-06 4:37 
QuestionPage printing and printable area Pin
Not Active27-Jun-06 4:37
mentorNot Active27-Jun-06 4:37 
AnswerRe: Page printing and printable area Pin
Nader Elshehabi27-Jun-06 5:19
Nader Elshehabi27-Jun-06 5:19 
GeneralRe: Page printing and printable area [modified] Pin
Not Active27-Jun-06 5:36
mentorNot Active27-Jun-06 5:36 
MarginBounds is different from PrintableArea, but thanks for the response. It also has nothing to do with the code but here you go

<br />
private void OnPrint(object sender, EventArgs e)<br />
{<br />
    printDocument1.DefaultPageSettings.Landscape = true;<br />
}<br />
<br />
private void OnPrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)<br />
{<br />
  e.Graphics.DrawRectangle(new Pen(Color.Red), e.PageBounds);<br />
  e.Graphics.DrawRectangle(new Pen(Color.Yellow), e.MarginBounds);<br />
  e.Graphics.DrawRectangle(new Pen(Color.Black), e.PageSettings.PrintableArea);<br />
}


The last is what annoys me, I would expect it to in landscape by it is still in portrait.

-- modified at 11:36 Tuesday 27th June, 2006
GeneralRe: Page printing and printable area Pin
Nader Elshehabi27-Jun-06 11:19
Nader Elshehabi27-Jun-06 11:19 
QuestionString Formatting Pin
Drew McGhie27-Jun-06 4:02
Drew McGhie27-Jun-06 4:02 
AnswerRe: String Formatting Pin
Dustin Metzgar27-Jun-06 4:07
Dustin Metzgar27-Jun-06 4:07 
AnswerRe: String Formatting Pin
Not Active27-Jun-06 4:08
mentorNot Active27-Jun-06 4:08 
AnswerRe: String Formatting Pin
stancrm27-Jun-06 4:09
stancrm27-Jun-06 4:09 
AnswerRe: String Formatting Pin
jjansen27-Jun-06 4:16
jjansen27-Jun-06 4:16 
AnswerRe: String Formatting Pin
Judah Gabriel Himango27-Jun-06 4:17
sponsorJudah Gabriel Himango27-Jun-06 4:17 
GeneralRe: String Formatting Pin
Drew McGhie27-Jun-06 5:36
Drew McGhie27-Jun-06 5:36 
QuestionUsing classes on windows forms Pin
Mamphekgo27-Jun-06 3:56
Mamphekgo27-Jun-06 3:56 
AnswerRe: Using classes on windows forms Pin
stancrm27-Jun-06 4:02
stancrm27-Jun-06 4:02 
AnswerRe: Using classes on windows forms Pin
Robert Rohde27-Jun-06 4:05
Robert Rohde27-Jun-06 4:05 
Questionhow to find all ip Pin
Bozhuk27-Jun-06 3:52
Bozhuk27-Jun-06 3:52 
AnswerRe: how to find all ip Pin
Judah Gabriel Himango27-Jun-06 4:18
sponsorJudah Gabriel Himango27-Jun-06 4:18 
QuestionWrong data - Network Stream Pin
shadow0127-Jun-06 2:57
shadow0127-Jun-06 2:57 
Questionhow can i send sms ... Pin
mostafa_h27-Jun-06 2:56
mostafa_h27-Jun-06 2:56 
AnswerRe: how can i send sms ... Pin
Judah Gabriel Himango27-Jun-06 4:19
sponsorJudah Gabriel Himango27-Jun-06 4:19 
QuestionLoading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 2:55
jjansen27-Jun-06 2:55 

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.