Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
QuestionDrawlines on different levels Pin
AlexB474-Jan-11 6:04
AlexB474-Jan-11 6:04 
AnswerRe: Drawlines on different levels Pin
Luc Pattyn4-Jan-11 6:21
sitebuilderLuc Pattyn4-Jan-11 6:21 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 13:56
AlexB474-Jan-11 13:56 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 15:23
AlexB474-Jan-11 15:23 
GeneralRe: Drawlines on different levels Pin
Luc Pattyn4-Jan-11 15:25
sitebuilderLuc Pattyn4-Jan-11 15:25 
AnswerRe: Drawlines on different levels Pin
Dave Kreskowiak4-Jan-11 6:27
mveDave Kreskowiak4-Jan-11 6:27 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 13:57
AlexB474-Jan-11 13:57 
AnswerRe: Drawlines on different levels [Edit] Pin
Paladin20004-Jan-11 9:44
Paladin20004-Jan-11 9:44 
Drawing a grid on a panel? I just did that a little while ago. Here's a sample that makes a 20-px grid.

private Pen pen = new Pen(Color.FromArgb(60, 60, 60), 1);

private void something_Paint(object sender, PaintEventArgs e)
{
    for (int x = 20; x < Width; x += 20) e.Graphics.DrawLine(pen, x, 0, x, Height);
    for (int y = 20; y < Height; y += 20) e.Graphics.DrawLine(pen, 0, y, Width, y);
}


[Edit]: Moved Pen object out of method.
GeneralRe: Drawlines on different levels Pin
Dave Kreskowiak4-Jan-11 10:24
mveDave Kreskowiak4-Jan-11 10:24 
GeneralRe: Drawlines on different levels Pin
Paladin20004-Jan-11 10:51
Paladin20004-Jan-11 10:51 
GeneralRe: Drawlines on different levels Pin
AlexB474-Jan-11 13:58
AlexB474-Jan-11 13:58 
Questionhelp with realization Pin
polycom1234-Jan-11 4:54
polycom1234-Jan-11 4:54 
AnswerRe: help with realization Pin
Luc Pattyn4-Jan-11 5:00
sitebuilderLuc Pattyn4-Jan-11 5:00 
GeneralRe: help with realization Pin
polycom1234-Jan-11 18:38
polycom1234-Jan-11 18:38 
Questionhow to pass parameters and values with function name in url? Pin
roebuck-code3-Jan-11 22:17
roebuck-code3-Jan-11 22:17 
AnswerRe: how to pass parameters and values with function name in url? PinPopular
Keith Barrow4-Jan-11 0:22
professionalKeith Barrow4-Jan-11 0:22 
GeneralRe: how to pass parameters and values with function name in url? Pin
Dalek Dave4-Jan-11 0:59
professionalDalek Dave4-Jan-11 0:59 
GeneralRe: how to pass parameters and values with function name in url? Pin
roebuck-code4-Jan-11 2:31
roebuck-code4-Jan-11 2:31 
GeneralRe: how to pass parameters and values with function name in url? Pin
Keith Barrow4-Jan-11 3:01
professionalKeith Barrow4-Jan-11 3:01 
GeneralRe: how to pass parameters and values with function name in url? Pin
fjdiewornncalwe4-Jan-11 3:28
professionalfjdiewornncalwe4-Jan-11 3:28 
AnswerRe: how to pass parameters and values with function name in url? Pin
Not Active4-Jan-11 2:34
mentorNot Active4-Jan-11 2:34 
GeneralRe: how to pass parameters and values with function name in url? Pin
roebuck-code4-Jan-11 3:16
roebuck-code4-Jan-11 3:16 
GeneralRe: how to pass parameters and values with function name in url? [modified] Pin
Manfred Rudolf Bihy4-Jan-11 4:21
professionalManfred Rudolf Bihy4-Jan-11 4:21 
GeneralRe: how to pass parameters and values with function name in url? Pin
roebuck-code4-Jan-11 19:57
roebuck-code4-Jan-11 19:57 
GeneralRe: how to pass parameters and values with function name in url? Pin
Manfred Rudolf Bihy5-Jan-11 1:49
professionalManfred Rudolf Bihy5-Jan-11 1:49 

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.