Click here to Skip to main content
16,005,734 members
Home / Discussions / C#
   

C#

 
Questionauto versioning? Pin
zecodela5-Apr-05 20:35
zecodela5-Apr-05 20:35 
AnswerRe: auto versioning? Pin
leppie5-Apr-05 23:19
leppie5-Apr-05 23:19 
AnswerRe: auto versioning? Pin
Zdeslav Vojkovic6-Apr-05 0:48
Zdeslav Vojkovic6-Apr-05 0:48 
GeneralRe: auto versioning? Pin
zecodela7-Apr-05 0:30
zecodela7-Apr-05 0:30 
GeneralICQ Client/Protocol Pin
Moon Boy5-Apr-05 17:58
Moon Boy5-Apr-05 17:58 
GeneralRe: ICQ Client/Protocol Pin
leppie5-Apr-05 19:01
leppie5-Apr-05 19:01 
GeneralRe: ICQ Client/Protocol Pin
Daniel Grunwald9-Apr-05 5:07
Daniel Grunwald9-Apr-05 5:07 
Generalposition of the printed out datagrid Pin
MJay5-Apr-05 17:07
MJay5-Apr-05 17:07 
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)<br />
{<br />
PaintEventArgs myPaintArgs = new PaintEventArgs (e.Graphics, new Rectangle(0,0,datagrid1.Width,datagrid1.Height));<br />
this.InvokePaint(dg, myPaintArgs);<br />
}


this is the coding i used to print out datagrid, the X and Y is set to 0 and 0, the datagrid print out correctly at exactly upper left corner of the paper.
then i modify the coding.

private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)<br />
{<br />
PaintEventArgs myPaintArgs = new PaintEventArgs (e.Graphics, new Rectangle(50,50,datagrid1.Width,datagrid1.Height));<br />
this.InvokePaint(dg, myPaintArgs);<br />
}


i change the cordinates to 50,50, but y the datagrid still print at the same position for cordinates 0,0??i do not wan the datagrid to be printed at that position!anyone can help me out with this??Thz!
GeneralRe: position of the printed out datagrid Pin
Anonymous5-Apr-05 22:27
Anonymous5-Apr-05 22:27 
GeneralRe: position of the printed out datagrid Pin
MJay5-Apr-05 23:02
MJay5-Apr-05 23:02 
GeneralSaving an object to a XML file Pin
Luis Alonso Ramos5-Apr-05 16:28
Luis Alonso Ramos5-Apr-05 16:28 
GeneralRe: Saving an object to a XML file Pin
Christian Graus5-Apr-05 16:39
protectorChristian Graus5-Apr-05 16:39 
GeneralRe: Saving an object to a XML file Pin
DavidNohejl5-Apr-05 23:23
DavidNohejl5-Apr-05 23:23 
GeneralRe: Saving an object to a XML file Pin
Luis Alonso Ramos6-Apr-05 5:45
Luis Alonso Ramos6-Apr-05 5:45 
Generalc# Move/Resize Objects Pin
elapid5-Apr-05 15:44
elapid5-Apr-05 15:44 
GeneralRe: c# Move/Resize Objects Pin
Christian Graus5-Apr-05 16:04
protectorChristian Graus5-Apr-05 16:04 
GeneralRe: c# Move/Resize Objects Pin
elapid5-Apr-05 17:25
elapid5-Apr-05 17:25 
GeneralRe: c# Move/Resize Objects Pin
Christian Graus5-Apr-05 17:31
protectorChristian Graus5-Apr-05 17:31 
GeneralRe: c# Move/Resize Objects Pin
elapid5-Apr-05 17:37
elapid5-Apr-05 17:37 
GeneralHow do I obtain the current mouse position? Pin
elapid5-Apr-05 18:19
elapid5-Apr-05 18:19 
GeneralRe: How do I obtain the current mouse position? Pin
Ashok Dhamija5-Apr-05 18:57
Ashok Dhamija5-Apr-05 18:57 
QuestionHow to set the height of text lines? Pin
welsrping5-Apr-05 15:24
welsrping5-Apr-05 15:24 
AnswerRe: How to set the height of text lines? Pin
Ashok Dhamija5-Apr-05 18:47
Ashok Dhamija5-Apr-05 18:47 
GeneralRe: How to set the height of text lines? Pin
welsrping5-Apr-05 20:40
welsrping5-Apr-05 20:40 
GeneralRe: How to set the height of text lines? Pin
leppie5-Apr-05 23:24
leppie5-Apr-05 23:24 

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.