Jump to content

Visual C# keyboard input?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
MagicIdiot

MagicIdiot

    Newbie

  • Members
  • Pip
  • 4 posts
I'm still a beginner at programming. I'm working on a calculator and I got it working with the buttons. How do I make my program accept mouse input (buttons) and keyboard input for typing the numbers?

Also, you know how after you click a button it has a blue outline showing that it's selected. How can I disable that?

Thanks in advance.

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Well to add numbers coresponding to the buttons is pretty easy:
textBox1.Text += "ButtonNumberHere";
This assumes you use a textBox to hold you numbers.

To use keyboard input, the user should just be able to type into the textbox.

Quote

Also, you know how after you click a button it has a blue outline showing that it's selected. How can I disable that?
I have the same questions, how can I do this? :c-biggrin:

Hope this Helped. ~ Committed.

A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#3
G3n1us

G3n1us

    Newbie

  • Members
  • Pip
  • 2 posts
Ok i make video and explain what said CommittedC0der.

My plans are to make C# beginers videos for newbies if you hawe some sugestions or ideas please contact me

Best regards G3n1us

Attached Files



#4
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Hey G3n1us, why dont you post your video on YouTube or another video hosting website. Then you can post it in the video tutorials section, and people wont have to download it. Sometimes people are wherry of downloading something from such a new user.

~ Committed. ;)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#5
G3n1us

G3n1us

    Newbie

  • Members
  • Pip
  • 2 posts
I will :D thanks for answer




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users