- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
9 Posted Topics
You can get the number of milliseconds code takes to run by using the Stopwatch class: Dim s As New Stopwatch() s.Start() ' Place code you need to get the time it takes to run in here s.Stop() Dim elapsedtime As Integer = s.ElapsedMilliseconds ' elapsedtime now has how long …
Please fix your post up. So you want to make a calculator but you can drag a text file to get the equation?
**Exception Handling** Exception handling is used to catch errors/bugs in code. When there is an error/bug, it will "throw" a message or Exception that has information on what the error was. Exception handling code "catches" the message that was thrown, basically saving the program from crashing. **String to Int Exception** …
You should calculate the prime numbers inside of main. Do-While loops are the same as While loops but Do-While loops go through the loop once no matter what, then checks the condition, ie: do { // This will run once, even though the condition is false. }while(1 == 2); Hope …
You can use a FolderBrowserDialog to view folders and the user can select one, then you can get all the images from inside that folder. FolderBrowserDialog FBD = new FolderBrowserDialog(); if(FBD.ShowDialog()==DialogResult.OK) { // FBD.SelectedPath contains the Path chosen. Directory.GetFiles(FBD.SelectedPath, "*.jpg"); // This will return an array containing all the JPEG …
So lets break it down into steps: 1. X number of users 2. Give a random a high five. 3. Give a reward for high five. 4. Increase chance to get high five. Here is how we could store the text file: name 1|0|1 name 2|0|1 name 3|0|1 name 4|0|1 …
You have to surround your xml in a tag, for example: [CODE]<AddressBook> <Contact> <Name> Bob </Name> </Contact> </AddressBook>[/CODE] If you have already done that them I am not too sure what to do.
I am not sure if you can resize the size of a label at run-time, so instead I made it change the text of a label (making it a bigger or smaller number): [CODE] int height; int width; private void Form1_Load(object sender, EventArgs e) { height = 362; width = …
After you add the new entry you would need to get all the data again from where-ever you are getting your data from and add it to the combobox.
The End.
CeilingSpy