如何在文本框中获取安装路径和显示? [英] How to get installation path and dispaly in textbox?

查看:123
本文介绍了如何在文本框中获取安装路径和显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我需要在文本框中显示路径?如下所示



我公司有一个产品软件在那里.. ........ 假设像visual studio ,当我安装该应用程序时。

因为我们像visual studio这样会存储所有某些位置的项目默认位于 c:\ users \ hp \documents \ visual studio 2010 \Projects

是我们手动提供的任何其他驱动器 d:\Myprojects\projects



- >来到我的项目时,我在c#中以Windows窗体形式运行我的应用程序>
- >它将显示一个文本框,在该文本框中,我需要显示将存储我的应用程序的所有项目的路径...如上所述[d:\Myprojects\projects ]



- >请给我一个完整的代码我们如何获得可视工作室路径,我的项目将存储在哪里,该路径应显示在文本框中.....它会帮助我很多请帮帮我................... :(

In my project i need to show a path in textbox ?like below

in my company one product software is there.......... assume like visual studio ,when i install that application.
as usuall like visual studio it will store all projects in some location default in c:\users\hp\documents\visual studio 2010\Projects
are manually we gave in any other drive d:\Myprojects\projects

->coming to my project when ever i run my application in windows form in c#
->it will show a textbox, in that text box ,i need to display path which will store all projects of my application...as said above [d:\Myprojects\projects]

->please give me a full code how we can get visual studio path ,where my project will store ,that path should display in textbox.....it will help me lot please help me...................:(

推荐答案

检查HKEY_CURRENT_USER \Software \ Microsoft \\VisualStudio \VV.V - DefaultNewProjectLocation
Check "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\VV.V" - DefaultNewProjectLocation


这篇关于如何在文本框中获取安装路径和显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆