Ask the Doc Detective: Visual Studio .NET Help

Ask the Doc Detective: Visual Studio .NET Help

nless you are clairvoyant, finding what you need in the Visual Studio .NET documentation can sometimes be a daunting task. The Doc Detective is here to help, gazing into his crystal ball to divine the deepest secrets 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 [email protected].

Dear Doc Detective,

I am trying to find out a way to launch external applications from within a .NET Windows application. Is there something equivalent to ShellExecute in Visual Basic 6? I know there is a way to achieve this using Interop, but what I want to know is whether or not .NET exposes a way to do it without using System.Runtime.Interop and DLLImport.

?Launchless in Laramie

Dear Launchless,

This isn’t nearly as difficult as you might think?the ShellExecute function in Visual Basic 6 is replaced by the Shell Function in .NET. Shell is similar to ShellExecute but also includes several new arguments such as Wait and Timeout. Just look for the topic “Shell Function”.

By the way, there are numerous topics that compare Visual Basic 6.0 functions, properties, methods, and events with their .NET equivalents. Look for the topic “Introduction to Visual Basic .NET for Visual Basic Veterans” and drill down from there. Unfortunately ShellExecute is one that we missed.

?Doc Detective


Dear Doc Detective,

My company has a lot of COM components written in Visual Basic 6. We’re not ready to rewrite them in .NET since we still have VB6 applications that use them as well. I’ve read up on COM interop and understand how to use the COM components from my Visual Basic .NET application, but how the heck do I deploy an application that uses them without going to each desk and manually registering the components?

?Stuck in Stuckeyville

Dear Stuck,

The deployment tools in Visual Studio .NET do indeed support registering COM components, but it’s apparently a secret. The only topics I found relating to this are in the .NET Framework documentation; they have nothing to do with Visual Studio .NET deployment. Fortunately though, there is a recent whitepaper in the MSDN Library (http://msdn.microsoft.com/library) that shows how to deploy Visual Basic .NET applications that use COM components; as a bonus it also shows how to deploy Visual Basic 6 applications that use .NET components. Just look for “Deploying Hybrid Visual Basic 6.0 / Visual Basic .NET Applications”. Read up, then go forth and deploy?after all, ’tis better to deploy than to receive.

?the Doc


Dear Doc Detective,

When I saw the letter in your last column from Accessible in Akron, I thought it might be about accessibility, not Access databases. I write software for a federal agency and one of our requirements is that all applications must be accessible to users with disabilities. Can you help me find information on creating accessible applications with .NET?

?Disappointed in D.C.

Dear Disappointed,

Before I answer your question, I need to know if you work for the Department of Justice. Just kidding! Accessibility is an important subject at Microsoft?check out the latest innovations on the accessibility front at http://www.microsoft.com/enable/.

Of course you can create accessible applications in .NET. For an introduction, look for the topic “Designing Accessible Applications.” There are also a couple of great walkthroughs that can help get you started: “Walkthrough: Creating an Accessible Windows Application” and “Walkthrough: Creating an Accessible Web Application with Visual Basic.” By the way, if you happen to work for the I.R.S., the good doctor has this little problem…

?Doctor D


Dear Doc Detective,

I’m a long time Visual Basic programmer new to Visual Basic .NET. I know there is documentation relating to upgrading my applications, but it’s hard to tell which topics apply. Is there any way to set the Help viewer to only show the upgrading documentation?

Newbie in New York

Dear Newbie,

Well, you could go through all of the topics in the docs and save the upgrading topics as Favorites… or you could create a custom filter. A custom filter allows you to define exactly what will and won’t show up in the table of contents and index. See the following link to learn more.

Editor’s Note: This link only works if you have the MSDN Library Viewer installed (the link is not available online):

Creating a Custom Filter

To create a filter for the upgrading docs, enter the value “ProductVers”=”kbVBp600” in the Filter Definition field of the Edit Help Filters dialog box (include the quotes). Once you have saved the new filter, viewing only the upgrade docs is just a mouse click away. Now if we could just figure out how to filter out the Doc Detective…

?Doc

Doc’s Doc Tip of the Day
Meet the neighbors! If you find a topic using the index or Search, don’t forget to use the “Sync Contents” button (the double-ended arrow) to see where you are in the table of contents. You can often find lots of useful related topics that way, plus it helps you learn your way around the TOC.

devx-admin

devx-admin

Share the Post:
Razer Discount

Unbelievable Razer Blade 17 Discount

On September 24, 2023, it was reported that Razer, a popular brand in the premium gaming laptop industry, is offering an exceptional deal on their

Innovation Ignition

New Fintech Innovation Ignites Change

The fintech sector continues to attract substantial interest, as demonstrated by a dedicated fintech stage at a recent event featuring panel discussions and informal conversations

Import Easing

Easing Import Rules for Big Tech

India has chosen to ease its proposed restrictions on imports of laptops, tablets, and other IT hardware, allowing manufacturers like Apple Inc., HP Inc., and

Anthropic Investment

Amazon’s Bold Anthropic Investment

On Monday, Amazon announced its plan to invest up to $4 billion in the AI firm Anthropic, acquiring a minority stake in the process. This

Razer Discount

Unbelievable Razer Blade 17 Discount

On September 24, 2023, it was reported that Razer, a popular brand in the premium gaming laptop industry, is offering an exceptional deal on their Razer Blade 17 model. Typically

Innovation Ignition

New Fintech Innovation Ignites Change

The fintech sector continues to attract substantial interest, as demonstrated by a dedicated fintech stage at a recent event featuring panel discussions and informal conversations with industry professionals. The gathering,

Import Easing

Easing Import Rules for Big Tech

India has chosen to ease its proposed restrictions on imports of laptops, tablets, and other IT hardware, allowing manufacturers like Apple Inc., HP Inc., and Dell Technologies Inc. more time

Semiconductor Stock Plummet

Dramatic Downturn in Semiconductor Stocks Looms

Recent events show that the S&P Semiconductors Select Industry Index seems to be experiencing a downturn, which could result in a decline in semiconductor stocks. Known as a key indicator

Anthropic Investment

Amazon’s Bold Anthropic Investment

On Monday, Amazon announced its plan to invest up to $4 billion in the AI firm Anthropic, acquiring a minority stake in the process. This decision demonstrates Amazon’s commitment to

AI Experts Get Hired

Tech Industry Rehiring Wave: AI Experts Wanted

A few months ago, Big Tech companies were downsizing their workforce, but currently, many are considering rehiring some of these employees, especially in popular fields such as artificial intelligence. The

Lagos Migration

Middle-Class Migration: Undermining Democracy?

As the middle class in Lagos, Nigeria, increasingly migrates to private communities, a PhD scholar from a leading technology institute has been investigating the impact of this development on democratic

AI Software Development

ChatGPT is Now Making Video Games

Pietro Schirano’s foray into using ChatGPT, an AI tool for programming, has opened up new vistas in game and software development. As design lead at business finance firm Brex, Schirano

Llama Codebot

Developers! Here’s Your Chatbot

Meta Platforms has recently unveiled Code Llama, a free chatbot designed to aid developers in crafting coding scripts. This large language model (LLM), developed using Meta’s Llama 2 model, serves

Tech Layoffs

Unraveling the Tech Sector’s Historic Job Losses

Throughout 2023, the tech sector has experienced a record-breaking number of job losses, impacting tens of thousands of workers across various companies, including well-established corporations and emerging startups in areas

Chinese 5G Limitation

Germany Considers Limiting Chinese 5G Tech

A recent report has put forth the possibility that Germany’s Federal Ministry of the Interior and Community may consider limiting the use of Chinese 5G technology by local network providers

Modern Warfare

The Barak Tank is Transforming Modern Warfare

The Barak tank is a groundbreaking addition to the Israeli Defense Forces’ arsenal, significantly enhancing their combat capabilities. This AI-powered military vehicle is expected to transform the way modern warfare

AI Cheating Growth

AI Plagiarism Challenges Shake Academic Integrity

As generative AI technologies like ChatGPT become increasingly prevalent among students and raise concerns about widespread cheating, prominent universities have halted their use of AI detection software, such as Turnitin’s

US Commitment

US Approves Sustainable Battery Research

The US Department of Energy has revealed a $325 million commitment in the research of innovative battery types, designed to enable solar and wind power as continuous, 24-hour energy sources.

Netanyahu Musk AI

Netanyahu and Musk Discuss AI Future

On September 22, 2023, Israeli Prime Minister Benjamin Netanyahu met with entrepreneur Elon Musk in San Francisco prior to attending the United Nations. In a live-streamed discussion, Netanyahu lauded Musk

Urban Gardening

Creating Thriving Cities Through Urban Gardening

The rising popularity of urban gardening is receiving increased recognition for its numerous advantages, as demonstrated in a recent study featured in the Environmental Research Letters journal. Carried out by

What You Need to Know About Cloud Security Strategies

What You Need to Know About Cloud Security Strategies

Today, many businesses are adopting cloud computing services. As a result, it’s important to recognize that security measures for data in the cloud are different from those in traditional on-premises

Romanian Energy Security

Eastern Europe is Achieving Energy Security

Canada and Romania have solidified their commitment to energy security and independence from Russian energy exports by signing a $3-billion export development agreement. The deal is centered on constructing two

Seamless Integration

Unlocking Seamless Smart Home Integration

The vision of an intelligently organized and interconnected smart home that conserves time, energy, and resources has long been desired by many homeowners. However, this aspiration has often been hindered

New Algorithm

MicroAlgo’s Groundbreaking Algorithm

MicroAlgo Inc. has revealed the creation of a knowledge-augmented backtracking search algorithm, developed through extensive research in evolutionary computational techniques. The algorithm is designed to boost problem-solving effectiveness, precision, and

Poland Energy Future

Westinghouse Builds Polish Power Plant

Westinghouse Electric Company and Bechtel have come together to establish a formal partnership in order to design and construct Poland’s inaugural nuclear power plant at the Lubiatowo-Kopalino site in Pomerania.

EV Labor Market

EV Industry Hurting For Skilled Labor

The United Auto Workers strike has highlighted the anticipated change towards a future dominated by electric vehicles (EVs), a shift which numerous people think will result in job losses. However,