User Profile

Collapse

Profile Sidebar

Collapse
adwenger0066
adwenger0066
Last Activity: Dec 14 '10, 04:06 PM
Joined: Aug 30 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I will take a look at the KeyUp event, but I think it operates the same way.

    The problem with checking the KeyState on numlock is that I also want to use the arrow keys for some in the form. So if the numlock is off, I still need to know whether the user pressed the arrow key, or the numpad arrow key.

    For now, I've decided to use a different control method, using the WASD keys and the arrow keys.
    See more | Go to post

    Leave a comment:


  • adwenger0066
    replied to Array Indexes
    Code:
    public int[] indexesOf(List list, String string) {
      List<int> result = new List<int>();
      for (int i = 0; i < list.Count; i++) { 
       if (list[i] == string) {
            result.Add(i);
       }
      }
      return result.ToArray();
    }
    See more | Go to post

    Leave a comment:


  • For the customer class, override the ToString() method with the information you want available in the List and then add the instance of Customer to the list.

    If you need the ability to alter the information, you may also need to create a method to Parse a string inside the customer class which your master form would have to call to update the data.
    See more | Go to post

    Leave a comment:


  • adwenger0066
    started a topic How to differentiate between specific keys?

    How to differentiate between specific keys?

    I'm trying to find out methods on how to figure out which key was pressed. For Windows forms, the KeyDown event is what I am looking at, but there is a problem.

    When a user presses the number 4 on the number pad, it can return either NumPad4 or Left. Normally, I could just listen for either, but I also want the Left Arrow to function differently.

    Is there a way I can just tell which key was pressed without having to...
    See more | Go to post
No activity results to display
Show More
Working...