Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: Tracing different threads Pin
Keith Barrow11-Oct-09 2:30
professionalKeith Barrow11-Oct-09 2:30 
Questionopen exe file Pin
Member 432709611-Oct-09 1:28
Member 432709611-Oct-09 1:28 
AnswerRe: open exe file Pin
dataminers11-Oct-09 1:53
dataminers11-Oct-09 1:53 
AnswerRe: open exe file Pin
Md. Marufuzzaman11-Oct-09 2:12
professionalMd. Marufuzzaman11-Oct-09 2:12 
AnswerRe: open exe file Pin
Abhijit Jana11-Oct-09 3:50
professionalAbhijit Jana11-Oct-09 3:50 
QuestionGet IP from IPInterfaceProperties Pin
Johan Martensson11-Oct-09 0:33
Johan Martensson11-Oct-09 0:33 
AnswerRe: Get IP from IPInterfaceProperties Pin
dataminers11-Oct-09 1:58
dataminers11-Oct-09 1:58 
GeneralRe: Get IP from IPInterfaceProperties Pin
Johan Martensson11-Oct-09 4:07
Johan Martensson11-Oct-09 4:07 
Thanks for your reply

I'm not sure how to tell which nic has the ip-number that I get from using your code.

Anyway, I changed my code to this, looping the addresses and checking for IsDnsEligible, that seems to do the trick or am I missing something?

foreach (UnicastIPAddressInformation address in ipProperties.UnicastAddresses)
{
	if(address.IsDnsEligible)
	{
		adapter.Address = address.Address.ToString();
		adapter.SubnetMask = address.IPv4Mask.ToString();
		break;
	}
}


http://johanmartensson.se - Home of MPEG4Watcher
http://www.tinywebradio.com - Home of TinyWebRadio

Questionwant dll to change pitch of the sound in C#. Pin
bill khan10-Oct-09 22:51
bill khan10-Oct-09 22:51 
QuestionCustom UserControl and the Designer Pin
softwarejaeger10-Oct-09 22:33
softwarejaeger10-Oct-09 22:33 
AnswerRe: Custom UserControl and the Designer Pin
Henry Minute11-Oct-09 1:18
Henry Minute11-Oct-09 1:18 
QuestionUDP SOCKS5 Help [modified] Pin
murktinez10-Oct-09 21:58
murktinez10-Oct-09 21:58 
AnswerRe: UDP SOCKS5 Help Pin
murktinez11-Oct-09 7:40
murktinez11-Oct-09 7:40 
Questioninternet explorer on page event hook Pin
nchandra.org10-Oct-09 14:01
nchandra.org10-Oct-09 14:01 
QuestionRefresh PropertyGrid on control resize? Pin
xJorDyx10-Oct-09 12:12
xJorDyx10-Oct-09 12:12 
AnswerRe: Refresh PropertyGrid on control resize? Pin
Mycroft Holmes10-Oct-09 12:32
professionalMycroft Holmes10-Oct-09 12:32 
AnswerRe: Refresh PropertyGrid on control resize? Pin
Henry Minute10-Oct-09 12:34
Henry Minute10-Oct-09 12:34 
QuestionWebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 12:02
harold aptroot10-Oct-09 12:02 
AnswerRe: WebBrowser control steal focus on page load Pin
OriginalGriff10-Oct-09 22:26
mveOriginalGriff10-Oct-09 22:26 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 22:31
harold aptroot10-Oct-09 22:31 
GeneralRe: WebBrowser control steal focus on page load Pin
OriginalGriff10-Oct-09 22:53
mveOriginalGriff10-Oct-09 22:53 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 23:07
harold aptroot10-Oct-09 23:07 
GeneralRe: WebBrowser control steal focus on page load Pin
OriginalGriff10-Oct-09 23:27
mveOriginalGriff10-Oct-09 23:27 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot10-Oct-09 23:40
harold aptroot10-Oct-09 23:40 
GeneralRe: WebBrowser control steal focus on page load Pin
harold aptroot11-Oct-09 5:39
harold aptroot11-Oct-09 5:39 

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.