How to count freqency of letters appeared in a textbox as input
How do you think the problem would be solved?
Here are some highlevel hints: Create some way to map letters to a count. Iterate through the string and add one to the relevant count for each letter you encounter. Add one also to an total counter (so you know how many letters there are in total, so you can work out the percentage) When you finish the iteration of the string, iterate through the map and output the frequency of each letter and its percentage (by the way, you need to work on that calculation as the letter 'E' occurs 37.5% of the time, not 0.3%)
If you have a problem on any particluar aspect, show us what you tried and then we can help you fix it.
how do i connect my database to my visual studio express project. When i add information on my form it must then be added to my database in the specific tables. Please i need your help, can your helpe detailed.I am using Microsoft Access 2003.
There is the language Property for every form. Begin with one language. Enter the test property for every control, then change the language of the form and fill the text properties for the new language. If the language is found it will be set to the windows startup language (I hope so, didn't tried it on my own, but a fellow worker did this).
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
I'm doing the movie ticket reservation system. Is there any related topic. The problem is there is seat plan function for user to choose for their seats. What tools shall i use and is there anything related that might help? Thank You..
I have a csv format report "A" and an excel file "B" contains two macro, the first macro will convert the csv report to a xls file "C", after that I want to copy the second macro in "B" to "C", so that I could open "C" and load the macro directly in the future. My question is how can I copy macro from "B" to "C", I'd appreciate any help you provide.
If u want to open file with extension .sln in text box then in my opinion u need to copy the text of the file to clip board and then paste it in text box.
In this way it would appear as if file is opening directly in text box
Now, I want to open myFile.sln using my word processing application when I double click Myfile.sln
Do you mean when you double click in windows explorer? If so this is a windows setting for the default application associated with a file extension. (eg, for most people .doc will open with MS Word).
Tip: If you Right click a file you can choose "Open with..." then simply brose for your exe. As long as your app supports executing with an argument providing the path to the file then all should be dandy (eg, c:\myapp.exe "c:\my files\myfile.sln").
Yes I mean that I know that. but it does not work. My application is already associate with .sln files. but when I double click 'myfile.sln', my application starts and loads a new document file. but it does not load 'myfile.sln'
sorry, forgot which forum I was on...here in VB.NET
string path = args
if(Path.GetExtension(path) = ".abc" and File.Exists(path))then
StreamReader sr = new StreamReader(path)
this.tbInput.Text = sr.ReadToEnd()
Hi, If you need to relate an extension type to your application, you can do it using the windows utilites, or a vb code. in windows, it's done using folder options in explorer. but in code I can help you, you should create some keys in the registry, it's very simple. you can also assign an Icon and add commands to it when you right click on a file like Edit in MyApplication or CompileFile... tell me if you need it.
but if you need that after having the type related, how to open it so:
when you double click on file, it's automatically sent to the related application as arguments. you can select multiple files and press enter so all files will be sent to you application as array of arguments.
you can catch all argument while loading application. someone tell you how using C#
but can you tell wich version of VB you use? is it vb.net or vb2005? so I can help you also...