Calculator events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Haim Turjeman

    #1

    Calculator events

    hi,
    i want to make a calc control in C#.
    i already did it but i had to add 10 buttons (button0..9)
    and another 10 event handlers.
    in VB (at least 6.0) i could declare an array of button from the desginer.

    could someone tell me if there is another way to do it in C#?

    thanx.

  • John Kennedy[MSFT]

    #2
    RE: Calculator events


    You can definitely have an array of buttons in C#. Check out this example
    program on MSDN, which creates a grid of buttons.
    Although it was written for the PocketPC, it uses C# so the fundamentals
    are the same.

    http://msdn.microsoft.com/library/en...ad07102002.asp

    Comment

    Working...