Click here to Skip to main content
15,901,853 members
Home / Discussions / C#
   

C#

 
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 
QuestionHow ENQ command is sent to serial port Pin
Member 465172910-Jan-09 0:19
Member 465172910-Jan-09 0:19 
AnswerRe: How ENQ command is sent to serial port Pin
Luc Pattyn10-Jan-09 1:47
sitebuilderLuc Pattyn10-Jan-09 1:47 
AnswerRe: How ENQ command is sent to serial port Pin
Member 465172910-Jan-09 2:43
Member 465172910-Jan-09 2:43 
GeneralRe: How ENQ command is sent to serial port Pin
Member 465172910-Jan-09 2:57
Member 465172910-Jan-09 2:57 
GeneralRe: How ENQ command is sent to serial port Pin
Luc Pattyn10-Jan-09 3:02
sitebuilderLuc Pattyn10-Jan-09 3:02 
QuestionChange user controls in runtime using c# Pin
bensonbenadict10-Jan-09 0:11
bensonbenadict10-Jan-09 0:11 
AnswerRe: Change user controls in runtime using c# (ASP.Net Question ) Pin
Abhijit Jana10-Jan-09 0:15
professionalAbhijit Jana10-Jan-09 0:15 
GeneralRe: Change user controls in runtime using c# (ASP.Net Question ) Pin
sudhanvag10-Jan-09 4:40
sudhanvag10-Jan-09 4:40 

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.