Click here to Skip to main content
15,894,182 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 9:17
protectorAspDotNetDev16-Mar-10 9:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 9:23
sitebuilderLuc Pattyn16-Mar-10 9:23 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 10:17
protectorAspDotNetDev16-Mar-10 10:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 10:27
sitebuilderLuc Pattyn16-Mar-10 10:27 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 11:29
protectorAspDotNetDev16-Mar-10 11:29 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 11:38
sitebuilderLuc Pattyn16-Mar-10 11:38 
Questionc# picture grid and pixel Pin
antrock10116-Mar-10 6:32
antrock10116-Mar-10 6:32 
AnswerRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 6:44
sitebuilderLuc Pattyn16-Mar-10 6:44 
I'm unaware of any grid function, other than some Grid Controls which show tabular data.

showing a grid on top of an image can be accomplished easily with some code along these lines, using a Panel and assuming the image fits within the screen bounds:
public void myPanel_Paint(object sender, PaintEventArgs e) {
    Graphics g=e.Graphics;
    g.DrawImage(myImage, 0, 0);
    int w=myImage.Width;
    int h=myImage.Height;
    int GRIDSTEP=20;
    for (int x=0; x<w; x+=GRIDSTEP) g.DrawLine(Pens.Yellow, x, 0, x, h);
    for (int y=0; y<h; y+=GRIDSTEP) g.DrawLine(Pens.Yellow, 0, y, w, y);
}


Alternatively, you could use an overload of DrawImage to get the image scaled if necessary;
note that I didn't use a PictureBox as I don't like them much.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: c# picture grid and pixel Pin
antrock10116-Mar-10 7:45
antrock10116-Mar-10 7:45 
GeneralRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 7:52
sitebuilderLuc Pattyn16-Mar-10 7:52 
GeneralRe: c# picture grid and pixel Pin
antrock10116-Mar-10 11:52
antrock10116-Mar-10 11:52 
GeneralRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 12:06
sitebuilderLuc Pattyn16-Mar-10 12:06 
AnswerRe: c# picture grid and pixel Pin
Keith Barrow16-Mar-10 6:47
professionalKeith Barrow16-Mar-10 6:47 
Question[SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 4:34
blackblizzard16-Mar-10 4:34 
AnswerRe: Is reference comparison atomic? Pin
Daniel Grunwald16-Mar-10 4:54
Daniel Grunwald16-Mar-10 4:54 
GeneralRe: Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:00
blackblizzard16-Mar-10 5:00 
AnswerRe: [SOLVED] Is reference comparison atomic? Pin
Sandeep Mewara16-Mar-10 5:03
mveSandeep Mewara16-Mar-10 5:03 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:06
blackblizzard16-Mar-10 5:06 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
Luc Pattyn16-Mar-10 5:38
sitebuilderLuc Pattyn16-Mar-10 5:38 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:43
blackblizzard16-Mar-10 5:43 
Questiondaynamic event handlers.... Pin
Xelalem16-Mar-10 3:12
Xelalem16-Mar-10 3:12 
AnswerRe: daynamic event handlers.... Pin
Keith Barrow16-Mar-10 3:17
professionalKeith Barrow16-Mar-10 3:17 
AnswerRe: daynamic event handlers.... Pin
Pete O'Hanlon16-Mar-10 3:18
mvePete O'Hanlon16-Mar-10 3:18 
GeneralRe: daynamic event handlers.... Pin
Keith Barrow16-Mar-10 3:20
professionalKeith Barrow16-Mar-10 3:20 
GeneralRe: daynamic event handlers.... Pin
Xelalem16-Mar-10 3:39
Xelalem16-Mar-10 3:39 

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.