Click here to Skip to main content
15,894,405 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Luc Pattyn3-Apr-09 5:05
sitebuilderLuc Pattyn3-Apr-09 5:05 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 5:55
Cory Kimble3-Apr-09 5:55 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Luc Pattyn3-Apr-09 6:48
sitebuilderLuc Pattyn3-Apr-09 6:48 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 9:33
Cory Kimble3-Apr-09 9:33 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Luc Pattyn3-Apr-09 10:05
sitebuilderLuc Pattyn3-Apr-09 10:05 
GeneralRe: Hex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 10:55
Cory Kimble3-Apr-09 10:55 
QuestionSaveFileDialog with Serialport Pin
Quin Nee3-Apr-09 1:39
Quin Nee3-Apr-09 1:39 
AnswerRe: SaveFileDialog with Serialport Pin
Luc Pattyn3-Apr-09 3:27
sitebuilderLuc Pattyn3-Apr-09 3:27 
Hi,

the SerialPort.DataReceived event runs on a separate thread since it is asynchronous to anything you are doing; as such you are not allowed to touch any Control (including Forms, dialogs, and SaveFileDialog object) unless you use the proper InvokeRequired/Invoke method.

Also it does not seem like a good idea to interact with the user from within the DataReceived event, since more data will be arriving while you are waiting for the user's reaction.

Furthermore, the SaveFileDialog is *not* for saving data to a file, it is intended for letting the user *choose* a filename. When you need several file names, you probably want an algorithm to generate a series of filenames (say test###.log where ### is a sequence number)

What you should do is collect the data as it comes in, using whatever means appropriate (maybe a List<string> or a List<byte[]> depending on whether you accept text or arbitrary bytes); and in a different part of your app process or save the data, and interact with the user if and when necessary.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


Questionproblem in overwriting the previous setup Pin
Pankaj Garg3-Apr-09 0:47
Pankaj Garg3-Apr-09 0:47 
AnswerRe: problem in overwriting the previous setup Pin
Tom Deketelaere3-Apr-09 1:47
professionalTom Deketelaere3-Apr-09 1:47 
QuestionCan only delete numbers in access database Pin
hendrikbez2-Apr-09 22:05
hendrikbez2-Apr-09 22:05 
AnswerRe: Can only delete numbers in access database Pin
Jay Royall2-Apr-09 22:20
Jay Royall2-Apr-09 22:20 
GeneralRe: Can only delete numbers in access database Pin
hendrikbez2-Apr-09 22:29
hendrikbez2-Apr-09 22:29 
GeneralRe: Can only delete numbers in access database Pin
Jay Royall2-Apr-09 22:47
Jay Royall2-Apr-09 22:47 
GeneralRe: Can only delete numbers in access database Pin
JC.KaNNaN3-Apr-09 20:57
JC.KaNNaN3-Apr-09 20:57 
AnswerRe: Can only delete numbers in access database Pin
Tom Deketelaere2-Apr-09 22:49
professionalTom Deketelaere2-Apr-09 22:49 
QuestionData transfer in SAP through VB Pin
yog21122-Apr-09 19:25
yog21122-Apr-09 19:25 
AnswerRe: Data transfer in SAP through VB Pin
Tom Deketelaere2-Apr-09 21:53
professionalTom Deketelaere2-Apr-09 21:53 
GeneralRe: Data transfer in SAP through VB Pin
Jon_Boy3-Apr-09 2:25
Jon_Boy3-Apr-09 2:25 
QuestionMultiple timers accessing single class Pin
Doug.Aliff2-Apr-09 16:10
Doug.Aliff2-Apr-09 16:10 
AnswerRe: Multiple timers accessing single class Pin
Tom Deketelaere2-Apr-09 21:48
professionalTom Deketelaere2-Apr-09 21:48 
AnswerRe: Multiple timers accessing single class Pin
Mycroft Holmes2-Apr-09 22:04
professionalMycroft Holmes2-Apr-09 22:04 
GeneralRe: Multiple timers accessing single class Pin
Eddy Vluggen2-Apr-09 22:20
professionalEddy Vluggen2-Apr-09 22:20 
GeneralRe: Multiple timers accessing single class Pin
Jon_Boy3-Apr-09 2:23
Jon_Boy3-Apr-09 2:23 
AnswerRe: Multiple timers accessing single class Pin
Dave Kreskowiak3-Apr-09 9:26
mveDave Kreskowiak3-Apr-09 9:26 

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.