Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:13
anuo0619-Jun-07 8:13 
QuestionNeed GUI help, to child or not child? Pin
Skcheng19-Jun-07 6:07
Skcheng19-Jun-07 6:07 
AnswerRe: Need GUI help, to child or not child? Pin
Luc Pattyn19-Jun-07 6:16
sitebuilderLuc Pattyn19-Jun-07 6:16 
QuestionRe: Need GUI help, to child or not child? Pin
Skcheng19-Jun-07 6:59
Skcheng19-Jun-07 6:59 
AnswerRe: Need GUI help, to child or not child? Pin
Luc Pattyn19-Jun-07 7:39
sitebuilderLuc Pattyn19-Jun-07 7:39 
GeneralRe: Need GUI help, to child or not child? Pin
Skcheng19-Jun-07 8:11
Skcheng19-Jun-07 8:11 
AnswerRe: Need GUI help, to child or not child? Pin
Jon Hulatt19-Jun-07 10:18
Jon Hulatt19-Jun-07 10:18 
Questionattach serial command to button [modified] Pin
dirtylarry19-Jun-07 6:06
dirtylarry19-Jun-07 6:06 
how do you attach a serial command to a button in c#?

i have a lutron rs232 controller for my lights, and i want to know how you attach an on/off command to it.


this is what i have
private void button1_Click(object sender, EventArgs e)
{
SerialPort port = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);
port.Open();
port.Write("SDL,1,0") //just an example, "Set Dimmer Level, zone 1, 0 for off"
port.Close();

}


now the (SDL,1,0) i've put a "/r/n" as well, but i get no response.

i read that serial article for c#, but i'm confused to how you would use it. can someone n00b it up for me?





-- modified at 13:32 Tuesday 19th June, 2007
AnswerRe: attach serial command to button Pin
dirtylarry20-Jun-07 12:57
dirtylarry20-Jun-07 12:57 
Questionno value returned Pin
arkiboys19-Jun-07 6:05
arkiboys19-Jun-07 6:05 
AnswerRe: no value returned Pin
Jimmanuel19-Jun-07 6:54
Jimmanuel19-Jun-07 6:54 
GeneralSorted collection with alternate sort key Pin
Brady Kelly19-Jun-07 5:24
Brady Kelly19-Jun-07 5:24 
GeneralRe: Sorted collection with alternate sort key Pin
originSH19-Jun-07 5:44
originSH19-Jun-07 5:44 
QuestionGrey Scale Image error?? Pin
Software_Specialist19-Jun-07 5:04
Software_Specialist19-Jun-07 5:04 
AnswerRe: Grey Scale Image error?? Pin
Giorgi Dalakishvili19-Jun-07 5:20
mentorGiorgi Dalakishvili19-Jun-07 5:20 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist19-Jun-07 5:30
Software_Specialist19-Jun-07 5:30 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn19-Jun-07 5:40
sitebuilderLuc Pattyn19-Jun-07 5:40 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist19-Jun-07 5:57
Software_Specialist19-Jun-07 5:57 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn19-Jun-07 6:08
sitebuilderLuc Pattyn19-Jun-07 6:08 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist21-Jun-07 4:46
Software_Specialist21-Jun-07 4:46 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn21-Jun-07 5:02
sitebuilderLuc Pattyn21-Jun-07 5:02 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist21-Jun-07 5:07
Software_Specialist21-Jun-07 5:07 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn21-Jun-07 5:22
sitebuilderLuc Pattyn21-Jun-07 5:22 
GeneralRe: Grey Scale Image error?? Pin
Software_Specialist21-Jun-07 5:30
Software_Specialist21-Jun-07 5:30 
GeneralRe: Grey Scale Image error?? Pin
Luc Pattyn21-Jun-07 5:48
sitebuilderLuc Pattyn21-Jun-07 5:48 

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.