Click here to Skip to main content
15,915,752 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Window is slow to instantiate - only on some machines Pin
dBrong3-Apr-09 15:12
dBrong3-Apr-09 15:12 
GeneralRe: Window is slow to instantiate - only on some machines Pin
Christian Graus3-Apr-09 23:20
protectorChristian Graus3-Apr-09 23:20 
AnswerRe: Window is slow to instantiate - only on some machines Pin
Luc Pattyn3-Apr-09 14:51
sitebuilderLuc Pattyn3-Apr-09 14:51 
GeneralRe: Window is slow to instantiate - only on some machines Pin
dBrong3-Apr-09 15:15
dBrong3-Apr-09 15:15 
GeneralRe: Window is slow to instantiate - only on some machines Pin
Luc Pattyn3-Apr-09 15:49
sitebuilderLuc Pattyn3-Apr-09 15:49 
QuestionHex and Ascii issue converting back and forth from text and ascii Pin
Cory Kimble3-Apr-09 4:37
Cory Kimble3-Apr-09 4:37 
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 

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.