|
Use a performance counter control.
Set the following properties:
CategoryName = Network Interface
CounterName = Current Bandwidth
InstanceName = name of the network adapter you want the bandwidth from
Hope this was helpful.
Brad
The secret to creativity is knowing how to hide your sources. - Albert Einstein
|
|
|
|
|
How can i obtain the age of a computer in our network, Is it possible by quering the WMI database
Albert
|
|
|
|
|
Hi,
i have creating a editor using RichTextBox i am not getting how to go to a specific line when i use the goto line number.
Thank you
|
|
|
|
|
If you're using .NET 2.0 you should be able to achieve this by first calling the GetFirstCharIndexFromLine and then assigning the return value to the SelectionStart property.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thank you
With Regards
Hiremath
|
|
|
|
|
When trying to debug a C# application, I get an erorr message that the debugger cannot start. Reason: "The binding handle is invalid".
Googling reveals that is due to Terminal Services not running.
Service control manager says it cannot start terminal Services because "the system cannot find the file specified".
Any ideas?
[edit]
XP Pro SP2
"Add/Remove Windows Components" does not list Terminal Services at all, and the service is listed only as "TermService" in the service control manager
[/edit]
-- modified at 4:00 Thursday 15th February, 2007
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
hi 2 all
i want to encoding dll so that i can encode or convert my mp3 files to some other formats. i tried to search on google but i didnt found anything.
any help would be appreciated.
regards
rahmat ullah.
|
|
|
|
|
Hi,
How to use message box at serverside in c#.using dllimports its getting hanged and using javascript its a client side.can i have a solution for this problem
thanking u
jaya
|
|
|
|
|
Response.Write("javascript:alert('This is my msg!);");
I'm not sure why you wanna use "dllImport"..
|
|
|
|
|
you can't run a message box on the server, if you do, the server will stop and the client won't be able to do a thing about it.
Why would you need dllimport ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is there any way to change the theme of the form using dll , e.g i have some dlls which can change the theme of window . But how could i import them into my form project to change its theme like this http://www.codeproject.com/cs/miscctrl/XPTaskBar.asp ?
Thanks .
|
|
|
|
|
I have a requirement to draw a rectangle and a line on a the
container control and sometimes as i move the mouse the drawing must
occur on top of user controls and other controls, which are placed in
the container control...
I'm using System.Drawing namespace (C#) to perform the drawing.
But as i move the mouse and draw the rectangles, the drawing takes
place behind the user controls....I have a requirement to draw the
shapes on top of the controls...
please help.....
Thanks in advance !!!!!
|
|
|
|
|
I need to convert a normal string to base64. This I need to access the internet through a HTTP Proxy. I believe I must use Convert.ToBase64 but this function only take byte[] as input. Can someone help?
|
|
|
|
|
string s = "ABCDEFGHIJ";
string b64 = Convert.ToBase64String(Encoding.ASCII.GetBytes(s));
Console.WriteLine(b64);
|
|
|
|
|
Thanx!!
It works ....
|
|
|
|
|
Hi everyone,
I want to learning C# and for this purpose I bought a C# book and studing it however I know c++ but I think its better that I start of first.I was studing these objects
1-whats C#,...
2-save values in variables
3-control statements(selection,iteration
4-working with operators
5-Classes
6-Method and member functions of class
7-Arrays/enumerators/structures/Interfaces/Events/Delegates
8-Access custom to methods
9-Inheritance
And also see benginners articles on the codeproject but I dont know why I couldnt understood C# very well
and in fact after a short time I tire to work with C#.I guess maybe I habit to vc++ and its environment.
Now my question is what's the best way to learn it?
-- modified at 10:40 Thursday 15th February, 2007
|
|
|
|
|
messages wrote: Now my question is what's the best way to learn it?
Going through CP articles.
Here is an example[^]
|
|
|
|
|
Thanks for link
|
|
|
|
|
Pravarakhya wrote: Going through CP articles.
.. cant agree more!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Only way to learn C# is:
1 Forget C++ use only the syntax
2 Read the conception of .Net Framework and C#
2 Learn more about event handling
3 Read some articles about databases and C#
4 Read 10 (beter 20) books for C#
That's it
You know C++. OK so, how many books you have reed to learn c++
Strahil Shorgov
|
|
|
|
|
Exactly I read two books for c++ and also read MSDN and studied example MSDN(I dont know but I think maybe C# is difficult than C++),however C# almost like C++ but I dont know why I couldnt learn it
|
|
|
|
|
messages wrote: I dont know but I think maybe C# is difficult than C++
Forget that and you'll learn C# in no time.
|
|
|
|
|
"I dont know but I think maybe C# is difficult than C++"
Wrong. C++ is difficult than C#.
However, I started with C++, but for me C# was easy to learn. C++ is more powerful than C#. But C# is more inteligent.
Try to start from begining. (Use "Hello World" program and so on).
Repead the steps that you used to lear C++
Strahil Shorgov
|
|
|
|
|
C# is a lot easier than C/C++;
If you are used to program in C++ with classes and STL then you won't have problems to learn C#, if you are used to mix C and C++ on your code then it will cost a little more.
In C# you forget about the pointers, basically everything is a pointer except of primitives but everything is managed internally and the GC take care of the memory release, basically it was borrowed the from a prototype language that never made it, I think is called “Java”, only you will use pointers on unsafe code when you need to work with the memory directly, which is not pretty common, if you know the framework usually almost always there is a way to have the same performance doing it with pure C#.
C# almost "force" you to use classes/inheritance/polymorphism/generics, so you will lose many vicious that probably you have from C/C++ and you will spend a lot more time thinking in the right pattern/design than spend time finding where the heck the memory leak is.
|
|
|
|
|
starcraft4ever wrote: C# almost "force" you to use classes/inheritance/polymorphism/generics
I still mourn the loss of multiple inheritance.
|
|
|
|