Title: Visual Studio 2005 IDE Enhancements
1Visual Studio 2005IDE Enhancements
2Agenda
3Application Designer
4Application designer
5Application Designer
6Application designer
7Application designer
8Resources
9Configuration and Settings
10Configuration and Settings
11Settings Architecture
SettingsBase
ApplicationSettingsBase
WindowsApp1Settings
My.Settings
Provider Interface
LocalSettings
Remote
Sql
Custom
Access
Custom
12Settings Architecture
13(No Transcript)
14Settings
15Settings Architecture
Myapp.exe.config ltapplicationSettingsgt lt/a
pplicationSettingsgt
fred.config ltuserSettingsgt lt/userSettingsgt
ethel.config ltuserSettingsgt lt/userSettingsgt
gladys.config ltuserSettingsgt lt/userSettingsgt
16Managing settings
My.Settings.UseHighQuality True Settings
automatically loaded on first access
My.Settings.UseHighQuality TrueMy.Settings.Save
()
Private Sub Settings_SettingChanging(ByVal sender
As Object, ByVal e As SettingsArg) Handles
MyBase.SettingChanging If e.SettingName
SignatureFile Then If Not
My.Computer.FileSystem.FileExists(e.Setting.Value)
Then Cancel event End If
End If End Sub
17Productivity
18Extensible Code Snippets
19Rename Symbol (VB)Quick way to change identifiers
20Visualize Code
21Visual C-only features
22Write Code
23Write Code
24Write Code
25Write Code
26Code formatting options
27Navigate Code
28Navigate Code
29Navigate Code
30Refactor Code
31Refactor Code
32Refactor Code
33Migrate Code
34Debugging
35Tools for RAD DevelopmentDebugging VB Code
36Viewing Data in VS.NET 2003
37Customizing Data Display
public class Employee private string
firstName private string lastName // ...
public override string ToString() return
(this.firstName this.lastName)
38Customizing Data Display (2)
39Customizing Data Display (3)
40Customizing Data Display (4)
Application
Visual Studio
Inherit from VisualizerObjectSource for custom
serialization
Inherits DialogDebuggerVisualizer
Check if Image has viewer
Debugger
VisualizerObjectSource
Image
ImageVisualizer (Custom Viewer)
System.Drawing.dll
Image Viewer DLL
Image Viewer DLL
load
CacheDir
load
Image Viewer DLL
41The Debugger Toolbox
- Everything you have in VS 2003 plus
- Debug in-zone
- Filtered breakpoints
- MachineName, ProcessName, ProcessID, ThreadName,
ThreadID - per-thread breakpoints
- Tracepoints
- display a message or run a macro
- optionally continue execution
42Extensibility
43Macros and addins
44Managing projects and code
45Automation Model
46Microsoft