Click here to Skip to main content
15,916,371 members
Home / Discussions / C#
   

C#

 
QuestionBug in DateTimePicker control??? Pin
Luis Alonso Ramos20-Oct-04 16:12
Luis Alonso Ramos20-Oct-04 16:12 
GeneralWindow messaging for IPC Pin
ppp00120-Oct-04 14:27
ppp00120-Oct-04 14:27 
GeneralRe: Window messaging for IPC Pin
Heath Stewart20-Oct-04 16:16
protectorHeath Stewart20-Oct-04 16:16 
GeneralRe: Window messaging for IPC Pin
Alex Korchemniy20-Oct-04 19:37
Alex Korchemniy20-Oct-04 19:37 
GeneralPassing a controller object Pin
RikB20-Oct-04 14:09
RikB20-Oct-04 14:09 
GeneralRe: Passing a controller object Pin
perlmunger21-Oct-04 7:25
perlmunger21-Oct-04 7:25 
GeneralNetwork in C#: how to detect that I have a break connection Pin
youssef20-Oct-04 12:24
youssef20-Oct-04 12:24 
GeneralRe: Network in C#: how to detect that I have a break connection Pin
Heath Stewart20-Oct-04 16:36
protectorHeath Stewart20-Oct-04 16:36 
As we've discussed in this board before, you should P/Invoke any one of various native functions like InternetCheckConnection:
public bool Connected
{
  get { return InternetCheckConnection("http://www.codeproject.com", 0, 0); }
}
[DllImport("wininet.dll", CharSet=CharSet.Auto, SetLastError=true)]
static extern bool InternetCheckConnection(string url, int flags, int reserved);
You can also use this and similar functions defined in the WinInet library to force connections.

Look-up that function in the MSDN Library[^] and you'll find more options with other similar functions.

The pure .NET-way is just to request a network resource and handle SocketException or WebException (often times the SocketException is an inner-exception).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
QuestionRegional parameters : how to change the langage of the system ? Pin
youssef20-Oct-04 12:24
youssef20-Oct-04 12:24 
AnswerRe: Regional parameters : how to change the langage of the system ? Pin
Nick Parker20-Oct-04 16:51
protectorNick Parker20-Oct-04 16:51 
GeneralVery Simple question Pin
ben220-Oct-04 11:52
ben220-Oct-04 11:52 
GeneralRe: Very Simple question Pin
Dave Kreskowiak20-Oct-04 12:24
mveDave Kreskowiak20-Oct-04 12:24 
GeneralUser Control Arrow Keys Not Being detected Pin
R2B220-Oct-04 11:22
R2B220-Oct-04 11:22 
GeneralProblem with designer and custom UI editor Pin
object8820-Oct-04 9:52
object8820-Oct-04 9:52 
GeneralRe: Problem with designer and custom UI editor Pin
Heath Stewart20-Oct-04 10:12
protectorHeath Stewart20-Oct-04 10:12 
GeneralRe: Problem with designer and custom UI editor Pin
object8820-Oct-04 10:35
object8820-Oct-04 10:35 
GeneralRe: Problem with designer and custom UI editor Pin
object8820-Oct-04 11:07
object8820-Oct-04 11:07 
GeneralRe: Problem with designer and custom UI editor Pin
Heath Stewart20-Oct-04 13:33
protectorHeath Stewart20-Oct-04 13:33 
GeneralRe: Problem with designer and custom UI editor Pin
Heath Stewart20-Oct-04 13:34
protectorHeath Stewart20-Oct-04 13:34 
GeneralConfigurationSettings.AppSettings Pin
Guillermo Jimenez20-Oct-04 5:50
Guillermo Jimenez20-Oct-04 5:50 
GeneralRe: ConfigurationSettings.AppSettings Pin
Guillermo Jimenez20-Oct-04 5:51
Guillermo Jimenez20-Oct-04 5:51 
GeneralRe: ConfigurationSettings.AppSettings Pin
Heath Stewart20-Oct-04 6:18
protectorHeath Stewart20-Oct-04 6:18 
GeneralGDI+ drawing onto picturebox Pin
xiaowenjie20-Oct-04 5:39
xiaowenjie20-Oct-04 5:39 
GeneralRe: GDI+ drawing onto picturebox Pin
Heath Stewart20-Oct-04 6:50
protectorHeath Stewart20-Oct-04 6:50 
GeneralRe: GDI+ drawing onto picturebox Pin
xiaowenjie20-Oct-04 7:47
xiaowenjie20-Oct-04 7:47 

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.