Click here to Skip to main content
15,885,767 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# WPF - Creating controls based upon SQL results Pin
Richard MacCutchan24-Oct-12 22:11
mveRichard MacCutchan24-Oct-12 22:11 
AnswerRe: C# WPF - Creating controls based upon SQL results Pin
BobJanova24-Oct-12 22:32
BobJanova24-Oct-12 22:32 
GeneralRe: C# WPF - Creating controls based upon SQL results Pin
patrickalexson25-Oct-12 6:03
patrickalexson25-Oct-12 6:03 
QuestionHi All Pin
Saied Ghazal24-Oct-12 13:09
Saied Ghazal24-Oct-12 13:09 
AnswerRe: Hi All Pin
Richard Andrew x6424-Oct-12 16:12
professionalRichard Andrew x6424-Oct-12 16:12 
AnswerRe: Hi All Pin
OriginalGriff24-Oct-12 19:39
mveOriginalGriff24-Oct-12 19:39 
AnswerRe: Hi All Pin
V.24-Oct-12 21:12
professionalV.24-Oct-12 21:12 
QuestionOne 8-Bit Byte Across The Serial Port Pin
C-P-User-324-Oct-12 12:58
C-P-User-324-Oct-12 12:58 
Greetings Members Of Code Project,

Zero Clue King here; eagerly awaiting clueless newbee status.

This is my first post; so apologies offered in advance for any perceived idiocy or ignorance of the prevailing protocols.

The question: I want to click one button, and send one byte across a serial port.

I want to do this in C#

I'm currently reading, "Basic serial port listening application By Amund Gjersøe" from two years ago on another page on this site.

I have my app set up in Visual C# (I think it's 2010) with some buttons, a combo box, and a serial port. Not sure how to post a screen cap, etc.., probably not even needed.

I can open the port, close the port, give it a name, etc.. The moment I try to do anything that has anything to do with the word "write" it seems that C# changes from nice to malicious.

I just want to get a grasp of the elementary concepts behind sending a byte out the serial port.

We'll get into multi-threading and such things later. For now, I would like to focus on the brass tacks of sending one byte out the serial port.

This is the thing that is most confusing to me: I want to send an honest to goodness byte, just 8-bits, and nothing else. It probably will not be ascii text. In fact, I know it won't be for the first several times.

After I get one byte out, I will want to get more fancy and send various combinations. For the moment, just one byte is the goal.

Again, newbee here; don't know one thing from another, so searching is not a polished skill at the moment.

I want to assure any reader that I have indeed searched via Google, Bing, and Yahoo, and MSDN, and YouTube tutorials, and Plan Nine, and everywhere. It appears that SEO has rendered their results as mostly obfuscation these days; desperate to make buck, I guess.

I am astounded that this little task doesn't have several tutorials and code examples floating all around the internet.
AnswerRe: One 8-Bit Byte Across The Serial Port Pin
Dave Kreskowiak24-Oct-12 13:35
mveDave Kreskowiak24-Oct-12 13:35 
GeneralRe: One 8-Bit Byte Across The Serial Port Pin
C-P-User-325-Oct-12 11:51
C-P-User-325-Oct-12 11:51 
GeneralRe: One 8-Bit Byte Across The Serial Port Pin
Dave Kreskowiak26-Oct-12 2:26
mveDave Kreskowiak26-Oct-12 2:26 
GeneralRe: One 8-Bit Byte Across The Serial Port Pin
C-P-User-326-Oct-12 6:23
C-P-User-326-Oct-12 6:23 
GeneralRe: One 8-Bit Byte Across The Serial Port Pin
Dave Kreskowiak26-Oct-12 8:47
mveDave Kreskowiak26-Oct-12 8:47 
AnswerRe: One 8-Bit Byte Across The Serial Port Pin
Gerry Schmitz24-Oct-12 15:19
mveGerry Schmitz24-Oct-12 15:19 
GeneralRe: One 8-Bit Byte Across The Serial Port Pin
C-P-User-330-Oct-12 8:32
C-P-User-330-Oct-12 8:32 
GeneralRe: One 8-Bit Byte Across The Serial Port Pin
Gerry Schmitz30-Oct-12 11:01
mveGerry Schmitz30-Oct-12 11:01 
QuestionC# exe app Pin
Michael Kurdík24-Oct-12 10:10
Michael Kurdík24-Oct-12 10:10 
AnswerRe: C# exe app Pin
Pete O'Hanlon24-Oct-12 10:49
mvePete O'Hanlon24-Oct-12 10:49 
AnswerRe: C# exe app Pin
Abhinav S24-Oct-12 19:58
Abhinav S24-Oct-12 19:58 
QuestionWinforms or WPF Pin
Orjan Westin24-Oct-12 0:09
professionalOrjan Westin24-Oct-12 0:09 
AnswerRe: Winforms or WPF Pin
BobJanova24-Oct-12 0:52
BobJanova24-Oct-12 0:52 
AnswerRe: Winforms or WPF Pin
Pete O'Hanlon24-Oct-12 1:11
mvePete O'Hanlon24-Oct-12 1:11 
GeneralRe: Winforms or WPF Pin
Orjan Westin25-Oct-12 3:25
professionalOrjan Westin25-Oct-12 3:25 
AnswerRe: Winforms or WPF Pin
Eddy Vluggen24-Oct-12 1:18
professionalEddy Vluggen24-Oct-12 1:18 
AnswerRe: Winforms or WPF Pin
V.24-Oct-12 2:42
professionalV.24-Oct-12 2: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.