Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

C# ПІДРУЧНИКИ / c# / Premier Press - C# Professional Projects

.pdf
Скачиваний:
475
Добавлен:
12.02.2016
Размер:
14.7 Mб
Скачать

888

Part X

APPENDIXES

 

 

 

names of the servers that are currently being used. Figure C-9 shows the Server Explorer window.

 

Y

L

F

M

 

A

 

E

 

FIGURE C-9 The ServerTxplorer window

The Server Explorer window also allows you to add event logs, message queues, and performance counters to your project. A toolbar displaying the buttons for commonly used commands is displayed in the Server Explorer window.

Toolbox

The Toolbox contains various tools available in Visual Studio .NET. The Toolbox can be opened by clicking the Toolbox tab displayed on the left margin of the Visual Studio .NET IDE. You can also open the Toolbox by selecting the Toolbox command from the View menu.

The General and Clipboard Ring tabs are displayed by default. In addition, tools with specific functions are displayed in the toolbox. You can view all the tabs on the Toolbar by selecting the Show All Tabs option from the context menu.

Some of the tabs available in the Toolbox are:

General tab. The General tab, by default, displays only the Pointer control. You can also add controls, such as custom controls, to the General tab. Custom controls refer to user-defined controls. Figure C-10 shows the General tab of the Toolbox.

Team-Fly®

VISUAL STUDIO .NET IDE Appendix C 889

FIGURE C-10 The General tab of the Toolbox

Clipboard Ring tab. The Clipboard Ring tab also displays only the Pointer control by default. The Clipboard Ring tab displays the last 12 items that are added to the clipboard. The clipboard is basically a memory cache maintained by the Microsoft Windows operating system. The Clipboard Ring tab of the Toolbox is shown in Figure C-11.

FIGURE C-11 The Clipboard Ring tab of the Toolbox

890

Part X

APPENDIXES

 

 

 

The Toolbox can also be customized by adding tabs and tools. You can use the Customize Toolbox command from the Tools menu to open the Customize Toolbar dialog box.

The Task List Window

Visual Studio .NET allows you to mark the code present in your application with comments. The Task List window helps track errors and warnings. These comments are displayed in the table format. To view these errors, you need to doubleclick the message and determine the exact location of the error.

You can open the Task List window by selecting the Other Windows command from the View menu and then selecting the Task List command from the submenu. The Task List window is shown in Figure C-12.

FIGURE C-12 The Task List window

You can also add comments for the errors in the code, which may be useful for later references. Figure C-13 shows a comment for an error in the code.

FIGURE C-13 A comment for an e rror in the code

VISUAL STUDIO .NET IDE Appendix C 891

Managing Windows

The windows that are displayed in Visual Studio .NET IDE can be managed according to your requirements. The following options are available to perform this function. The next sections will discuss them in detail.

Hiding Windows

To hide a window, you use the Auto Hide feature of the Visual Studio .NET IDE. The window is then displayed as a tab, which can be clicked to maximize the hidden window. You can apply the Auto Hide feature to various tools of IDE, such as Solution Explorer, Task List, and Toolbox.The Auto Hide feature may be enabled or disabled by toggling the pushpin icon in the upper-right corner of the window. Figure C-14 shows the Auto Hide feature of the Visual Studio .NET IDE.

FIGURE C-14 The Auto Hide feature of Visual Studio .NET IDE

Docking Windows

You can drag the windows present in IDE as per your requirements by using the docking windows feature provided by Visual Studio .NET. The windows can be attached or left free-standing as per your requirements.

892

Part X

APPENDIXES

 

 

 

Customizing Visual Studio .NET IDE

The Visual Studio .NET IDE can be customized according to your requirements while creating an application. The following sections will discuss how to customize Visual Studio .NET.

The Options Dialog Box

The Options dialog box is used for customizing the IDE. This dialog box can be used to specify a default location to save the projects and manipulate the layout of IDE. The Options dialog box can also be used for specifying the user interface elements, such as keyboard mappings, font, and color. The Options dialog box is shown in Figure C-15.

FIGURE C-15 The Options dialog box

You can display the Options dialog box by selecting the Options command from the Tools menu.The dialog box consists of two panes that contain folders such as Environment, Text Editor, and Debugging, and their respective options.

The following sections will discuss some frequently used features of the Environment folder.

The General Page

The General Page is used to change the default settings of IDE. You can use this page to display the Status bar in IDE and specify whether IDE should support

VISUAL STUDIO .NET IDE Appendix C 893

the MDI (Multiple Document Interface) environment. In addition, you can specify the item to be displayed at the startup. The General Page is shown in Figure C-16.

FIGURE C-16 The General Page

The Fonts and Colors Page

The Fonts and Colors Page is used to customize the font and color settings for the elements having a user interface. Figure C-17 shows the Fonts and Colors Page.

FIGURE C-17 The Fonts and Colors Page

894

Part X

APPENDIXES

 

 

 

In addition to the pages mentioned previously, the Options dialog box consists of the Documents page, the Dynamic Help page, the Help page, and the Keyboard page.

The Customize Dialog Box

You use the Customize dialog box to manipulate the toolbars that are present in IDE. You can create and modify your own toolbars. You can also add and remove the existing toolbars.

The Customize dialog box can be displayed by selecting Customize from the Tools menu. Figure C-18 shows the Customize dialog box.

FIGURE C-18 The Customize dialog box

As you can see in Figure C-18, the Customize dialog box contains the Toolbars, Commands, and Options tabs. The following section discusses these tabs in detail.

The Toolbars Tab

The Toolbars tab is used create a toolbar and rename, delete, and reset existing toolbars.

VISUAL STUDIO .NET IDE Appendix C 895

The Commands Tab

The Commands tab is used to add frequently used commands to toolbars. The Commands tab consists of two lists, Categories and Commands. The Categories list displays commands such as File and Edit, and the Commands list displays the commands for a selected category.

The Options Tab

The Options tab is used to customize the appearance of toolbars and menu bars.

Summary

In this chapter, you learned about the Visual Studio .NET IDE that will enable you to develop applications based on the .NET Framework. You also learned about the various windows and tools that are used in the Visual Studio .NET IDE. In addition, you learned about the various functions of windows and tools that enable enhancement of the Visual Studio .NET IDE.

This page intentionally left blank

Index

Symbols

@Page directive, 767

@symbol, 648

A

aborting threads,97–98 abstraction, OOP, 849–50

Accept checked call(s) button,adding code, 786–87

AcceptDetails() Web method,creating, 650–53

access

COM components, 813–15 COM+ components,813–16 indexers,76

mobile applications,734. See also WAP namespaces,58

Setup wizard,276 Web forms, 498–99

accessors, 89–91

accounts,490–94. See also user accounts creating, 403–4

deleting, 403–4

Action menu commands,272 Add,589

Add Dialog, 289 actions

custom action editor, 289–90 specifying, 285–86

activating JIT, 808 Add button, 235

Add command (Action menu), 589 Add Custom Action option,290

Add Dialog command (Action menu),289 Add Files dialog box,280

Add menu commands, Folder, 271 Add New Project dialog box,144 Add option, 271

Add Project Output Group dialog box, 266 AddFl.aspx form,417, 473–74,500–3 adding

bitmap images, 342

breakpoints to applications, 191–92

code

Clear button,703–10

cmdBack Command control, 757–61 Construction form,710–11

Created event, 367–71 DispResultForm form,683–93 Exit button, 363,873–75 form load method, 351–52 frmLogon form,775–79

frmPending form,782–85, 785 frmSelectOption form, 779–82 frmUnattended form,786–87, 788

InsertBookerDB() method,700–2

Main form,680–83 MobileTimeRetriever application,754–61 OK button, 353–63

Orders form,697–700 Search form,693–97

storing customer details,702–3 Submit button,872–73

Web forms, 680–711 XML documents,374

controls

ASP.NET, 444–45 tabbed pages,343–45

dialog boxes, 288–89

EventLog components to forms,379–82 executable files,284

file types, 283 flight details,404 flights,545

forms in Windows,151–53 functionality

ASP.NET, 446–52 Back button, 217–23 Cancel Button, 208

DataGrid controls,200–5 Edit button, 205–6,214–15 Exit Button,208–11

Save Button,206–8,215–16 launch conditions,290–91 ListView control, 303–5

output to deployment projects, 589–91 MobileCallStatus application,774–88