Click here to Skip to main content
15,908,254 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to make an number only text box? Pin
User 665821-Oct-06 6:44
User 665821-Oct-06 6:44 
AnswerRe: How to make an number only text box? Pin
3Dizard21-Oct-06 10:12
3Dizard21-Oct-06 10:12 
GeneralRe: How to make an number only text box? Pin
Martin2323-Oct-06 0:18
Martin2323-Oct-06 0:18 
Questionhow to Genarate report ??? Pin
iyoko21-Oct-06 5:38
iyoko21-Oct-06 5:38 
Questionhow retrieve data from Cookie?? Pin
iyoko21-Oct-06 5:36
iyoko21-Oct-06 5:36 
AnswerRe: how retrieve data from Cookie?? Pin
Guffa21-Oct-06 6:51
Guffa21-Oct-06 6:51 
GeneralRe: how retrieve data from Cookie?? Pin
iyoko21-Oct-06 22:43
iyoko21-Oct-06 22:43 
QuestionNetwork System.Net.Dns.GetHostByAddress is too slow Pin
bradsnobar20-Oct-06 21:55
bradsnobar20-Oct-06 21:55 
Hello,

I have an app that I use to get poll for the hostnames on my local network.
I use this method to get the information.

System.Net.IPHostEntry hostEntry = System.Net.Dns.GetHostByAddress(address);

The problem is that when GetHostByAddress(...) fails because there is no machine at a given IP address, it throws an exception that takes a long time (a few seconds).

Is there a faster method to call?
Is there a method that does the same thing, but sets an error value instead of throws an exception when a bad thing occurs?
Is there some kind of timeout setting that I can set to like 20 milliseconds? (I can be assured of always being on a lan with a fast response)

I use a whole bunch of threads to speed up the application, which makes the wait more tolerable, but it still takes way too long for my taste.

Is there a better method to use in .Net 2.0

Thanks.
AnswerRe: Network System.Net.Dns.GetHostByAddress is too slow Pin
User 665820-Oct-06 23:43
User 665820-Oct-06 23:43 
QuestionHow to safely raname a vs 2005 project Pin
_marsim_20-Oct-06 21:17
_marsim_20-Oct-06 21:17 
Questione of godgames Pin
ammoh20-Oct-06 21:14
ammoh20-Oct-06 21:14 
QuestionRe: e of godgames Pin
ammoh20-Oct-06 21:21
ammoh20-Oct-06 21:21 
AnswerRe: e of godgames Pin
Vega0221-Oct-06 17:07
Vega0221-Oct-06 17:07 
AnswerRe: e of godgames Pin
LongRange.Shooter23-Oct-06 4:36
LongRange.Shooter23-Oct-06 4:36 
Questiondouble buffering in child controls Pin
ssoffline20-Oct-06 21:05
ssoffline20-Oct-06 21:05 
Questionrecord sound Pin
rzvme20-Oct-06 20:25
rzvme20-Oct-06 20:25 
AnswerRe: record sound Pin
mav.northwind20-Oct-06 21:07
mav.northwind20-Oct-06 21:07 
QuestionTransparency with Windows buttons without flicker Pin
Andreas8820-Oct-06 13:57
Andreas8820-Oct-06 13:57 
QuestionHow to replace multiple spaces in a string to single space. Pin
jerry_pendergraft20-Oct-06 11:58
jerry_pendergraft20-Oct-06 11:58 
AnswerRe: How to replace multiple spaces in a string to single space. Pin
Guffa20-Oct-06 12:09
Guffa20-Oct-06 12:09 
GeneralRe: How to replace multiple spaces in a string to single space. Pin
jerry_pendergraft23-Oct-06 11:00
jerry_pendergraft23-Oct-06 11:00 
GeneralRe: How to replace multiple spaces in a string to single space. Pin
Dustin Metzgar23-Oct-06 11:18
Dustin Metzgar23-Oct-06 11:18 
QuestionCancelling current printing job from printer spool Pin
pnpfriend20-Oct-06 11:32
pnpfriend20-Oct-06 11:32 
QuestionShuffling elements in a control array... [modified] Pin
new_phoenix20-Oct-06 11:06
new_phoenix20-Oct-06 11:06 
AnswerRe: Shuffling elements in a control array... Pin
Stefan Troschuetz20-Oct-06 22:13
Stefan Troschuetz20-Oct-06 22:13 

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.