Click here to Skip to main content
15,889,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: Beginner c# question Pin
jschell16-May-11 8:37
jschell16-May-11 8:37 
AnswerRe: Beginner c# question Pin
jschell16-May-11 8:39
jschell16-May-11 8:39 
Questionhow to disable and enable network access with simple c# code Pin
MohammedMahmoud14-May-11 10:41
MohammedMahmoud14-May-11 10:41 
AnswerRe: how to disable and enable network access with simple c# code Pin
jschell14-May-11 11:31
jschell14-May-11 11:31 
GeneralRe: how to disable and enable network access with simple c# code Pin
MohammedMahmoud14-May-11 11:44
MohammedMahmoud14-May-11 11:44 
GeneralRe: how to disable and enable network access with simple c# code Pin
jschell16-May-11 8:29
jschell16-May-11 8:29 
AnswerRe: how to disable and enable network access with simple c# code Pin
Luc Pattyn14-May-11 12:11
sitebuilderLuc Pattyn14-May-11 12:11 
GeneralRe: how to disable and enable network access with simple c# code Pin
dybs17-May-11 16:11
dybs17-May-11 16:11 
I haven't tried this myself, but one of my co-workers was trying to do the same thing (enable/disable the network adapter, and turn DHCP on/off in C#). Turns out for some network-related tasks, WMI will work in either Win7 or XP, but not the other, and he had to hack the registry when WMI didn't work. WMI was very helpful with a nice generic error message (don't remember what it was exactly, but basically just said "Oops, that didn't work!").

As for the WMI classes, I think he used the Win32_NetworkAdapterConfiguration[^] class.

Dybs
The shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen

AnswerRe: how to disable and enable network access with simple c# code Pin
Richard MacCutchan14-May-11 21:37
mveRichard MacCutchan14-May-11 21:37 
QuestionHow can my hosted asp.net website access my local machine database Pin
akosidandan14-May-11 2:15
akosidandan14-May-11 2:15 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn14-May-11 2:45
sitebuilderLuc Pattyn14-May-11 2:45 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan14-May-11 3:28
akosidandan14-May-11 3:28 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn14-May-11 3:39
sitebuilderLuc Pattyn14-May-11 3:39 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 2:34
akosidandan15-May-11 2:34 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn15-May-11 3:08
sitebuilderLuc Pattyn15-May-11 3:08 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 4:32
akosidandan15-May-11 4:32 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Luc Pattyn15-May-11 4:38
sitebuilderLuc Pattyn15-May-11 4:38 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 4:57
akosidandan15-May-11 4:57 
AnswerRe: How can my hosted asp.net website access my local machine database Pin
Expert Coming14-May-11 5:16
Expert Coming14-May-11 5:16 
GeneralRe: How can my hosted asp.net website access my local machine database Pin
akosidandan15-May-11 2:45
akosidandan15-May-11 2:45 
Questionhow to switch off the parallel port Pin
aeman14-May-11 1:18
aeman14-May-11 1:18 
AnswerRe: how to switch off the parallel port Pin
OriginalGriff14-May-11 1:30
mveOriginalGriff14-May-11 1:30 
AnswerRe: how to switch off the parallel port Pin
OriginalGriff14-May-11 1:35
mveOriginalGriff14-May-11 1:35 
GeneralRe: how to switch off the parallel port Pin
aeman14-May-11 3:47
aeman14-May-11 3:47 
AnswerRe: how to switch off the parallel port Pin
OriginalGriff14-May-11 4:07
mveOriginalGriff14-May-11 4:07 

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.