- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
14 Posted Topics
Re: Your method "validate length" doesn't actually check the length of your number, it only checks if the value is less than two, or greater than 5! What you need to do is something like this: [CODE] public static boolean validateLength(int userNum) { String userNumber = userNum.toString(); if (userNumber.length < 2) … | |
Hi Guys, Right now I'm building an application that draws images to the screen. What I would like is to be able to 'cut' portions of those images away (this is going to always be a circle). This is the code I'm using. Is it possible to make a clipping … | |
I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public … | |
Hi guys, I am writing a small application which needs to load some images, and other resources. I am currently trying to find the best way to package these resources in my application. I have looked at some examples, I but I have been having trouble understanding them, and many … | |
Hi guys, I'm having a bit of trouble with a bit of trig in C#. I've written code similar to this in actionscript3 (flash), but it is giving me issues in C#. I am not receiving errors, but all the shapes I rotate are somewhat screwed up. Here is the … | |
Hi guys. You've helped me out a lot in the past, for which I am very grateful. Right now however, I am banging my head against the wall, because I simply cannot get my head around drawing simple shapes! The current code results in well... Nothing whatsoever. My form is … | |
Re: When this code is run it generates the code saying that not all the code paths return values - you need to add a return(0); to the function. Here is a fixed version: [code=csharp] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Exponent_Thing { class Program { static void … | |
Hi - I'm writing a program the changes what you cut and paste. One problem is that it doesn't delete the text you cut... This is the function i'm using to delete text.. [code=csharp] //Deleting selected text public string deleteSelected() { string ret = ""; string str = textBox1.Text; MessageBox.Show(str); … | |
Hello! I'm trying to use code to write to a text box - I know my strings are valid and that the function I'm using to generate them works, because I can successfully display them in a pop-up. Now I want to insert my string into a textbox at the … | |
Hello again, I'm trying to create a text field that only accepts numbers, a single decimal, and a dash (for negatives) but only as the first character. I have conquered everything except for pasting, and have no idea on where to begin. Below is the current code (working!) code that … | |
Hi, I'm somewhat new to C# and I've created a numbers (backspace, delete, negative, and decimal) only text box. However the way I'm testing whether to allow for negative numbers only allows them to be added if they are typed as the first character. Below is in an if statement … | |
Hi, I'm working on a program to convert Celsius to Fahrenheit, but I have a problem when I run a check to make sure that input is not a letter. My problem is that if the user inputs a 0 it catches it with the [code=C++] if(num == 0) { … | |
Hi, I'm looking for some help with this short program I am writing... I'm trying to make the sure that the user enters a number when it asks for the temperature in Celsius, and when the user enters a number it works. However if a letter is entered it all … | |
Hello! I'm trying to make a command line program that converts Celsius to Fahrenheit, and then asks if you would like to convert another number. This is the code I have (below) however when it gets to the point of asking if you would like to convert another number, no … |
The End.