Solved

vb.net desktop location

Posted on 2006-10-31
2
2,168 Views
Last Modified: 2006-11-18
Is there a way to figure out my desktop location from a vb.net application?
0
Comment
Question by:jackjohnson44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
gangwisch earned 500 total points
ID: 17845581
my.Computer.FileSystem.SpecialDirectories.Desktop
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17846626
You can do it in 2003 too, it's just a little trickier.

Dim k As RegistryKey = Registry.CurrentUser
k = k.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
Dim path As String = k.GetValue("Desktop").ToString()
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question