Search:

Type: Posts; User: d2rover

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,159

    Grapics question checkerboard

    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...
  2. Replies
    4
    Views
    1,462

    Thank you! The helper functions made all the...

    Thank you! The helper functions made all the difference! That is where I was having the problem.
  3. Replies
    4
    Views
    1,462

    yes, doubleValueEdit1 is a custom control derived...

    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...
  4. Replies
    4
    Views
    1,462

    Delegate list and events?

    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...
  5. Replies
    5
    Views
    2,191

    Thanks, I was able to get things working...

    Thanks, I was able to get things working correctly by nesting my try/catch!
  6. Replies
    5
    Views
    2,191

    Thanks for your insight msh. I tried it inside...

    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,...
  7. Replies
    5
    Views
    2,191

    try/catch problem

    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...
  8. Replies
    13
    Views
    1,928

    Thanks for the help. I got the logic working as...

    Thanks for the help. I got the logic working as follows:


    foreach (int a in list)
    {
    int temp;
    temp = a;

    if (a <= 90)
    ...
  9. Replies
    13
    Views
    1,928

    Yes I understand adding up the items in the list....

    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...
  10. Replies
    13
    Views
    1,928

    I'm working on going the other way and converting...

    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...
  11. Replies
    13
    Views
    1,928

    Very helpful! Thank you! If you were doing...

    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...
  12. Replies
    13
    Views
    1,928

    Let me see if I am understanding this correctly. ...

    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...
  13. Replies
    13
    Views
    1,928

    Thanks tabstop. Watching the debugger I have my...

    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...
  14. Replies
    13
    Views
    1,928

    Numbers to Text revisited

    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...
  15. Replies
    2
    Views
    1,386

    Numbers to text problem

    Found my error for the moment.
  16. Replies
    5
    Views
    6,151

    I guess I spoke too soon! Depending on how I...

    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....
  17. Replies
    5
    Views
    6,151

    Thanks for the direction Salem!!! I've got my...

    Thanks for the direction Salem!!! I've got my code working and wrote a function to remove the newline.
  18. Replies
    5
    Views
    6,151

    Fgets() & Fputs() to combine text files?

    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...
  19. Replies
    10
    Views
    3,183

    Got it working. Final code: for (month = 0;...

    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 =...
  20. Replies
    10
    Views
    3,183

    I have gotten it to step over 12 and pick up that...

    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...
  21. Replies
    10
    Views
    3,183

    Thanks Tater. I know that seems like the best...

    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...
  22. Replies
    10
    Views
    3,183

    I agree! But the point of the assignment is to...

    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;...
  23. Replies
    10
    Views
    3,183

    Pointers and multidimensional arrays question

    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...
  24. Replies
    12
    Views
    6,866

    Thanks Tater, I thought I had tried every...

    Thanks Tater, I thought I had tried every combination 26 worked fine!
  25. Replies
    12
    Views
    6,866

    yes the '\z', '^Z', or '26' do not work. Using...

    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
Results 1 to 25 of 42
Page 1 of 2 1 2