Click here to Skip to main content
15,916,379 members
Home / Discussions / C#
   

C#

 
Questionlooping through variables whose names start with... Pin
LordZoster10-Jan-09 4:19
LordZoster10-Jan-09 4:19 
AnswerRe: looping through variables whose names start with... Pin
LordZoster10-Jan-09 4:32
LordZoster10-Jan-09 4:32 
GeneralRe: looping through variables whose names start with... Pin
Luc Pattyn10-Jan-09 5:03
sitebuilderLuc Pattyn10-Jan-09 5:03 
QuestionHow to write log file directly without annoying virtual memory Pin
vantoora10-Jan-09 2:38
vantoora10-Jan-09 2:38 
AnswerRe: How to write log file directly without annoying virtual memory Pin
Dave Kreskowiak10-Jan-09 2:49
mveDave Kreskowiak10-Jan-09 2:49 
GeneralRe: How to write log file directly without annoying virtual memory Pin
Luc Pattyn10-Jan-09 2:58
sitebuilderLuc Pattyn10-Jan-09 2:58 
GeneralRe: How to write log file directly without annoying virtual memory Pin
vantoora10-Jan-09 3:20
vantoora10-Jan-09 3:20 
GeneralRe: How to write log file directly without annoying virtual memory Pin
Luc Pattyn10-Jan-09 3:44
sitebuilderLuc Pattyn10-Jan-09 3:44 
GeneralRe: How to write log file directly without annoying virtual memory Pin
vantoora10-Jan-09 4:04
vantoora10-Jan-09 4:04 
QuestionUpdate TextBox from second Form Pin
wi5nia10-Jan-09 2:02
wi5nia10-Jan-09 2:02 
AnswerRe: Update TextBox from second Form Pin
Jason C Bourne10-Jan-09 2:11
Jason C Bourne10-Jan-09 2:11 
GeneralRe: Update TextBox from second Form Pin
DaveyM6910-Jan-09 6:38
professionalDaveyM6910-Jan-09 6:38 
GeneralRe: Update TextBox from second Form Pin
Jason C Bourne11-Jan-09 1:44
Jason C Bourne11-Jan-09 1:44 
AnswerRe: Update TextBox from second Form Pin
DaveyM6910-Jan-09 6:21
professionalDaveyM6910-Jan-09 6:21 
QuestionWord Search Style Game Pin
VinceAshbySmith10-Jan-09 1:21
VinceAshbySmith10-Jan-09 1:21 
AnswerRe: Word Search Style Game Pin
Eddy Vluggen10-Jan-09 1:42
professionalEddy Vluggen10-Jan-09 1:42 
You can draw text using the .DrawString method. That would go in the _Paint handler;
// Draw cells on grid
int cellRow = 0;
while (cellRow < this.maxRow)
{
    int cellCol = 0;
    while (cellCol < this.maxCol)
    {
        if (this.cellSelected[cellCol, cellRow] == true)
        {
            this.customColor = Color.FromArgb(100, 100, 100);

            SolidBrush myBrush = new SolidBrush(customColor);
            gfx.FillRectangle(myBrush, (cellCol * this.squareSize) + 1, (cellRow * this.squareSize) + 1, this.squareSize - 1, this.squareSize - 1);
            gfx.DrawString("X", this.Font, Brushes.Wheat, new Point(cellCol * this.squareSize, cellRow * this.squareSize));
            myBrush.Dispose();
        }
        else
        {   // Cell is not selected
            gfx.DrawString("X", this.Font, Brushes.Green, new Point(cellCol * this.squareSize, cellRow * this.squareSize));
        }
        cellCol++;
    }
    cellRow++;


I are troll Smile | :)

GeneralRe: Word Search Style Game Pin
VinceAshbySmith10-Jan-09 2:06
VinceAshbySmith10-Jan-09 2:06 
GeneralRe: Word Search Style Game Pin
Jason C Bourne10-Jan-09 2:15
Jason C Bourne10-Jan-09 2:15 
GeneralRe: Word Search Style Game Pin
VinceAshbySmith10-Jan-09 2:30
VinceAshbySmith10-Jan-09 2:30 
GeneralRe: Word Search Style Game Pin
Jason C Bourne10-Jan-09 3:47
Jason C Bourne10-Jan-09 3:47 
GeneralRe: Word Search Style Game Pin
VinceAshbySmith10-Jan-09 5:01
VinceAshbySmith10-Jan-09 5:01 
GeneralRe: Word Search Style Game Pin
Jason C Bourne11-Jan-09 1:47
Jason C Bourne11-Jan-09 1:47 
GeneralRe: Word Search Style Game Pin
VinceAshbySmith11-Jan-09 10:50
VinceAshbySmith11-Jan-09 10:50 
GeneralRe: Word Search Style Game Pin
Eddy Vluggen10-Jan-09 9:23
professionalEddy Vluggen10-Jan-09 9:23 
AnswerRe: Word Search Style Game Pin
Jason C Bourne10-Jan-09 1:42
Jason C Bourne10-Jan-09 1: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.