Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Controls Pin
Judah Gabriel Himango11-Mar-05 11:36
sponsorJudah Gabriel Himango11-Mar-05 11:36 
GeneralRe: Custom Controls Pin
Kwai Cheng Kane11-Mar-05 12:54
Kwai Cheng Kane11-Mar-05 12:54 
GeneralRe: Custom Controls Pin
Judah Gabriel Himango11-Mar-05 18:34
sponsorJudah Gabriel Himango11-Mar-05 18:34 
GeneralRe: Custom Controls Pin
Kwai Cheng Kane14-Mar-05 5:04
Kwai Cheng Kane14-Mar-05 5:04 
GeneralAnybody else having problems with arrow keys Pin
theDexter11-Mar-05 9:08
theDexter11-Mar-05 9:08 
Generaladding item to default menu on windows form Pin
asayyam Khan11-Mar-05 8:11
asayyam Khan11-Mar-05 8:11 
GeneralRe: adding item to default menu on windows form Pin
Pooria Madani11-Mar-05 16:23
Pooria Madani11-Mar-05 16:23 
Generalipconfig commands in C# Pin
Vodstok11-Mar-05 6:07
Vodstok11-Mar-05 6:07 
I am about ready to stab myself with a screwdriver i am so frustrated with this....


I have been playing around with WMI for a day now, and have had great luck retrieving information using it. However, I noticed that the "Win32_NetworkAdapterConfiguration" class has a method for releasing and renewing IP addresses. Now, i know this is somehting i can do from a command line easily enough, but i am trying to build an app that will let people that are more or less hopeless when it comes to command line programs perform this very simple procedure. i have been using this so far, but keep getting errors:

<br />
			ManagementObject mo = new ManagementObject("Win32_ComputerSystem.Name='" + inf.Machine() + "'", opt);<br />
<br />
<br />
			object[] ar = {"ReleaseDHCPLeaseAll"};<br />
			mo.InvokeMethod("ReleaseDHCPLeaseAll",ar);


inf.Machine() is a string method i am using to get the machine name.


______________________
Yes, I am the highly suggestable type.WTF | :WTF:
GeneralRe: ipconfig commands in C# Pin
Dave Kreskowiak11-Mar-05 7:12
mveDave Kreskowiak11-Mar-05 7:12 
GeneralGDI+ Gradients Pin
C Flat11-Mar-05 5:50
C Flat11-Mar-05 5:50 
GeneralRe: GDI+ Gradients Pin
TylerBrinks11-Mar-05 6:05
TylerBrinks11-Mar-05 6:05 
GeneralRe: GDI+ Gradients Pin
C Flat11-Mar-05 6:31
C Flat11-Mar-05 6:31 
GeneralRe: GDI+ Gradients Pin
TylerBrinks11-Mar-05 7:11
TylerBrinks11-Mar-05 7:11 
GeneralRe: GDI+ Gradients Pin
Judah Gabriel Himango11-Mar-05 6:06
sponsorJudah Gabriel Himango11-Mar-05 6:06 
GeneralRe: GDI+ Gradients Pin
MoustafaS11-Mar-05 8:00
MoustafaS11-Mar-05 8:00 
GeneralRe: GDI+ Gradients Pin
C Flat13-Mar-05 7:31
C Flat13-Mar-05 7:31 
GeneralAnother thread question Pin
PaleyX11-Mar-05 2:54
PaleyX11-Mar-05 2:54 
GeneralRe: Another thread question Pin
PaleyX11-Mar-05 2:55
PaleyX11-Mar-05 2:55 
GeneralRe: Another thread question Pin
TylerBrinks11-Mar-05 4:51
TylerBrinks11-Mar-05 4:51 
GeneralRe: Another thread question Pin
PaleyX11-Mar-05 5:18
PaleyX11-Mar-05 5:18 
GeneralRe: Another thread question Pin
TylerBrinks11-Mar-05 5:56
TylerBrinks11-Mar-05 5:56 
GeneralAmother thread question Pin
PaleyX11-Mar-05 2:48
PaleyX11-Mar-05 2:48 
GeneralRe: Amother thread question Pin
turbochimp11-Mar-05 16:18
turbochimp11-Mar-05 16:18 
GeneralReloading a webform page Pin
3Dizard11-Mar-05 2:40
3Dizard11-Mar-05 2:40 
GeneralRe: Reloading a webform page Pin
DavidNohejl11-Mar-05 7:10
DavidNohejl11-Mar-05 7:10 

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.