How do I count the number of letters in a textbox using c#?
I specifically need the exact number of letters. example alabama has 7 letters.
after i get that number i need the number of times each letter is used. example mississippi has 1m 4 i's 4 s's and 2 p's.
thanks for interest.
Search found 16 matches
- Fri May 15, 2009 11:07 am
- Forum: Programming Discussion
- Topic: How do I count the number of letters in a textbox using c#?
- Replies: 1
- Views: 304
- Mon Apr 27, 2009 10:19 am
- Forum: Programming Discussion
- Topic: C# Check if a user typed a number into a textbox.
- Replies: 4
- Views: 686
Re: C# Check if a user typed a number into a textbox.
if(IsNumeric(textBox1.Text) == true) { // your convert code goes here } else { // your error message goes here } put something like "please input number" where the your error message goes where comment is at. snippet made by the great edward. I take no credit. :) actually..that's not corr...
- Fri Apr 10, 2009 6:23 pm
- Forum: Programming Discussion
- Topic: What does this c# code do?
- Replies: 2
- Views: 509
What does this c# code do?
public bool IsNumeric(string s) { try { Double.Parse(s); } catch { return (false); } return (true); } why is it useful? my programs work without it. But my class project tutorials always tell me to put it in.
- Tue Apr 07, 2009 2:40 pm
- Forum: General/Off-Topic
- Topic: my schedule for next semester.
- Replies: 7
- Views: 599
Re: my schedule for next semester.
0_o What the hell major are you? And how did they let you into discrete structures if you're still doing algebra? XD My major is computer science with a emphasis on object oriented programming my minor is math (I just declared it the other day though). Im getting a bachelor of arts and then im movi...
- Mon Apr 06, 2009 12:34 am
- Forum: General/Off-Topic
- Topic: my schedule for next semester.
- Replies: 7
- Views: 599
my schedule for next semester.
college algebra 3 hours a week (should be easy since I already passed discrete structures..) structured programming fundamentals 3 hours a week freshman seminar 1 hour a week( this will be my second semester but I skipped freshman seminar this semester.) Japanese 4 hours a week ( I need this because...
- Sun Apr 05, 2009 3:08 pm
- Forum: General/Off-Topic
- Topic: I CAN HAS eBAY? LOL!
- Replies: 4
- Views: 786
Re: I CAN HAS eBAY? LOL!
This is all I have in my dorm... A laptop 1 terabyte external hard drive Bed Car (in parking lot) Clothes, shoes. toothpaste, toothbrush, comb,bathroom stuff etc. Wallet,Keys,cell phone, 9 gigabyte flash drive on my keychain. Alarm desk (built into wall) mini fridge microwave combo thing. (no food t...
- Sun Apr 05, 2009 2:57 pm
- Forum: Programming Discussion
- Topic: as much as i hate to say it.
- Replies: 5
- Views: 765
Re: as much as i hate to say it.
I love to see people using XNA its great for making games.
- Sun Apr 05, 2009 2:55 pm
- Forum: Programming Discussion
- Topic: C# - Reading Number Input (and other console commands)
- Replies: 1
- Views: 634
Re: C# - Reading Number Input (and other console commands)
Sweetness Im a newb to programming console, I prefer to program in windows form. But console is definetly useful thanks a ton.
C# for life!
C# for life!
- Sun Apr 05, 2009 2:51 pm
- Forum: Programming Discussion
- Topic: C# Check if a user typed a number into a textbox.
- Replies: 4
- Views: 686
C# Check if a user typed a number into a textbox.
Code: Select all
if(IsNumeric(textBox1.Text) == true)
{
// your convert code goes here
}
else
{
// your error message goes here
}
snippet made by the great edward. I take no credit.
- Sun Mar 29, 2009 11:27 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Need a little help with my equation....
- Replies: 4
- Views: 500
Re: Need a little help with my equation....
it works I cant believe i didnt see that.Which should be textBox5.Code: Select all
heightinch = float.Parse(textBox1.Text);
- Sat Mar 28, 2009 2:56 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Need a little help with my equation....
- Replies: 4
- Views: 500
Re: Need a little help with my equation....
Im getting the wrong answer if I input the same numbers in this image http://tinyrealm.com/~efa/cisc2305/pics/rmr.jpgismetteren wrote:either i am lacking math skills(or actually, i know i am) or you havent told what the actual problem is.
I cant figure out where I went wrong I looked over it many times.
- Sat Mar 28, 2009 2:49 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Need a little help with my equation....
- Replies: 4
- Views: 500
[SOLVED] Need a little help with my equation....
need to get the rmr Im getting the wrong answer when I run the program. If I input the numbers found in thie image, http://tinyrealm.com/~efa/cisc2305/pics/rmr.jpg I get a different answer on my program than the other program in the image. ******************************** * RMR = (9.99w + 6.25s) - 4...
- Wed Mar 25, 2009 3:48 pm
- Forum: Programming Discussion
- Topic: [SOLVED] Need a little help debugging my code.
- Replies: 2
- Views: 298
Re: Need a little help debugging my code.
Yeah I just tried float casts it works now.
/solved
/solved
- Wed Mar 25, 2009 11:11 am
- Forum: Programming Discussion
- Topic: [SOLVED] Need a little help debugging my code.
- Replies: 2
- Views: 298
[SOLVED] Need a little help debugging my code.
I need to figure out why it keeps saying "cannot implicity convert double to parse" This the snippet im having trouble with. //Height in Centimeters hc = ((heightfeet * 12) * 2.54) + (heightinch * 2.54); //Weight in Kilograms wk = (weightpounds) / (2.2); I have tried a few things maybe you...
- Tue Mar 24, 2009 5:29 pm
- Forum: General/Off-Topic
- Topic: Can someone explain the connection?
- Replies: 3
- Views: 436
Re: Can someone explain the connection?
view the tags on her video.