Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
AnswerRe: Scrolling background in C# Winform?? Pin
AFSEKI8-May-07 23:31
AFSEKI8-May-07 23:31 
QuestionIBindingListView Filter Property Pin
Skippums7-May-07 7:11
Skippums7-May-07 7:11 
AnswerRe: IBindingListView Filter Property Pin
Dave Kreskowiak7-May-07 7:16
mveDave Kreskowiak7-May-07 7:16 
GeneralRe: IBindingListView Filter Property Pin
Skippums7-May-07 7:47
Skippums7-May-07 7:47 
GeneralRe: IBindingListView Filter Property Pin
Dave Kreskowiak7-May-07 7:51
mveDave Kreskowiak7-May-07 7:51 
Questionhow to get color percentage distribution 4 an image? Pin
icecool_567-May-07 6:52
icecool_567-May-07 6:52 
AnswerRe: how to get color percentage distribution 4 an image? Pin
Dave Kreskowiak7-May-07 7:12
mveDave Kreskowiak7-May-07 7:12 
GeneralRe: how to get color percentage distribution 4 an image? Pin
icecool_567-May-07 7:15
icecool_567-May-07 7:15 
QuestionAdding rows dynamically in a DataGridView Pin
Subrahmanyam K7-May-07 6:52
Subrahmanyam K7-May-07 6:52 
AnswerRe: Adding rows dynamically in a DataGridView Pin
Salogus7-May-07 18:43
Salogus7-May-07 18:43 
AnswerRe: Adding rows dynamically in a DataGridView Pin
AFSEKI7-May-07 21:30
AFSEKI7-May-07 21:30 
AnswerRe: How to Generate a 16 bit Random number? Pin
Dave Kreskowiak7-May-07 7:09
mveDave Kreskowiak7-May-07 7:09 
QuestionHow to determine exe file size from it's process? Pin
Doan Quynh7-May-07 6:26
Doan Quynh7-May-07 6:26 
AnswerRe: How to determine exe file size from it's process? Pin
Dave Kreskowiak7-May-07 6:44
mveDave Kreskowiak7-May-07 6:44 
GeneralRe: How to determine exe file size from it's process? Pin
Doan Quynh7-May-07 14:55
Doan Quynh7-May-07 14:55 
GeneralRe: How to determine exe file size from it's process? Pin
Dave Kreskowiak7-May-07 17:42
mveDave Kreskowiak7-May-07 17:42 
QuestionHow to place write to memory rather than hard-disk? Pin
Khoramdin7-May-07 4:34
Khoramdin7-May-07 4:34 
AnswerRe: How to place write to memory rather than hard-disk? Pin
Tarakeshwar Reddy7-May-07 5:10
professionalTarakeshwar Reddy7-May-07 5:10 
QuestionRe: How to place write to memory rather than hard-disk? Pin
Khoramdin7-May-07 7:57
Khoramdin7-May-07 7:57 
AnswerRe: How to place write to memory rather than hard-disk? Pin
Tarakeshwar Reddy7-May-07 9:48
professionalTarakeshwar Reddy7-May-07 9:48 
QuestionPrinting GDI Drawing objects Pin
free_soul4247-May-07 4:25
free_soul4247-May-07 4:25 
AnswerRe: Printing GDI Drawing objects Pin
User 24629919-May-07 1:59
professionalUser 24629919-May-07 1:59 
get size of your drawing. create a bitmap using, then get graphics from the bitmap. Now use that graphics object to draw your objects. After finishing drawing objects, copy image to PrintPage event's
argument's graphics object.

Bitmap bmp=new Bitmap(width,height);<br />
//Now create graphics from this bmp<br />
Graphics g=Graphics.FromImage(bmp);<br />
//draw you objects to this graphics object<br />
//g.DrawRectangle(..)<br />
//finish drawing<br />
<br />
Graphics gr=e.Graphics; //e is PrintPageEventArgs object<br />
//int x,y; declare these two variables at class level so that every time you raise PrintPage event they are available with previous values<br />
//x=y=0; initialize before calling<br />
//Loop to draw all image page by page<br />
RectangleF rf=new RectangleF(0,0,printPageWidth, printPageHeight);<br />
gr.DrawImage(bmp,rf);<br />
//now add width and height of rectangle to start<br />
// to get next page x +=printPageWidth<br />
e.HasMorePages=true; //this will cause the print event handler to be called again<br />


Sorry i'm not very legible. But hope you will get an idea.

Aman Tur

modified 9-Jul-22 21:01pm.

QuestionC# and java Pin
Askalo7-May-07 4:12
Askalo7-May-07 4:12 
AnswerRe: C# and java Pin
Judah Gabriel Himango7-May-07 4:20
sponsorJudah Gabriel Himango7-May-07 4:20 
AnswerRe: C# and java Pin
Luc Pattyn7-May-07 6:42
sitebuilderLuc Pattyn7-May-07 6:42 

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.