Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Protocol Violation using HttpWebRequest Pin
Amir Zicherman27-Jul-04 20:26
Amir Zicherman27-Jul-04 20:26 
GeneralComponents, Mouse Events and Abnormal Shapes Pin
Tristan Rhodes27-Jul-04 6:02
Tristan Rhodes27-Jul-04 6:02 
GeneralRe: Components, Mouse Events and Abnormal Shapes Pin
Gary Thom27-Jul-04 7:26
Gary Thom27-Jul-04 7:26 
GeneralInitialization in web services Pin
pelos27-Jul-04 5:38
pelos27-Jul-04 5:38 
GeneralRe: Initialization in web services Pin
Dave Kreskowiak27-Jul-04 6:42
mveDave Kreskowiak27-Jul-04 6:42 
GeneralRe: Initialization in web services Pin
Nick Parker27-Jul-04 9:28
protectorNick Parker27-Jul-04 9:28 
GeneralCustom VS.NET Wizard query Pin
Michael P Butler27-Jul-04 3:30
Michael P Butler27-Jul-04 3:30 
GeneralRe: Custom VS.NET Wizard query Pin
Heath Stewart27-Jul-04 11:18
protectorHeath Stewart27-Jul-04 11:18 
There's the DTE.FullName property that gives you the full path to the devenv.exe executable. You can use various Path methods (or just parse the string yourself) to get the base directory and then append the VC# directory.

You could also use the DTE.RegistryRoot key. That would give you a place to start to use the RegistryKey class that you could find the actual path to the VC# directory (just in case it was installed outside the VS.NET installation root somehow).

Finally, another way would be to use Process.GetCurrentProcess, then get the MainModule and get that return value's FileName, which is the full path to the executable hosting your code. This is a bit of a kuldge, though, but would work with other designers (like #develop, for example).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Custom VS.NET Wizard query Pin
Michael P Butler28-Jul-04 1:33
Michael P Butler28-Jul-04 1:33 
GeneralActive Directory Exception Pin
vcorn26-Jul-04 20:36
vcorn26-Jul-04 20:36 
GeneralRe: Active Directory Exception Pin
Dave Kreskowiak27-Jul-04 6:38
mveDave Kreskowiak27-Jul-04 6:38 
GeneralRe: Active Directory Exception Pin
vcorn27-Jul-04 19:44
vcorn27-Jul-04 19:44 
Generalproblems with drawing a PieChart Pin
Pain_Elemental26-Jul-04 20:28
Pain_Elemental26-Jul-04 20:28 
GeneralRe: problems with drawing a PieChart Pin
Heath Stewart27-Jul-04 11:07
protectorHeath Stewart27-Jul-04 11:07 
GeneralRe: problems with drawing a PieChart Pin
Pain_Elemental28-Jul-04 5:50
Pain_Elemental28-Jul-04 5:50 
Generalsupporting localization Pin
samithas26-Jul-04 18:19
samithas26-Jul-04 18:19 
GeneralRe: supporting localization Pin
Heath Stewart26-Jul-04 18:32
protectorHeath Stewart26-Jul-04 18:32 
GeneralIssue on replacing WebBrowser context menu Pin
w1424326-Jul-04 16:26
w1424326-Jul-04 16:26 
GeneralRe: Issue on replacing WebBrowser context menu Pin
Heath Stewart26-Jul-04 18:20
protectorHeath Stewart26-Jul-04 18:20 
Generalprinting a form Pin
stevemasters2226-Jul-04 15:31
stevemasters2226-Jul-04 15:31 
GeneralBinding DataView to MSChart Pin
Kuan Wai Mun26-Jul-04 15:04
Kuan Wai Mun26-Jul-04 15:04 
GeneralRe: Binding DataView to MSChart Pin
Heath Stewart26-Jul-04 18:50
protectorHeath Stewart26-Jul-04 18:50 
GeneralRe: Binding DataView to MSChart Pin
Kuan Wai Mun2-Aug-04 17:36
Kuan Wai Mun2-Aug-04 17:36 
GeneralScrollBars for DataGrid Pin
Khang Nguyen26-Jul-04 14:43
Khang Nguyen26-Jul-04 14:43 
GeneralRe: ScrollBars for DataGrid Pin
DougW4826-Jul-04 15:33
DougW4826-Jul-04 15:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.