|
Hi, I need a way to find if the computer is connected to internet at the time my program runs on. Is there any?
karanba
|
|
|
|
|
|
Make sure your help notes include that. When using this application you must ping or connect to a website to make sure are connected.
There is an API that escapes me that tells if the machine has an active connection. You could also create a WebRequest and try attempting to connect to a well know site then have your application respond accordingly.
|
|
|
|
|
I believe the only api availiable for online status is for dialup connections. Won't help for broadband. The best solution is just to ping an outside server.
|
|
|
|
|
The same way the network status systen tray icon is updated when you log off or pull your network connection.
I just can't remember the function call now. I found it once for a project but never used it.
|
|
|
|
|
I think the API you are thinking of is 'InternetGetConnectedState' all part of the WinInet library
Technically speaking the dictionary would define Visual Basic users as programmers. But here again, a very generalized, liberal definition is being employed and it's wrong - just plain wrong - Tom Archer 5/12/02
|
|
|
|
|
Hello,
How to set the SystemTime ? GetSystemTime work but SetSystemTime don't work.
|
|
|
|
|
how to map a drive programatically ?
can any body tell ?
r00d0034@yahoo.com
|
|
|
|
|
Does C# and or .NET provide a function similiar to the WinAPI FindWindow or FindWindowEx methods?
|
|
|
|
|
If you simply lookup this forum, you'll probably find a dozen answers for this question.
Beyond that, why should there be anything like xxxWindow method or function call in the .NET API ? Have you heard or read about the "window" term in the .NET doc ? Answer : windows are hidden behind the FCL. You've got to get used to work without explicit windows.
|
|
|
|
|
The original question was
.Does C# and or .NET provide a function similiar to the WinAPI FindWindow or FindWindowEx methods?:
He was not looking for an exact one to one match. Your reply was both rude and unhelpful.
|
|
|
|
|
-you don't understand english
-you don't know what you are talking about
|
|
|
|
|
Yes he does understand English, and he does know what he is talking about. I posted the original message. I also thought you reply was in bad taste.
I am attempting to 'hook' into another applications messsage queue, similiar to what spy++ does but from within the .net framework.
|
|
|
|
|
WizardOfPeyton wrote:
Yes he does understand English, and he does know what he is talking about. I posted the original message. I also thought you reply was in bad taste.
Wise words from someone whose contribution totals 5 messages. You must be kidding.
WizardOfPeyton wrote:
I am attempting to 'hook' into another applications messsage queue, similiar to what spy++ does but from within the .net framework.
messages, windows,... etc.
Definitely not the .NET world. (second attempt).
|
|
|
|
|
Stephane, I think you would get along quite well with Mr Maddox at http://maddox.xmission.com[^]
Be warned, this will take at least an hour of your life away.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
.S.Rod. wrote:
Have you heard or read about the "window" term in the .NET doc
The Form class represents a window within an application. -- MSDN .NET Framework Class Library
potato, patotoe; tomato, tamooto; jerk, S.Rod
|
|
|
|
|
Mark Nischalke wrote:
The Form class represents a window within an application
So, an editbox is a form.
[edit]Both of my posts are about the lack of window concept in the .NET world. Looks like this simple sentence is way too complex to catch for some people (who by the way can't manage to use the Cp search engine either).[/edit]
|
|
|
|
|
You should look at Eric Gunnerson's Win32Window class on GotDotNet. I think it has what you're looking for.
http://www.gotdotnet.com/team/csharp/code/default.aspx[^]
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
There's a class here:
http://www.gotdotnet.com/team/csharp/code/default.aspx
That probably does what you want.
|
|
|
|
|
Hi,
I have string values like this "12345" and i want to convert it to "123.45".
I tried doing something like this:
String.Format({"0:###.##"}, "12345");
But did not get the expected results. I always got "12345" as the out put.
Could you please help me in getting the right out put as suggested in the first line.
Thanks.
Venkatesh
|
|
|
|
|
|
How do you make a button in a form the default button when the user his <enter>?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Set the forms AcceptButton property in the property window.
Pete
Insert Sig. Here!
|
|
|
|
|
In design view select the form. Go to the properties window and look for a property called AcceptButton. Change this property to the button you want to be the default (pick from the drop down list).
Regards
Andy
|
|
|
|
|
For you answers
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|