Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
~3K People Reached
Favorite Forums
Favorite Tags

14 Posted Topics

Member Avatar for Puertorro

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) …

Member Avatar for mKorbel
0
356
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
163
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
142
Member Avatar for Pokenerd

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 …

Member Avatar for lee.j.baxter
0
159
Member Avatar for Pokenerd

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 …

Member Avatar for nick.crane
0
906
Member Avatar for Pokenerd

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 …

Member Avatar for ddanbe
0
348
Member Avatar for FJones

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 …

Member Avatar for ddanbe
0
103
Member Avatar for Pokenerd

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); …

Member Avatar for Ancient Dragon
0
92
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
126
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
138
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
133
Member Avatar for Pokenerd

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) { …

Member Avatar for Pokenerd
0
104
Member Avatar for Pokenerd

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 …

Member Avatar for Pokenerd
0
179
Member Avatar for Pokenerd

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 …

Member Avatar for wildgoose
0
120

The End.