Home  
  Microsoft  
  Cisco  
  CompTIA  
  CWNP  
  InfoSecurity  
  Forums  
  Blogs  
  Topsites  
  Search the Web  
 
 
     
  Subnet Calculator  
  Online Degrees  
  Exam Vouchers  
  Tell-A-Friend  
  Contact us  
  About us  
  Support us  
  Advertise  

   
     

 

  TechExams Blogs Login  

.NET RSS feed for all posts by .NET


Configure the PropertyGrid Control

July 20th, 2007 - by Johan Hiemstra

Exam objective: 70-526 - Configure the PropertyGrid component

The .NET Framework contains a fairly complete selection of controls and form components that allow information to be input, presented and changed in many different ways. In this article I will cover one of the more complex but also feature-rich components in the .NET framework: the PropertyGrid. Regardless of whether you have experience with the using the PropertyGrid in your own apps, if you used Visual Studio, you already used the PropertyGrid component many times. Visual Studio uses several PropertyGrid components in its main interface, the most obvious being the Properties and Events windows, highlighted in the screenshot below:

So setting the Properties of a Form or control for example is done by using a PropertyGrid and as you can see, it is very complete. It allows you to set a wide variety of Property types such as Booleans, Strings, Integers, Fonts, Point and Size structures, Colors, Images, Enums, and Collections without the need for complex code. Additionally, the PropertyGrid component can be extended to support additional custom property types and to customize the GUI of the properties in the PropertyGrid.

The PropertyGrid is particularly useful when you have a good amount of different properties that need to be set or displayed in the proper format. If you would use a combination of labels, textboxes, radio buttons, checkboxes, etc. you would have to create many different controls and write input validation code. That doesn’t mean a PropertyGrid is always a better alternative, a form with the classic form components works best for most applications as users are familiar with it.

Throughout the rest of this article we’re going to create an example project that shows you how little effort it takes to add a working PropertyGrid to a Form. After going over some basic properties of the PropertyGrid itself, we’ll cover its implementation in more detail. I assume you have some basic experience with Visual Studio and setting control properties using the GUI.

(more…)

Create and configure menus

June 29th, 2007 - by Johan Hiemstra

Covers Exam Objective: 70-526 - Create and configure a MenuStrip component on a Windows Form.

One of the challenges with designing graphical user interfaces is to present the controls and information when the user needs them and at the same time not clutter the interface. Most applications however, include a wide variety of options and functions that need to be within reach at all times. A familiar way to allow users access to common functions in Windows applications is to use menus.

There are many different types of menus being used in today’s software of which several are available as components in the .NET framework. By creating custom controls, extending existing controls, and/or by using GDI+, you can create an endless range of menus that differ in look and functionality. In this article, I will cover the two exam objectives listed above, so in particular the MenuStrip component.

The MenuStrip represents the most common menus in Windows apps – the main menu at the top that often starts with a File menu option. It is derived from the ToolStrip component. Just to make sure we all know up front what we’re talking about, the following image depicts the menu in Visual Studio VB Express edition:

As we all know, most of Microsoft’s own software often includes a huge amount of menu options. There is a good chance the first app(s) you create do not contain that many options and then a MenuStrip may seem like overkill. However, besides being a familiar component for users, it can give the GUI some weight and it can easily be extended because of its hierarchical structure. So if the functionality of your application is likely to expand over time, using a MenuStrip from the start can prevent you from having to make major changes to the GUI.

(more…)

Creating Dialog Boxes in .NET

June 12th, 2007 - by James D. Murray

Microsoft Certification Exam: 70-526 (MCTS)
Objective: Create and use custom dialog boxes in Windows Forms applications.
Language: Visual Basic 2005 (click here for the C# version of this entry)

I remember the first time I needed to create a dialog box in a .NET application that I was writing in C#. Being a long-time Visual Basic programmer, I assumed that this could easily be accomplished by using a dialog box template included with Visual Studio.NET. To my surprise, no such form template existed for C#, although one does for Visual Basic 2005. After wading through several books and Web pages filled with information on Windows Forms 2.0 programming, a basic set of steps became apparent to me for manually converting a .NET form into a Windows dialog box:

1. Add a Form to your .NET project and name it “DialogBoxForm”.

2. Drop two buttons in the lower right-hand area of the Form and name them “OKButton” and “CancelButton”.

3. Change the following properties of the Form to adjust its appearance and behavior to be like a standard dialog box: (more…)

Errata for Microsoft Press MCTS Self-Paced Training Kit Books

June 5th, 2007 - by James D. Murray

People using the MCTS Self-Paced Training Kit books from Microsoft Press should also get a copy of the errata available online for each book. You should be aware of that there are numerous errors in both the text and code examples for several of the MCTS Self-Paced Training Kit books that were not fixed prior to publication.

The following erratas are available at support.microsoft.com and are found by either searching the Support Knowledge Base using the term “Self-Paced Training Kit” or by searching for the specific book’s ISBN number.

MCTS Self-Paced Training Kit (Exam 70-526): Microsoft .NET Framework 2.0 Windows-Based Client Development Comments and Corrections

MCTS Self-Paced Training Kit (Exam 70-528): Microsoft .NET Framework 2.0 Web-Based Client Development Comments and Corrections

MCTS Self-Paced Training Kit (Exam 70-529): Microsoft .NET Framework 2.0 Distributed Application Development Comments and Corrections

MCTS Self-Paced Training Kit (Exam 70-536): Microsoft® .NET Framework 2.0—Application Development Foundation Comments and Corrections Part 1

MCTS Self-Paced Training Kit (Exam 70-431): Microsoft® SQL Server™ 2005—Implementation and Maintenance comments and corrections

Microsoft Developer Certifications Overview

June 5th, 2007 - by Johan Hiemstra

Microsoft offers several developer certifications and exams covering various Microsoft technologies including the .NET framework. There are several good reasons for pursuing Microsoft Developer Certifications and for choosing .NET as a framework for your Web and Windows applications:

  1. The free Visual Studio Express editions – These are limited but still very functional editions of Visual Studio, which allow you to create applications using many of the topics in the exam objectives.
  2. Suitability for beginners – Both the Visual Studio Express editions and several of the exams mentioned in this overview do not require you to be a seasoned developer/programmer. You don’t need to be a mathematician either, although both will obviously be an advantage.
  3. Microsoft supports the multiple different languages (and corresponding Visual Studio Express editions) for developing in the .NET 2.0 Framework: Visual Basic, C#, C++, and J#. Depending on the exam, you must choose a language when you start the exam that will be used for the code segments in exam questions. You can usually choose between Visual Basic 2005 and Visual C# 2005, and sometimes Visual C++ 2005.
  4. Although the majority is not created for the certification exams covered in this overview, the .NET framework, Visual Studio, and especially Visual Basic and C# are widely supported on the Internet.

The main downside is that the applications you create require the .NET framework, which typically runs on Windows only.

Before we go over the ‘current’ Microsoft Developer certifications let’s have a look at the older ones. The following two certifications are still available for version 1 and 1.1 of the .NET framework:

MCSD (Microsoft Certified Solution Developer)

This certification covered several topics over a total of 4 core exams: .NET solution architecture, Web development, Windows development, and XML Web services and server components, and one elective exam. For three of the core exams, candidates can choose between VB and C#.

MCAD (Microsoft Certified Application Developer)

The MCSD was overkill for many developers so Microsoft created the MCAD, which focuses on building, deploying, and maintain Microsoft Windows and Web applications, while the MCSD also includes analyzing and designing enterprise solutions. The MCAD requires two core exams and one elective.

For those who have a lot of experience with the .NET framework 1.0 and/or 1.1 could still go for the above and possible later upgrade to the following certifications. But in general, it’s better to pursue one of the following newer certifications:

(more…)



Exchange 2003 Video Training




 
Featured Sponsors

TrainSignal - “Hands On” computer training for IT professionals. Network+ Training, MCSE, Cisco & more! Visit Train Signal’s free training site to get loads of Free Computer Training, videos, articles and practice exams.

The CWNP® Program - the industry standard for vendor neutral wireless LAN training and certification. Career certifications in WLAN administration, WLAN security, WLAN analysis, and CWNE for wireless LAN experts. Learn more about the CWNP Program. Find a class near you.
 

All images and text are copyright protected, violations of these rights will be prosecuted to the full extent of the law.
2002-2008 TechExams.Net | Advertise | Disclaimer