[Message Deleted]
-
Use Green color. It would be as per the standards.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
-
hi In windows application I am using a button and serial port in button the control is like a power ON/OFF switch which should change the color if its clicked. ie., when first click is ON the color is red and second click OFF Blue. And it should send a value to serial port for ON "A", For OFF "a". i need the code. for above application
-
hi In windows application I am using a button and serial port in button the control is like a power ON/OFF switch which should change the color if its clicked. ie., when first click is ON the color is red and second click OFF Blue. And it should send a value to serial port for ON "A", For OFF "a". i need the code. for above application
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.
-
Mads115 wrote:
i need the code. for above application
Start typing - we help, we tutor, we suggest research lines, we don't do your work for you!
Never underestimate the power of human stupidity RAH