DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Small utility class with methods for manipulating C# forms, controls, and fonts.  (Read 4,131 times)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Four methods in static class MyForms.cs
(1) center and size a form
(2) center a control on a form
(3) center a control horizontally only on a form
(4) change the font and font style of a control

Sample project included as attachment.

See this link: http://www.donationcoder.com/forum/index.php?topic=38081
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

« Last Edit: June 02, 2014, 12:01 PM by kyrathaba »

Original address: https://www.donationcoder.com/forum/index.php?topic=38076.0