Click here to Skip to main content
15,922,309 members
Home / Discussions / C#
   

C#

 
GeneralRe: accessing GUI Pin
Rocky Moore8-Jun-03 17:57
Rocky Moore8-Jun-03 17:57 
QuestionIs there a good way to do this? Pin
dratti7-Jun-03 22:39
dratti7-Jun-03 22:39 
AnswerRe: Is there a good way to do this? Pin
Iulian Serban8-Jun-03 6:04
Iulian Serban8-Jun-03 6:04 
AnswerRe: Is there a good way to do this? Pin
KingTermite8-Jun-03 8:39
KingTermite8-Jun-03 8:39 
GeneralDistributing C# .NET programs... major headache. Pin
EvilDingo7-Jun-03 20:13
EvilDingo7-Jun-03 20:13 
GeneralRe: Distributing C# .NET programs... major headache. Pin
leppie7-Jun-03 22:50
leppie7-Jun-03 22:50 
GeneralRe: Distributing C# .NET programs... major headache. Pin
EvilDingo8-Jun-03 0:42
EvilDingo8-Jun-03 0:42 
GeneralRe: Distributing C# .NET programs... major headache. Pin
leppie8-Jun-03 1:04
leppie8-Jun-03 1:04 
GeneralRe: Distributing C# .NET programs... major headache. Pin
Steven Behnke10-Jun-03 12:58
Steven Behnke10-Jun-03 12:58 
QuestionLable auto resize vertically to show hidden text? Pin
Weiye Chen7-Jun-03 18:44
Weiye Chen7-Jun-03 18:44 
GeneralI encountered an System.Net.Sockets.SocketException, but dunno why it happened Pin
viperxp7-Jun-03 17:39
viperxp7-Jun-03 17:39 
GeneralRe: I encountered an System.Net.Sockets.SocketException, but dunno why it happened Pin
leppie7-Jun-03 22:38
leppie7-Jun-03 22:38 
GeneralRe: I encountered an System.Net.Sockets.SocketException, but dunno why it happened Pin
viperxp15-Jun-03 5:54
viperxp15-Jun-03 5:54 
QuestionHow to check... Pin
Kant7-Jun-03 17:36
Kant7-Jun-03 17:36 
AnswerRe: How to check... Pin
leppie7-Jun-03 22:35
leppie7-Jun-03 22:35 
GeneralRe: How to check... Pin
Kant8-Jun-03 4:21
Kant8-Jun-03 4:21 
GeneralRe: How to check... Pin
shaunAustin9-Jun-03 0:46
shaunAustin9-Jun-03 0:46 
GeneralRe: How to check... Pin
Kant9-Jun-03 5:03
Kant9-Jun-03 5:03 
IrvTheSwirv wrote:
I'm just curious!!

Naa...It's just simple checking I want to do. The app requires the Microsoft.Mshtml.dll Primary Interop Assembly which is installed as part of VS.NET install. So instead of crashing the app, throw message to the user informing that VS.NET required to run my app.

Anyway I am cheking like this :

private bool LookupVisualStudioDotNet()<br />
{<br />
string strRegKey = "Software\\Microsoft\\VisualStudio\\7.0";<br />
<br />
Microsoft.Win32.RegistryKey oRegKey = Microsoft.Win32.Registry.LocalMachine;<br />
Microsoft.Win32.RegistryKey oVCDotNetKey = oRegKey.OpenSubKey(strRegKey);<br />
<br />
if(oVCDotNetKey == null)<br />
{<br />
	oRegKey.Close();<br />
        return false;<br />
}<br />
else<br />
{<br />
    oRegKey.Close();<br />
    return true;<br />
}<br />
}<br />
....<br />
....<br />
if(false == LookupVisualStudioDotNet())<br />
{<br />
	string strMsg = "This application requires Microsoft.Mshtml.dll Primary Interop Assembly." <br />
+ "\n\r" +  "Visual Studio.Net installs this in Program Files\\Microsoft.Net\\Primary Interop Assemblies"<br />
+ "\n\r" + "This application can NOT proceed further. It will be closed.";<br />
<br />
MessageBox.Show(strMsg, "Visual Studio.NET not exists", 	<br />
					MessageBoxButtons.OK,<br />
					MessageBoxIcon.Error);<br />
<br />
return;<br />
}




Never take a problem to your boss unless you have a solution.

This signature was created by "Code Project Quoter".
QuestionHow to create a 'copy' and 'paste' feature for selected cell ranges Pin
sleepycat7-Jun-03 15:40
sleepycat7-Jun-03 15:40 
GeneralVisual C# question Pin
dratti7-Jun-03 12:24
dratti7-Jun-03 12:24 
GeneralRe: Visual C# question Pin
leppie7-Jun-03 13:02
leppie7-Jun-03 13:02 
GeneralRe: Visual C# question Pin
dratti7-Jun-03 22:21
dratti7-Jun-03 22:21 
GeneralRe: Visual C# question Pin
Iulian Serban7-Jun-03 22:22
Iulian Serban7-Jun-03 22:22 
GeneralRe: .NET Framework Initialization Error Pin
James T. Johnson7-Jun-03 15:07
James T. Johnson7-Jun-03 15:07 
GeneralRe: .NET Framework Initialization Error Pin
shaunAustin9-Jun-03 0:48
shaunAustin9-Jun-03 0:48 

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.