I am working on a checkerboard in a winform. I have a fixed size board drawing in the form but want to make the checkerboard rescale itself whenever the window is resized. I have a drawBoard...
Type: Posts; User: d2rover
I am working on a checkerboard in a winform. I have a fixed size board drawing in the form but want to make the checkerboard rescale itself whenever the window is resized. I have a drawBoard...
Thank you! The helper functions made all the difference! That is where I was having the problem.
yes, doubleValueEdit1 is a custom control derived from textbox. I am trying to update the output value based on my current list. So as I click a control or if I change the input textbox...
Working on a simple Windows form calculator to learn delegates. I have it set up when you click a button it adds that operation to my list. There is an input textbox that checks to see if the input...
Thanks, I was able to get things working correctly by nesting my try/catch!
Thanks for your insight msh. I tried it inside my tPeriodic and it gave me errors unless I took out what was already there (wich stopped my timer)
private void tPeriodic_Tick(object sender,...
Im using my text to numerals to text class on a form to set a timer. It needs to change my textbox to pink if it is out of range (100-10000ms) or if it is an invalid entry. It works ok with...
Thanks for the help. I got the logic working as follows:
foreach (int a in list)
{
int temp;
temp = a;
if (a <= 90)
...
Yes I understand adding up the items in the list. Its the logic part that has me stumped. Say you have the text: "two million four hundred thirty thousand one hundred twenty three"
If I just...
I'm working on going the other way and converting words to numerals. I have it splitting the words up, setting up a List collection, and going into a switch. Its setting each element of the list...
Very helpful! Thank you!
If you were doing this professionally and wanted to go the other way and convert text to a number should it be written in its own class or would you write them both in...
Let me see if I am understanding this correctly.
In option 2 I am telling it to write to the console the return value of my method? Then option 1 is just setting the return value to a string...
Thanks tabstop. Watching the debugger I have my converted text in my string "combined"
"Your main function should take as much care to not promptly throw that string object straight into the...
I appologize for screwing up the initial thread Bubba. No excuses. I am reposting my changed code and hope everyone is still willing to help a newbie.
I have my code working but for the life of...
Found my error for the moment.
I guess I spoke too soon! Depending on how I feed it the files it will stop when the shortest .txt file is finished. Only got 1/2 credit since it only works 1/2 the time! Now its just for my info....
Thanks for the direction Salem!!! I've got my code working and wrote a function to remove the newline.
I am trying to get input from two txt files (line by line) and output the two files side by side in colums 38 characters wide. Output should go to a single txt file.
I have been able to get the...
Got it working. Final code:
for (month = 0; month < MONTHS; month++)
{ //for each month sum rainfall over the years
pointer = &rain[0][0];
pointer+=month;
subtot = 0;
for (year =...
I have gotten it to step over 12 and pick up that value. Maybe its my lack of algebra skills?
pointer = &rain[0][0];
for (month = 0; month < MONTHS; month++)
{ //for each month sum...
Thanks Tater. I know that seems like the best solution but the requrement is to use pointers and step through the arrays.
Here is my current code. The problem I am having (second set of for...
I agree! But the point of the assignment is to use pointers (no pun intended). I tried your suggestion with no luck, Is this the code you were refering to:
for (month = 0; month < MONTHS;...
Hello,
Yes its homework but I feel im very close. I am getting junk values for "subtot" in my last for statement. Everything else seems to be working well. I've searched the board and can't seem...
Thanks Tater, I thought I had tried every combination 26 worked fine!
yes the '\z', '^Z', or '26' do not work. Using 'z' or something like '#' will end the program just fine. Also if i wanted to use a switch statement how would I code that?
TIA