Interacting with .NET WinForms, Part 2 North Carolina

We conclude our tutorial on working with Windows Forms in Microsoft.NET. Here, we'll examine some of the important GUI Controls and their application in C#.

Local Companies

Sharp Business Systems
(704) 523-3333
4404 Stuart Andrew Blvd Ste A
Charlotte, NC
Triangle Tech Computer Repair - Cary Office
919-809-6492
201 Shannon Oaks Circle
Cary, NC
Microflex Software Inc
336-722-3344
1620 Yarmouth Dr
Winston-Salem, NC
A C E Applied Computer Equipment
(704) 598-1953
1105 Saddle Oak Ct
Charlotte, NC
Blue Sky Technologies
(704) 332-8245
515 N Church St
Charlotte, NC
J & S Computers
336-674-0646
4705 Randleman Rd
Greensboro, NC
Aladdin Computer Inc
(704) 333-4390
4410 Monroe Rd Ste C
Charlotte, NC
Computer Zone
336-776-9000
4290 N Patterson Ave
Winston-Salem, NC
Intrex Internet Services
(919) 406-1578
200 Park Office Dr
Durham, NC
A C E Applied Computer Equipment
(704) 598-1953
1105 Saddle Oak Ct
Charlotte, NC

provided by: 
Originally published at Internet.com


We use a lot of controls like Buttons, Label, Checkbox, Radio Button, Text boxes, etc. while developing a GUI application. .NET provides a wide range of class, properties, and events for developing a complete GUI program by using the Control class of System.Windows.Forms namespace. In this part of our tutorial, I'll examine some of the important GUI Controls and their application in C#.

General Method for Adding Controls to Forms



1. Create an instance of the control. 2. Apply necessary properties like location, size, width, height, etc. 3. Finally, add the Control object to the Form's Controls Collection.

Using TextBox



Generally, Text boxes are of two classes, viz., Single line and multiple line boxes. Multiple line boxes have scroll bars. Also, users can enter more lines of text in them. The superclass of TextBox Control is TextBoxBase. It also provides functionalities for advanced controls like RichTextBoxes.

The following listing shows the usage of TextBox by examining important properties. Keep in mind that some of the properties derive from the TextBoxBase class. TextBox class provides only a limited set of properties. Listing 1.

using System; using System.Windows.Forms; using System.Drawing; public class Text: Form { // Text box object created TextBox t1 = new TextBox(); Text() { // Text box added this.Controls.Add(t1); t1.Location = new Point(50,50); t1.Size = new Size(200,50); t1.Text = "Class something to test"; t1.Multiline = true; t1.ScrollBars = ScrollBars.Vertical; t1.TextAlign = HorizontalAlignment.Center; t1.CharacterCasing = CharacterCasing.Upper; } public static void Main() { Application.Run(new Text()); } } ...

Read article at Internet.com site

Featured Local Company

J & S Computers

336-674-0646
4705 Randleman Rd
Greensboro, NC

Regional Articles
- Interacting with .NET WinForms, Part 2 Albemarle NC
- Interacting with .NET WinForms, Part 2 Apex NC
- Interacting with .NET WinForms, Part 2 Arden NC
- Interacting with .NET WinForms, Part 2 Asheboro NC
- Interacting with .NET WinForms, Part 2 Asheville NC
- Interacting with .NET WinForms, Part 2 Bessemer City NC
- Interacting with .NET WinForms, Part 2 Boone NC
- Interacting with .NET WinForms, Part 2 Brevard NC
- Interacting with .NET WinForms, Part 2 Burlington NC
- Interacting with .NET WinForms, Part 2 Camp Lejeune NC
- Interacting with .NET WinForms, Part 2 Candler NC
- Interacting with .NET WinForms, Part 2 Cary NC
- Interacting with .NET WinForms, Part 2 Chapel Hill NC
- Interacting with .NET WinForms, Part 2 Charlotte NC
- Interacting with .NET WinForms, Part 2 Clayton NC
- Interacting with .NET WinForms, Part 2 Clemmons NC
- Interacting with .NET WinForms, Part 2 Clinton NC
- Interacting with .NET WinForms, Part 2 Concord NC
- Interacting with .NET WinForms, Part 2 Conover NC
- Interacting with .NET WinForms, Part 2 Dunn NC
- Interacting with .NET WinForms, Part 2 Durham NC
- Interacting with .NET WinForms, Part 2 Eden NC
- Interacting with .NET WinForms, Part 2 Elizabeth City NC
- Interacting with .NET WinForms, Part 2 Fayetteville NC
- Interacting with .NET WinForms, Part 2 Forest City NC
- Interacting with .NET WinForms, Part 2 Fort Bragg NC
- Interacting with .NET WinForms, Part 2 Fuquay Varina NC
- Interacting with .NET WinForms, Part 2 Garner NC
- Interacting with .NET WinForms, Part 2 Gastonia NC
- Interacting with .NET WinForms, Part 2 Goldsboro NC
- Interacting with .NET WinForms, Part 2 Granite Falls NC
- Interacting with .NET WinForms, Part 2 Greensboro NC
- Interacting with .NET WinForms, Part 2 Greenville NC
- Interacting with .NET WinForms, Part 2 Havelock NC
- Interacting with .NET WinForms, Part 2 Henderson NC
- Interacting with .NET WinForms, Part 2 Hendersonville NC
- Interacting with .NET WinForms, Part 2 Hickory NC
- Interacting with .NET WinForms, Part 2 High Point NC
- Interacting with .NET WinForms, Part 2 Hillsborough NC
- Interacting with .NET WinForms, Part 2 Hope Mills NC
- Interacting with .NET WinForms, Part 2 Huntersville NC
- Interacting with .NET WinForms, Part 2 Jacksonville NC
- Interacting with .NET WinForms, Part 2 Kannapolis NC
- Interacting with .NET WinForms, Part 2 Kernersville NC
- Interacting with .NET WinForms, Part 2 King NC
- Interacting with .NET WinForms, Part 2 Kings Mountain NC
- Interacting with .NET WinForms, Part 2 Kinston NC
- Interacting with .NET WinForms, Part 2 Knightdale NC
- Interacting with .NET WinForms, Part 2 Laurinburg NC
- Interacting with .NET WinForms, Part 2 Leland NC
- Interacting with .NET WinForms, Part 2 Lenoir NC
- Interacting with .NET WinForms, Part 2 Lexington NC
- Interacting with .NET WinForms, Part 2 Lillington NC
- Interacting with .NET WinForms, Part 2 Lincolnton NC
- Interacting with .NET WinForms, Part 2 Louisburg NC
- Interacting with .NET WinForms, Part 2 Lumberton NC
- Interacting with .NET WinForms, Part 2 Marion NC
- Interacting with .NET WinForms, Part 2 Matthews NC
- Interacting with .NET WinForms, Part 2 Mebane NC
- Interacting with .NET WinForms, Part 2 Mocksville NC
- Interacting with .NET WinForms, Part 2 Monroe NC
- Interacting with .NET WinForms, Part 2 Mooresville NC
- Interacting with .NET WinForms, Part 2 Morganton NC
- Interacting with .NET WinForms, Part 2 Mount Airy NC
- Interacting with .NET WinForms, Part 2 Mount Olive NC
- Interacting with .NET WinForms, Part 2 Murphy NC
- Interacting with .NET WinForms, Part 2 New Bern NC
- Interacting with .NET WinForms, Part 2 North Wilkesboro NC
- Interacting with .NET WinForms, Part 2 Raeford NC
- Interacting with .NET WinForms, Part 2 Raleigh NC
- Interacting with .NET WinForms, Part 2 Reidsville NC
- Interacting with .NET WinForms, Part 2 Roanoke Rapids NC
- Interacting with .NET WinForms, Part 2 Rockingham NC
- Interacting with .NET WinForms, Part 2 Rocky Mount NC
- Interacting with .NET WinForms, Part 2 Roxboro NC
- Interacting with .NET WinForms, Part 2 Rutherfordton NC
- Interacting with .NET WinForms, Part 2 Salisbury NC
- Interacting with .NET WinForms, Part 2 Sanford NC
- Interacting with .NET WinForms, Part 2 Shelby NC
- Interacting with .NET WinForms, Part 2 Siler City NC
- Interacting with .NET WinForms, Part 2 Statesville NC
- Interacting with .NET WinForms, Part 2 Tarboro NC
- Interacting with .NET WinForms, Part 2 Taylorsville NC
- Interacting with .NET WinForms, Part 2 Thomasville NC
- Interacting with .NET WinForms, Part 2 Trinity NC
- Interacting with .NET WinForms, Part 2 Wake Forest NC
- Interacting with .NET WinForms, Part 2 Waxhaw NC
- Interacting with .NET WinForms, Part 2 Waynesville NC
- Interacting with .NET WinForms, Part 2 Weaverville NC
- Interacting with .NET WinForms, Part 2 Wendell NC
- Interacting with .NET WinForms, Part 2 Whiteville NC
- Interacting with .NET WinForms, Part 2 Williamston NC
- Interacting with .NET WinForms, Part 2 Wilmington NC
- Interacting with .NET WinForms, Part 2 Wilson NC
- Interacting with .NET WinForms, Part 2 Winston Salem NC
- Interacting with .NET WinForms, Part 2 Zebulon NC

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML