Click here to Skip to main content
15,915,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: text processing Pin
Luc Pattyn22-Nov-08 9:31
sitebuilderLuc Pattyn22-Nov-08 9:31 
GeneralRe: text processing Pin
kimo code22-Nov-08 19:40
kimo code22-Nov-08 19:40 
QuestionFetch HTML code Pin
B8721-Nov-08 22:14
B8721-Nov-08 22:14 
AnswerRe: Fetch HTML code Pin
Mycroft Holmes21-Nov-08 22:52
professionalMycroft Holmes21-Nov-08 22:52 
AnswerRe: Fetch HTML code Pin
Wendelius22-Nov-08 22:48
mentorWendelius22-Nov-08 22:48 
QuestionC# Group Box - Graphics Pin
See_Sharp21-Nov-08 18:32
See_Sharp21-Nov-08 18:32 
AnswerRe: C# Group Box - Graphics Pin
Pedram Behroozi21-Nov-08 18:56
Pedram Behroozi21-Nov-08 18:56 
GeneralRe: C# Group Box - Graphics [modified] Pin
See_Sharp22-Nov-08 4:17
See_Sharp22-Nov-08 4:17 
Thank you!

I did not know it can work this way (I am a beginner), but it worked well. I did this to test it out:
private void menuEGram_Click(object sender, EventArgs e)
{
    Rectangle grid = new Rectangle(5, 100, 100, 100);
    PaintEventArgs hi = new PaintEventArgs(groupBox_egram.CreateGraphics(), grid);
    groupBox_egram_Paint(menuEGram, hi);
}
private void groupBox_egram_Paint(object sender, PaintEventArgs e)
{
    e.Graphics.DrawRectangle(new Pen(Color.Black),new Rectangle(5, 100, 100, 100));
}

This might seem like another really basic question.. but is there a way that I can use the Rectangle that I created inside PaintEventArgs e instead of creating a new one?

Thank you.

modified on Saturday, November 22, 2008 10:35 AM

GeneralRe: C# Group Box - Graphics Pin
Pedram Behroozi22-Nov-08 4:54
Pedram Behroozi22-Nov-08 4:54 
GeneralRe: C# Group Box - Graphics Pin
See_Sharp22-Nov-08 4:56
See_Sharp22-Nov-08 4:56 
GeneralRe: C# Group Box - Graphics Pin
Pedram Behroozi22-Nov-08 6:26
Pedram Behroozi22-Nov-08 6:26 
AnswerRe: C# Group Box - Graphics Pin
Dave Kreskowiak21-Nov-08 19:11
mveDave Kreskowiak21-Nov-08 19:11 
AnswerRe: C# Group Box - Graphics Pin
#realJSOP22-Nov-08 1:53
professional#realJSOP22-Nov-08 1:53 
GeneralIm trying to make a custom installer of some sort.... [modified] Pin
lekira21-Nov-08 17:09
lekira21-Nov-08 17:09 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
Dave Kreskowiak21-Nov-08 19:04
mveDave Kreskowiak21-Nov-08 19:04 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
lekira21-Nov-08 19:20
lekira21-Nov-08 19:20 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
Mycroft Holmes21-Nov-08 21:32
professionalMycroft Holmes21-Nov-08 21:32 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
lekira23-Nov-08 13:54
lekira23-Nov-08 13:54 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
Mycroft Holmes23-Nov-08 14:14
professionalMycroft Holmes23-Nov-08 14:14 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
Dave Kreskowiak24-Nov-08 16:35
mveDave Kreskowiak24-Nov-08 16:35 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
Dave Kreskowiak22-Nov-08 4:20
mveDave Kreskowiak22-Nov-08 4:20 
GeneralRe: Im trying to make a custom installer of some sort.... Pin
lekira23-Nov-08 13:57
lekira23-Nov-08 13:57 
QuestionErrors in http data stream from ASP.NET server download Pin
qwe123421-Nov-08 12:54
qwe123421-Nov-08 12:54 
AnswerRe: Errors in http data stream from ASP.NET server download Pin
Guffa21-Nov-08 15:06
Guffa21-Nov-08 15:06 
QuestionRename file Pin
netJP12L21-Nov-08 11:35
netJP12L21-Nov-08 11:35 

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.