Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: Start ILDASM via code? Pin
Anonymous27-Dec-02 1:09
Anonymous27-Dec-02 1:09 
GeneralRe: Start ILDASM via code? Pin
David Stone27-Dec-02 10:34
sitebuilderDavid Stone27-Dec-02 10:34 
GeneralDataGrid row color Pin
Anonymous26-Dec-02 2:20
Anonymous26-Dec-02 2:20 
Generalinternet connection is up Pin
karanba26-Dec-02 2:13
karanba26-Dec-02 2:13 
GeneralRe: internet connection is up Pin
J. Schermerhorn26-Dec-02 10:55
J. Schermerhorn26-Dec-02 10:55 
GeneralRe: internet connection is up Pin
karanba27-Dec-02 0:46
karanba27-Dec-02 0:46 
GeneralRe: internet connection is up Pin
grv57527-Dec-02 2:31
grv57527-Dec-02 2:31 
GeneralRe: internet connection is up Pin
J. Schermerhorn27-Dec-02 2:37
J. Schermerhorn27-Dec-02 2:37 
Try and use the following code. Other than the using System.Runtime.InteropServices, I have not added an additional resources to the project. I hope this helps you.

-John

C#
<code>
using System;
using System.Runtime.InteropServices;

namespace CSProject
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class ConsoleApp
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		[DllImport("wininet.dll")]
		public static extern bool InternetGetConnectedState(double dFlags);

		static void Main(string[] args)
		{
			double dFlags = 0;
			bool bResult = InternetGetConnectedState(dFlags);
			
                            Console.WriteLine("Internet Connection: {0}", bResult.ToString());
                            //
			// TODO: Add code to start application here
			//
		}
	}
}
</code>

GeneralRe: internet connection is up Pin
karanba27-Dec-02 7:44
karanba27-Dec-02 7:44 
GeneralISP Pin
karanba26-Dec-02 2:05
karanba26-Dec-02 2:05 
GeneralRe: ISP Pin
Tatham26-Dec-02 17:52
Tatham26-Dec-02 17:52 
GeneralRe: ISP Pin
karanba27-Dec-02 0:12
karanba27-Dec-02 0:12 
GeneralRe: ISP Pin
Tatham27-Dec-02 19:27
Tatham27-Dec-02 19:27 
GeneralRe: ISP Pin
Bog30-Dec-02 9:48
Bog30-Dec-02 9:48 
Questioncopy file? Pin
imran_rafique26-Dec-02 1:12
imran_rafique26-Dec-02 1:12 
AnswerRe: copy file? Pin
David23g27-Dec-02 11:56
David23g27-Dec-02 11:56 
Questionhow can I get a reference type object memory size Pin
fftongzhi25-Dec-02 15:07
fftongzhi25-Dec-02 15:07 
AnswerRe: how can I get a reference type object memory size Pin
Nick Parker25-Dec-02 17:52
protectorNick Parker25-Dec-02 17:52 
GeneralRe: how can I get a reference type object memory size Pin
fftongzhi25-Dec-02 19:17
fftongzhi25-Dec-02 19:17 
GeneralRe: how can I get a reference type object memory size Pin
Daniel Turini26-Dec-02 2:37
Daniel Turini26-Dec-02 2:37 
GeneralRe: how can I get a reference type object memory size Pin
fftongzhi26-Dec-02 14:25
fftongzhi26-Dec-02 14:25 
GeneralRe: how can I get a reference type object memory size Pin
leppie27-Dec-02 12:07
leppie27-Dec-02 12:07 
GeneralRe: how can I get a reference type object memory size Pin
fftongzhi29-Dec-02 19:02
fftongzhi29-Dec-02 19:02 
GeneralRe: how can I get a reference type object memory size Pin
leppie30-Dec-02 6:57
leppie30-Dec-02 6:57 
GeneralRe: how can I get a reference type object memory size Pin
grv57526-Dec-02 22:15
grv57526-Dec-02 22:15 

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.