Results 1 to 14 of 14

Thread: VS2012 Express Custom and User Control

Threaded View

  1. #3

    Thread Starter
    Frenzied Member circuits2's Avatar
    Join Date
    Sep 2006
    Location
    Kansas City, MO
    Posts
    1,027

    Re: VS2012 Expres Custom and User Control

    With your new project, set the size of the control to 782 x 262. Next, set the background color to black, or whatever color you like best. Then, drag a button onto the control and position it at location 2, 2. Set the button's size to 50 x 50. Each additional button's position will be the original button width/height plus two.

    In my example, I have set the button's to FlatStyle.Flat with a backcolor of DimGrey, a bordercolor of Silver, and a ForeColor of White. I am also using Tahoma 12pt Bold as my font.

    The bottom left and right corners are blank filler panels that I am using to complete the image of a keyboard.

    Here are the sizes:

    General Button: 50 x 50
    Backspace: 102 x 50
    Backslash: 76 x 50
    Enter/Caps: 102 x 50
    Shift: 128 x 50
    Space: 362 x 50
    Fillers: 206 x 50

    Notice I am using the un-shifted values of each key for the button text, such as lower-case letters, numbers, etc. I don't have a need for the tab key, so I have omitted it in my project.

    Name:  Control1.png
Views: 7716
Size:  14.8 KB
    Last edited by circuits2; Apr 6th, 2013 at 01:39 AM.
    Show the love! Click (rate this post) under my name if I was helpful.

    My CodeBank Submissions: How to create a User Control | Move a form between Multiple Monitors (Screens) | Remove the MDI Client Border | Using Report Viewer with Visual Studio 2012 Express

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width