Content by Category
.NET 1.x
.NET 2.0
.NET 3.0
.NET 3.5
.NET 4.0
.NET 4.5
.NET Assemblies
.NET Framework
.NET Getting Started
Accessibility
ADO.NET
Advertorials
Agile Development
AJAX
Amazon Web Services
Analysis Services
Android
Architecture
Arduino
ASP .NET Web API
ASP.NET
ASP.NET MVC
ASP.NET WebForms
Azure
B2B (Business Integration)
BDD
Big Data
Bing
BizTalk
Book Excerpts
Build and Deploy
Business Intelligence
C#
C++
ClickOnce
Cloud Computing
Code Contracts
CODE Framework Info - non Technical
CODE on the Road!
COM+
Community
Conferences
Continuous Integration
Crystal Reports
CSLA.NET
CSS
Data
Debugger
Design Patterns
Development Process
Display Technologies
Distributed Computing
Document Database
DotNetNuke
DSL
Dynamic Languages
Dynamic Programming
Editorials
Enterprise Services ("COM+")
Entity Framework
Events
Expression Blend
F#
Fox to Fox
Frameworks
Functional Programming
Git
Graphics
HTML 5
Internet Explorer 8.0
Interviews
IOS
iPhone
Iron Ruby
Java
Java Script
JavaScript
jQuery
JSON
Lightswitch
LINQ
Linux
LUA
Mac OS X
MDX
Messaging
Metro
Microsoft Application Blocks
Microsoft Business Rules Framework
Microsoft Dynamics
Microsoft Expression
Microsoft Office
Mobile Development
Mobile PC
Mono
MsBuild
MVVM
MySQL
Network
NHibernate
node.js
NOSQL
Nuget
Object Oriented Development
Objective C
Odata
OLAP
Open Source
Opinion
Opinions
Oracle
ORM
Other Languages
Parallel Programming
Patterns
PHP
Podcasts
Post Mortem
PowerPoint
Print/Output
Prism
Product News
Product Reviews
Project Management
Prolog
Python
Q&A
Rails
Rake
Razor
Reporting Services
REST
RIA Services
Ruby
Ruby on Rails
Scheme
Search
Security
Services
SharePoint
SignalR
Silverlight
SOA
Social Networks
Software & Law
Software Business
Source Control
Speech-Enabled Applications
SQL Server
SQL Server 2000
SQL Server 2005
SQL Server 2008
SQL Server 2012
SQL Server CE/AnyWhere/Mobile/Compact
SSIS
Subversion
Sync Framework
Tablet PC
TDD
Team System
Techniques
Testing and Quality Control
TFS
Tips
TypeScript
UI Design
UML
User Groups
VB Script
VB.NET
Version Control
VFP and .NET
VFP and SQL Server
Virtual Earth
Vista
Visual Basic
Visual Basic 6 (and older)
Visual FoxPro
Visual Studio .NET
Visual Studio 11
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Visual Studio 2011
Visual Studio 2012
Visual Studio Tools for Office
VSX
WCF
Web Development (general)
Web Services
WebMatrix
WF
Whitepapers
Windows 7
Windows 8
Windows Azure
Windows Live
Windows Phone 7
Windows Phone SDK
Windows Server
Windows Vista
WinForms
WinRT
Workflow
WPF
XAML
Xiine Documentation
XML
XNA
XSLT



Learn Now


rssbus
 


Learn Now

Reader rating:
Article source: CoDe (2009 Jan/Feb)

Ask the Doc Detective


Doc Detective

Finding what you need in the Microsoft® Visual Studio® 2008 documentation, which has over 200,000 topics, can be a daunting task. The Doc Detective is here to help, utilizing his investigative skills to probe the depths of the documentation.

Can’t find what you’re looking for? Just ask-if it’s in there, I’ll find it for you; if it isn’t, I’ll let you know that as well (and tell you where else you might go to find it).

Have a question for the Doc? Send your questions for future columns to me at docdetec@microsoft.com.

Dear Doc Detective,

I have been programming for over twenty years, but I am just starting with Visual Studio. All I want to do is display some data on a form, but I am overwhelmed by the sheer number of topics related to data. I did a search and it returned 500 topics. Isn’t there something that simply tells me what I need to do?

-Dazed in Dayton

Dear Dazed,

Using a broad search term such as “data” can definitely be overwhelming, and if you are looking for basic information it’s hard to come up with the right search term. You really need a map to navigate the sheer number of topics available.

Fortunately there is a new type of topic, referred to as a “roadmap” topic, which can guide you through the maze. Check out the aptly named “Creating Data Applications by Using Visual Studio” topic. It provides a basic overview of how data works in Visual Studio, plus links to each of the relevant tasks you will need to accomplish. It may not be simple, but it does tell you what to do.

-Doc D

Dear Doc Detective,

I cannot tell you how many times I day I accidentally hit Ctrl+C instead of Ctrl+V when trying to paste code in the editor. Why doesn’t this work like Word?

In Word, if you accidentally hit Ctrl+C when nothing is selected, nothing happens. It does not wipe out your clipboard contents, so you can still hit Ctrl+V and paste its contents.

I hunted around for the option to turn this off the other day, but did not find it. Is there a way that you can turn this behavior off, and if so, where?

-Fuming in Fullerton

Dear Fuming,

There is indeed a way to turn this behavior off, and I’m at a loss to explain why it’s on by default. Just go to Tools, Options, check the Show All Settings box, expand the Text Editor node and select All Languages. Under Settings, clear the Apply Cut or Copy commands when there is no selection option, and you’re good to go.

This is covered in the topic “How to: Set General Editor Options”, which is pretty hard to find if you don’t know that this option is a general editor setting.

The more I think about it, the more I wonder why this option even exists. Is there ever really a case where someone would want to cut or copy a blank line?

-Doc Detective

Dear Doc Detective,

I am in the process of developing an intranet application for my company, hosted on a network share. I recently rolled out a test version to a few users, and they are reporting a security exception stating that the application requires full trust.

I looked around a bit and found some information on how to use code access security policy to grant full trust, but it’s a bit confusing and looks like way too much work. Surely there is an easier way to do this.

-Trusted in Trenton

Dear Trusted,

You’re right, it is a lot of work-or I should say was a lot of work. Starting with the .NET Framework version 3.5 Service Pack 1 (SP1), applications and their library assemblies can be run as full-trust assemblies from a network share.

You can learn all about it in the topic “Running Intranet Applications in Full Trust”. It makes things a lot easier-trust me.

-The Doc

Dear Doc Detective,

I have an MDI Parent form that contains several Child forms. I want to use the MouseDown event of the Parent to display a menu panel when the user clicks outside of the child forms.

The mouse events are not firing for the Parent form-is this a bug, or am I missing something?

-Mouseless in Mountain View

Dear Mouseless,

This is expected behavior for an MDI Parent-it doesn’t capture mouse events.

It’s not clear what you mean by “menu panel”. Standard behavior would be to display a context menu when the user right clicks. This can be done on an MDI parent by adding a ContextMenuStrip control and assigning it to the ContextMenuStrip property of the MDI parent form, as described in the topic “How to: Associate a ContextMenuStrip with a Control”.

If you really need to capture mouse events on an MDI parent, you could fake it by adding a RectangleShape control to the form and sizing it to fill the client area. You could then capture the mouse events for the RectangleShape when the user clicks in the client area. See the topic “Introduction to the Line and Shape Controls (Visual Studio)” for more help.

A bit of a hack, but it works.

-Doctor D

Doc’s Doc Tip of the Day

Have you ever wished you could add your own content to the Visual Studio docs, or add comments or corrections? Now you can, thanks to the Community Content section found at the bottom of most MSDN online topics.

The Community Content feature for Microsoft documentation provides the ability to add and edit content notes, similar to a wiki. Examples include code samples, tips, undocumented scenarios, links to additional resources, etc. Anyone is welcome to contribute or edit content.

You can learn more about sharing your knowledge by adding to Community Content in the “Community Content FAQ” topic.

Found a topic in Help that doesn’t help? Tell the Visual Studio documentation team about it by clicking on the “Send feedback” link in local Help topics, or the “Click to rate and give feedback” link in online Help.

URLs

http://msdn.microsoft.com/en-us/library/0wxwcakt.aspx

http://msdn.microsoft.com/en-us/library/ms165328.aspx

http://msdn.microsoft.com/en-us/library/cc713717.aspx

http://msdn.microsoft.com/en-us/library/ms229639.aspx

http://msdn.microsoft.com/en-us/library/cc488275.aspx

http://msdn.microsoft.com/en-us/library/community-msdnwikifaq.aspx


How would you rate the quality of this article?
1 2 3 4 5
Poor      Outstanding

Tell us why you rated the content this way. (optional)

Average rating:
5 out of 5

5 people have rated this article.

rssbus

      Component One

 

Component One