Click here to Skip to main content
15,880,469 members
Home / Discussions / C#
   

C#

 
Questionimprove speed of DataGridView CellFormatting event Pin
justeena.paul29-Apr-09 23:23
justeena.paul29-Apr-09 23:23 
AnswerRe: improve speed of DataGridView CellFormatting event Pin
Mycroft Holmes30-Apr-09 0:25
professionalMycroft Holmes30-Apr-09 0:25 
AnswerRe: improve speed of DataGridView CellFormatting event Pin
Henry Minute30-Apr-09 0:35
Henry Minute30-Apr-09 0:35 
AnswerRe: improve speed of DataGridView CellFormatting event Pin
ATCsharp30-Apr-09 2:41
ATCsharp30-Apr-09 2:41 
Question[Message Deleted] Pin
Mads11529-Apr-09 22:59
Mads11529-Apr-09 22:59 
AnswerRe: Mouse Events in windows application C# Pin
musefan29-Apr-09 23:01
musefan29-Apr-09 23:01 
GeneralRe: Mouse Events in windows application C# Pin
Mads11529-Apr-09 23:19
Mads11529-Apr-09 23:19 
GeneralRe: Mouse Events in windows application C# Pin
musefan29-Apr-09 23:27
musefan29-Apr-09 23:27 
so have a bool assign to false.

then in your button click...

isOn = !isOn;
if(isOn)
{
   button.BackColor = Color.Red;//or something
   //code to send 'A' to port
}
else
{
   button.BackColor = Color.Blue;//or something
   //code to send 'a' to port
}


Life goes very fast. Tomorrow, today is already yesterday.

AnswerRe: Mouse Events in windows application C# Pin
Spunky Coder29-Apr-09 23:08
Spunky Coder29-Apr-09 23:08 
AnswerRe: Mouse Events in windows application C# Pin
Mycroft Holmes30-Apr-09 0:24
professionalMycroft Holmes30-Apr-09 0:24 
QuestionHow to select a specific cell? Pin
Saiyed Alam29-Apr-09 22:39
Saiyed Alam29-Apr-09 22:39 
AnswerRe: How to select a specific cell? Pin
Mycroft Holmes29-Apr-09 22:45
professionalMycroft Holmes29-Apr-09 22:45 
AnswerRe: How to select a specific cell? Pin
NickPace30-Apr-09 4:28
NickPace30-Apr-09 4:28 
QuestionSplit text file by Fixed Length Pin
yueru29-Apr-09 21:48
yueru29-Apr-09 21:48 
AnswerRe: Split text file by Fixed Length Pin
musefan29-Apr-09 21:54
musefan29-Apr-09 21:54 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 22:04
yueru29-Apr-09 22:04 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 22:10
musefan29-Apr-09 22:10 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 22:40
yueru29-Apr-09 22:40 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 22:46
musefan29-Apr-09 22:46 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 23:16
yueru29-Apr-09 23:16 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 23:28
musefan29-Apr-09 23:28 
GeneralRe: Split text file by Fixed Length Pin
yueru29-Apr-09 23:41
yueru29-Apr-09 23:41 
GeneralRe: Split text file by Fixed Length Pin
musefan29-Apr-09 23:56
musefan29-Apr-09 23:56 
GeneralRe: Split text file by Fixed Length [modified] Pin
yueru30-Apr-09 0:09
yueru30-Apr-09 0:09 
GeneralRe: Split text file by Fixed Length Pin
musefan30-Apr-09 0:36
musefan30-Apr-09 0:36 

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.