Click here to Skip to main content
15,914,387 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting better memory performance Pin
Nader Elshehabi14-Oct-06 18:02
Nader Elshehabi14-Oct-06 18:02 
AnswerRe: Getting better memory performance Pin
leppie14-Oct-06 19:47
leppie14-Oct-06 19:47 
AnswerRe: Getting better memory performance Pin
Guffa15-Oct-06 1:17
Guffa15-Oct-06 1:17 
GeneralRe: Getting better memory performance Pin
kshet2615-Oct-06 8:00
kshet2615-Oct-06 8:00 
AnswerRe: Getting better memory performance Pin
Guffa15-Oct-06 12:12
Guffa15-Oct-06 12:12 
AnswerRe: Getting better memory performance Pin
Guffa15-Oct-06 14:52
Guffa15-Oct-06 14:52 
AnswerRe: Getting better memory performance Pin
WillemM15-Oct-06 1:22
WillemM15-Oct-06 1:22 
QuestionWMI not working. Did I forget something? Pin
junus14-Oct-06 14:09
junus14-Oct-06 14:09 
Hi folks,

today I was trying to do some stuff with WMI.
I was trying to solve a problem many people seem to have who drag their laptop from some place to another (eg from home to university). Maybe at home you have one configuration for your networking needs and university makes you use completely different network settings. So basically what i was trying to do is a little application that allows you to save several profiles with configurations (such as IP Addresses, Subnet etc) and assign them when needed.

the actual problem appeared when i was trying to utilize WMI to assign an address to a certain network adapter. the code looks pretty much like in this article:

http://www.codeproject.com/cs/system/cstcpipwmi.asp

The second part of the article contains the assignment of an IPAddress to the adapter.
For me this thing isn't working. I dont get any Exceptions, everything just works fine, but nothing happens. I do the InvokeMethod thing (Win32_NetworkAdapterConfiguration.EnableStatic) and that is just it. I dont get a result, the Address stays as it is.

the wmi works fine for other stuff such as simply retrieving the adapters to see which ones can be used or are enabled or to see the MAC or whatever.

Did anyone of you have problems with wmi? Is maybe even my attempt to solve my original problem wrong (should I even use WMI to do this?) Did i forget to do some security clearance within the framework or something?

I use Visual Studio 2005 Professional Edition (VS Version 8.0.50727.42) on a Windows Professional. .NET 2.0 installed etc.

Thanx in advance
AnswerRe: WMI not working. Did I forget something? Pin
Dave Kreskowiak14-Oct-06 19:31
mveDave Kreskowiak14-Oct-06 19:31 
QuestionListView SubItem Rollover Pin
smarttom9914-Oct-06 13:42
smarttom9914-Oct-06 13:42 
AnswerRe: ListView SubItem Rollover Pin
Nader Elshehabi14-Oct-06 14:20
Nader Elshehabi14-Oct-06 14:20 
GeneralRe: ListView SubItem Rollover Pin
smarttom9914-Oct-06 15:36
smarttom9914-Oct-06 15:36 
QuestionApplication freezes ... Pin
Jad Jadallah14-Oct-06 12:29
Jad Jadallah14-Oct-06 12:29 
AnswerRe: Application freezes ... Pin
Dave Kreskowiak14-Oct-06 19:29
mveDave Kreskowiak14-Oct-06 19:29 
AnswerRe: Application freezes ... Pin
S. Senthil Kumar15-Oct-06 7:31
S. Senthil Kumar15-Oct-06 7:31 
QuestionHow to go to next window Pin
Yustme14-Oct-06 11:03
Yustme14-Oct-06 11:03 
AnswerRe: How to go to next window Pin
Nader Elshehabi14-Oct-06 13:22
Nader Elshehabi14-Oct-06 13:22 
GeneralRe: How to go to next window Pin
Yustme14-Oct-06 22:46
Yustme14-Oct-06 22:46 
GeneralRe: How to go to next window Pin
sam#15-Oct-06 0:10
sam#15-Oct-06 0:10 
GeneralRe: How to go to next window Pin
Yustme15-Oct-06 0:31
Yustme15-Oct-06 0:31 
Questiondetecting keystrokes...How? Pin
TheCardinal14-Oct-06 3:44
TheCardinal14-Oct-06 3:44 
AnswerRe: detecting keystrokes...How? Pin
Nick Parker14-Oct-06 4:50
protectorNick Parker14-Oct-06 4:50 
GeneralRe: detecting keystrokes...How? Pin
TheCardinal14-Oct-06 6:45
TheCardinal14-Oct-06 6:45 
Questiondata stucture Pin
mcrooks14-Oct-06 2:21
mcrooks14-Oct-06 2:21 
AnswerRe: data stucture Pin
Nick Parker14-Oct-06 4:53
protectorNick Parker14-Oct-06 4:53 

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.