|
Maybe crimp the cable a little.
|
|
|
|
|
Amazing.
The drivers for UARTS SOMETIMES tell the truth, and SOMETIMES tell lies.
A bluetooth adapter plugged into a USB port will tell the system that the max speed is 115200
If you set the baud rate to 1200 (just to make sure, that's "twelve hundred", I didn't leave out a zero) the real speed will still be 921600.
In fact, C# and windows will not allow you to set a rate above 115200. No matter what port speed you set, you will still get data at 921600.
The drivers for this FTDI USB UART produce different observed behavior. Don't understand it, but for whatever reason, I AM able to place the number 921600 as the speed when accessing the wired UART using FTDI's cables, but NOT able to do this with a bluetooth adapter.
All the while, they will both have, evidently, the same speed.
Anyone who does not understand this is just not Hi-Tech
|
|
|
|
|
|
I ain't gonna download anything from mediafire.
|
|
|
|
|
The best wayy of getting an answer is to ask the author of the article directly by posting a message at the bottom of the article.
|
|
|
|
|
The problem that he didn't answered any Since 2011
Anyway could i do to help me with it ?!
than mediafire ?!
|
|
|
|
|
Post a question in the Q & A section, including the code where the error occurs and a brief description of what you have tried yet.
|
|
|
|
|
how can i make a double click event in listview??
i want when i make a double click event in a row in listview i want to appear another form with a listview that displays the row that i make doubleclick with more details about this row.
how can i make this ???
|
|
|
|
|
What does "with access" mean? Are you using MS-Access as a database?
zebra88 wrote: i want when i make a double click event in a row in listview
You hook the DoubleClick[^] event of the ListView . Create a form to show the details (using labels and textboxes) and call ShowDialog on that form.
If you're not sure on how to hook an event, you'd better start with a good introductionary book on C#.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Get a good book; the code to write/read to/from a database is more complex than hooking an event to a control.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi All,
I just have a quick query, I am reasonably new to C#.
My program currently reads a text file and compares it with the value in a text box and then tells me how many matches, this currently works.
My query is that it is case sensitive. Is there any way to make it so it doesn't matter whether it is in upper or lower case?
Any help will be much appreciated!
Many thanks,
Katie.
This is my code:
if (!String.IsNullOrEmpty(CustodianEAddress.Text))
{
for (AddressLength1 = 0; AddressLength1 < Length; AddressLength1++)
{
List<string> list1 = new List<string>();
using (StreamReader reader = new StreamReader(FileLocation))
{
string line1;
string[] LineArray1 = new string[500];
while ((line1 = reader.ReadLine()) != null)
{
list1.Add(line1);
if (line1.IndexOf(cust1[AddressLength1].ToString()) != -1)
{
count1++;
LineArray1[count1] = line1;
}
}
reader.Close();
using (System.IO.StreamWriter filed =
new System.IO.StreamWriter(FileLocation, true))
{
filed.WriteLine("");
filed.WriteLine("The email address " +
cust1[AddressLength1].ToString() + " was found " + count1 +
" times within the recipient's inbox");
}
string count1a;
count1a = count1.ToString();
}
}
}
else
{
MessageBox.Show("Please Enter an Email Address");
}
So basically, I need to compare the value in cust1[AddressLength1] with any values found in an array which is in the text file.
modified 18-Mar-13 14:04pm.
|
|
|
|
|
Read this[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hey I've just posted my code, hopefully that helps!
I had a look at the link and the problem is I'm looking within an array as opposed of comparing against a single string.
Many thanks,
Katie.
|
|
|
|
|
Easiest way is probably to use a regex:
string inp = File.ReadAllText(@"D:\Temp\MyText.txt");
string match = "FindMe";
int count = Regex.Matches(inp, match, RegexOptions.IgnoreCase).Count; This has the advantage that the user can use regex wildcards for more complex jobs if they want.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)
|
|
|
|
|
Hey I've just posted my code, hopefully that helps!
I had a look at the code you posted and the problem is I'm looking within an array as opposed of comparing against a single string.
Many thanks,
Katie.
|
|
|
|
|
Try using the IndexOf(string, StringComparison)[^] method:
if (line1.IndexOf(cust1[AddressLength1].ToString(), StringComparison.OrdinalIgnoreCase) != -1)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
First, the IndexOf() method has an overload that takes a StringComparison enumeration value, so you could just add the second parameter StringComparison.OrdinalIgnoreCase (or .CurrentCultureIgnoreCase or .InvariantCultureIgnoreCase , as appropriate).
However, this code is a bit strange...
Are you really writing the message to the same file you are scanning?
If not, it appears you are doing potentially a lot of extra work (e.g., reading the inbox(?) file multiple times).
How about something like this:
if (!String.IsNullOrEmpty(CustodianEAddressText))
{
List<string> list1 = new List<string>();
using (StreamReader reader = new StreamReader(FileLocation))
{
string line1;
while ((line1 = reader.ReadLine()) != null)
{
list1.Add(line1);
}
}
for (AddressLength1 = 0; AddressLength1 < Length; AddressLength1++)
{
string cust1AddrLen1 = cust1[AddressLength1].ToString();
count1 = list1.Count(l => l.IndexOf(cust1AddrLen1, StringComparison.OrdinalIgnoreCase) != -1);
string[] LineArray1 = (from line in list1
where line.IndexOf(cust1AddrLen1, StringComparison.OrdinalIgnoreCase) != -1
select line).ToArray();
count1 = LineArray1.Length;
string count1a = count1.ToString();
using (StreamWriter filed = new StreamWriter(FileLocation, true))
{
filed.WriteLine();
filed.WriteLine("The email address {0} was found {1} times within the recipient's inbox", cust1AddrLen1, count1a);
}
}
}
else
{
MessageBox.Show("Please Enter an Email Address");
}
|
|
|
|
|
hi
I am a beginner, i want to build an application in C# to send an sms to multiple numbers without using an sms gateway, i want to use my internet connection to send sms and access 2007 to store sms and other details. if someone can help then please help.
regards,
Arif Aqeel
|
|
|
|
|
Arif_Aqeel wrote: I am a beginner, i want to build an application in C# to send an sms to multiple numbers without using an sms gateway, i want to use my internet connection to send sms and access 2007 to store sms and other details.
This goal is clearly too high for a beginner. Start from scratch and do easy stuff to get to harder stuff. An address management with access as database would be a good start.
|
|
|
|
|
|
|
IDK but can it somehow be possible that you have forgot to actually ask a question?
ProTip: Use the Edit-Button under your post to add an actual question.
|
|
|
|
|
The OP has really cheered up my day. Finally post that literally doesn't have a question, or even an attempt at one. Not even an "itz urgentz plz help" plea. Almost zen-like in depth-through-simplicity.
|
|
|
|
|