Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: .NET Framework Initialization Error Pin
shaunAustin9-Jun-03 9:10
shaunAustin9-Jun-03 9:10 
GeneralScrollBar.LargeChange Pin
Iulian Serban7-Jun-03 3:04
Iulian Serban7-Jun-03 3:04 
GeneralRe: ScrollBar.LargeChange Pin
James T. Johnson7-Jun-03 15:15
James T. Johnson7-Jun-03 15:15 
GeneralRe: ScrollBar.LargeChange Pin
Iulian Serban7-Jun-03 22:12
Iulian Serban7-Jun-03 22:12 
GeneralRe: ScrollBar.LargeChange Pin
James T. Johnson8-Jun-03 4:16
James T. Johnson8-Jun-03 4:16 
GeneralRe: ScrollBar.LargeChange Pin
Iulian Serban8-Jun-03 4:34
Iulian Serban8-Jun-03 4:34 
QuestionMulti line in Label?? Pin
Weiye Chen7-Jun-03 2:56
Weiye Chen7-Jun-03 2:56 
AnswerRe: Multi line in Label?? Pin
Jim Stewart7-Jun-03 7:41
Jim Stewart7-Jun-03 7:41 
GeneralRe: Multi line in Label?? Pin
dynamic7-Jun-03 12:52
dynamic7-Jun-03 12:52 
GeneralRe: Multi line in Label?? Pin
Jim Stewart7-Jun-03 14:36
Jim Stewart7-Jun-03 14:36 

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.