blah blah blah is here! blah blah » Close

0
votes
2 answers

Serial Port and Threads.....

GlennP
215

Hi All, Quick Yes or No question does the Serial Port class generate seperate threads if you are using mulltiple instances of it or does it all exist in the same thread? Glenn

1
votes
1 answers

Background Worker Thread, help!

GlennP
215

Hi Guys, This is linked to a post yesterday about getting a form to respond when it doing other things and looses focus. If I create a seperate thread like [code] Thread StopButtonPressed = new Thread(new ThreadStart (btnStop_Click( ...

1
votes
1 answers

When other processes are happening need to check a button has been clicked?

GlennP
215

Hi Guys, I have several things happening on a form, I have now to add a stop button. This button must take precesednce over every thing that is going on and stop the routines that are going on dead. The form is out of focus while these ...

1
votes
1 answers

C# Hyper Terminal Like comms

GlennP
215

Hi All, I am working on a bit of software I wrote for Serial Comms I now want an option to allow for the input to read straight out like HyperTerminal did i.e. press 'a' an a is sent out of the port. The software I wrote sends out comple ...

0
votes
1 answers

C# Com port send data as typed???

GlennP
215

and probably dirty method) of doing this in C# is there? Glenn

0
votes
1 answers

App keeps crashing.....

GlennP
215

Hi All, I am in the process of writing a programming and test rig for some boards and have noticed an oddity. Some boards have been presumably damaged and when I try to test them the program hangs. My thought was well it can't open the ...

1
votes
3 answers

Exiting a C# program....

GlennP
215

Hi All Does Application.Exit(); kill of a program cleanly. I ask as this is what I have done up to now and up unitl now it has worked, the program I am currently writing is bigger a slightly more complex (7 serial ports, 2 Dll's etc). W ...

0
votes
1 answers

Stopping a C# program with a button click

GlennP
215

Hi In Vis Studio 2008 C# is there a method of making a button have prioity over the rest there was I remember a method in VB6. What I'm after is a loop (or maybe a timer) running that checks every second or so to see if the button ha ...

0
votes
1 answers

Using the DataReceved Event on more than one Serial Port....

GlennP
215

Hi All, I have an issue I want to use the serial ports DataRecieved Event to over 6 six serial ports, I in the past only have used it on one. The procedure of defining and attaching them I know what I'm not sure of is [code] publi ...

0
votes
1 answers

Will Application.DoEvents() get me out of a hole??

GlennP
215

Hi, The continuing saga of the Auto Test Rig. It appears that the program runs and will occasionally lock up. Bearing in mind the comms routines I am being made to use are designed to be uninteruptable I think some of the back ground task ...

0
votes
1 answers

I might have asked this before but...

GlennP
215

Hi All, I think this is a question I tacked onto a previous one but here goes. I remember in VB6 there was a way to ensure a button was always clickable from the ide, I'm guessing there is a way of doing the same in Visual C# 2008. I t ...

0
votes
1 answers

Timers Event Handlers and other issues....

GlennP
215

Hi, This is related to a previous post regauding Serial Port issues "Do I need a custom event handler or would a timer do?". It appears that the clunky way of doing serial comms that I am using there will work for a time and th ...

0
votes
1 answers

Do I need a custom event handler or would a timer do?

GlennP
215

Hi, The below code shows the way I am being told to Serial Comms (I think that polling to see if an event has happened would be better but....). Then problem I have is that the program appears to get stuck at the point [code] while (R ...

0
votes
3 answers

Form1.ActiveForm.Update() causing an exception????

GlennP
215

Hi, Debugging a program I have come across an oddity I think. When an exception is thrown I have always used the line number it gives back to navigate to it and fix it but this time it appears to be Form1.ActiveForm.Update() that is cas ...

0
votes
2 answers

Button Click Priority

GlennP
215

Hi, I have an application running using serial comms & timers etc. I need a stop now button. At the moment I am using a standard button which when clicked gets over taken by other events. Is there a way changing the order which the b ...

Feedback