Search:
Type: Posts; User: ThermoSight
Search:
Search took 0.05 seconds.
-
April 19th, 2011, 06:45 PM
"Could it be that the serial device gets a stray character when the PC boots and that locks up the communication? Maybe the C# application knows how to resolve such a lockup?"
Hi S !
Indeed...
-
April 19th, 2011, 03:30 PM
Hi.
I am working with VS2010 C++, Windows 7 Pro, and a serial device.
The C++ app is unaffected by cycling power on the serial device. However, cycling power on the PC (Windows 7 Pro) causes...
-
April 18th, 2011, 10:59 PM
ho-hum ...
namespace Bozo
{
public partial class Form1 : Form {
StringBuilder bldr = new StringBuilder();
-
April 17th, 2011, 08:08 PM
"... is it safe to assume that when I add an object it will always go at the end, ...
That would be my assumption predicated on the definition found at
...
-
April 17th, 2011, 05:13 PM
Hi Mutant ...
you are correct, Of Course, Sir.
Indeed, after some time away from the desk, I returned a few minutes ago to play with this a bit and found that it seems that values are...
-
April 17th, 2011, 12:49 PM
Perhaps you could use regular expressions, sorta like the following ...
public partial class Form1 : Form
{
ASCIIEncoding e = new ASCIIEncoding();
string...
-
April 14th, 2011, 11:00 PM
Certainly not to belabor the point, but to offer an explanation, the term CCB goes back at least to the IBM System 360 family of machines and RCA's 360-clone, the Spectra 70 series. And it certainly...
-
April 12th, 2011, 10:23 PM
It's quite a coincidence that you should raise this issue just now .... I've been working with C# and C++ since 2006 but just last week and this, I've begun working with the serial port for the very...
-
April 5th, 2011, 10:42 PM
My first thought is to check the lines
if (print == true)
txtResult.Text = line;
}//End while statement
I think it's reading all the lines but each new line overwrites the preceding line. See...
-
April 1st, 2011, 09:45 PM
-
March 31st, 2011, 10:34 PM
Something like the following might get you off to a good start ...
private void button1_Click(object sender, EventArgs e){
string tmp, month, year;
DateTime...
-
March 26th, 2011, 01:34 AM
the following code appears to run OK on my machine (for the unconscionably few test points I tried) ....
// ****************************************
private long...
-
March 25th, 2011, 02:07 PM
In the definition of string placeholder, try changin' the ".ToString" to ".Text". I think what you are doing is converting the control to a string, rather than acquiring the text in the text box.
-
March 24th, 2011, 07:31 PM
I dunno ... works for me as a console application
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
-
March 24th, 2011, 03:03 PM
perhaps something like the following ...
using (StreamWriter writer = new StreamWriter("C:\\256Combinations.txt")) {
foreach (string cat in cats)
...
-
March 24th, 2011, 12:52 PM
The => operator indicates to the compiler that this is a lambda expression.
The empty parentheses to the left of the operator indicates that this lambda expression takes no arguments, while...
-
March 21st, 2011, 06:20 PM
Binaries are both useless and unsafe If there's a bug a description and the relevant code snippet should be plenty to diagnose the issue.
yeah, I gotta admit that you make some good points,...
-
March 21st, 2011, 03:59 PM
Boy, you sure keep your cards close to the vest ... you don't offer a lot of information.
You've hit the Trifecta !
1. You don't describe the problem(s) you're having.
2. Aside from "//end of...
-
March 21st, 2011, 02:57 PM
Regex("^\\s*(?<firstName>[a-zA-Z]+)");
There are two components to this Regex string: the match and the capture
The string above asks the Regex engine to find a match for a series of...
-
March 21st, 2011, 01:14 PM
In the case where the names do NOT change order, then we're good.
That Regex definition is a "capture". It essentially asks the engine to skip over any leading spaces it sees, then begin...
-
March 21st, 2011, 12:39 PM
Hmmm, I see ...
you're saying that the first and last names may change position within "nameString" ?
So in one case I might be looking at names like "Steve Jensen" and then in another case I'd...
-
March 21st, 2011, 12:04 PM
Perhaps it would be possible to eliminate the FOR loop and just use a regular expression to take what you want ...
Regex firstNameBasis = new Regex("^\\s*(?<firstName>\\w+)");
...
-
March 21st, 2011, 11:45 AM
I would think that if the constructor is private, then no non-member could access the constructor. However, class members including static members would still be able to do so.
so one might build...
-
March 20th, 2011, 11:00 PM
I dunno ... maybe sumthin' like
bool ln = !string.IsNullOrEmpty(LastNameTextBox.Text);
Actually, there's a wealth of information available to you via the VS Help section. Just click on the...
-
March 20th, 2011, 02:40 PM
how about the Timespan struct ... have you considered that ? might work for ya.
string[] time1, time2;
string result;
|
Click Here to Expand Forum to Full Width
|