|
Hi
Can anyone tell me, how we can find the our system connected to the WEB with C#?
Thanks
Sorry for my English. I'm a freshman .
|
|
|
|
|
Please clarify what you are trying to do, your question makes no sense.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
OK, thanks Ashfield.
I'm using dial up modem for connecting to Internet. Now I want to write a program that detect, when my computer connected to Internet.
Do you understand what I mean ?
Sorry for my English. I'm a freshman .
|
|
|
|
|
I understand now. The only way I know of (and its a long time since I needed to do this) is to try and open a web page (say google.com) and trap any error messages. There may be other ways, as I say its a long time since I needed to do it.
Hope this helps
Bob
Ashfield Consultants Ltd
|
|
|
|
|
M-Dayyan,
The simplest way (probably) would be to ping an internet address, and if something comes back, you have the internet.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
In the System.Net.NetworkInformation namespace check out the NetworkInterface and NetworkChange classes.
The NetworkChange has the NetworkAvailabilityChanged event. I think that is what you want.
|
|
|
|
|
Thanks Zoltan .
Can you explain more, I'm new in C#.
Thanks in advance ...
Sorry for my English. I'm a freshman .
|
|
|
|
|
Read this article here[^]
|
|
|
|
|
Thanks Zoltan .
Sorry for my English. I'm a freshman .
|
|
|
|
|
I am using the Free Image library to implement the .pcx image format into my image conveter application. Anyone care to help? THe main problems are The Out of Memory exception and I'm not sure if the library has the availible methods needed to be compatible with the program.
|
|
|
|
|
When do you receive the OutOfMemoryException?
Life, family, faith: Give me a visit.
From my latest post: "A lot of Christians struggle, perhaps at a subconscious level, about the phrase "God of Israel". After all, Israel's God is the God of Judaism, is He not? And the God of Christianity is not the God of Judaism, right?"
Judah Himango
|
|
|
|
|
During runtime when trying to convert a .pcx image to another image type..It happens when I load the pcx imgage into memory to be converted..
|
|
|
|
|
Chrisfrmatl wrote: en I load the p
Can you show us some code and point the exact line where it occurs? I've seen OutOfMemoryExceptions occur because some GDI object (such as a Bitmap) is in the wrong format, or is an invalid GDI object.
Life, family, faith: Give me a visit.
From my latest post: "A lot of Christians struggle, perhaps at a subconscious level, about the phrase "God of Israel". After all, Israel's God is the God of Judaism, is He not? And the God of Christianity is not the God of Judaism, right?"
Judah Himango
|
|
|
|
|
|
Hello All,
Can anybody tell me how can I send a Cancellation meeting request using smtp mail.
Thanks
Alok...
|
|
|
|
|
|
I doubt SMTP can do that. It will be implementation specific. So go ask the people who wrote the server app.
|
|
|
|
|
|
|
Hi,
In my project, i have to access the controls of a running application for ex, a Accessing all controls of a running windows
application developed in .net.I have to get all those controls of the running application and change its caption.
ex(buttonName,LabelName etc).I tried to implemented that ,but only caption of label alone gets changed and Button captions
and other control captions are not changed.I am working in C# windows applications.Please provide me the code in C#.Thanks in
advance.
regards,
Sherin
|
|
|
|
|
Since, on windows, the controls will be created and drawn via the windows API, I suggest you enumerate all the child windows via EnumChildWindows[^] and call SetWindowText[^] on each of the controls you like to change.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I want to freeze win form for, say, 5 min after a wrong username and password is entered for three times.
Its not the will, its the wish which drives fortune!
|
|
|
|
|
Thread.Sleep(300000)
|
|
|
|
|
Or simply Form.Enabled = false and enabling the form again after a Timer with tick 300000.
Freezing the thread is a bit harsh
modified 12-Sep-18 21:01pm.
|
|
|
|
|
This[^] should get you started.
“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra
|
|
|
|