|
WOW THANKS! I just converted it into C# code. Thanks!
|
|
|
|
|
I am interested in writing a program in C# to monitor my bandwidth usage (up and down) on my satellite internet. Is anyone aware of existing source code? Any suggestions?
|
|
|
|
|
There's a few on SourceForge. Check out FreeMeter[^].
(If you choose not to make your own, I recommend NET Traffic Meter[^]. It's very, very simple and works well.)
|
|
|
|
|
Tnx for pointing we in the right direction
|
|
|
|
|
Free meter you suggested is exactly what I needed. Downloaded source and compiled under Net 2005 without problem. I will be able to extract what I need from there. Many Thanks.
Electriac
|
|
|
|
|
Awesome. Please ignore this next sentence if you're aware of it: Free Meter is licensed under the GPL, so if you make any modifications please respect its license.
|
|
|
|
|
Hi,
I need to collect the images from an RTF file as image objects that I can work on individually. Any ideas?
I tried loading the RTF file in the RTFTextBox in WinForms. The images show up correctly, but I still haven't figured out a way of accessing them directly.
Hope someone can help. Thanks!
Sarab
|
|
|
|
|
|
Hi Giorgi,
Yes - that's the problem! I've found plenty of examples describing how to insert images into RTF but none on how to do the opposite! Am surprized no one else has had the need for this..
Hope someone else can help ... ?
Sarab
|
|
|
|
|
The RTF specification is available here[^] if that's any help. I think you're gonna have to parse the rtf and reconstruct the image from the data that's embedded.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
Hi,
Thanks to everyone for your ideas! I managed to get the images. Here's how:
Images in RTF are as hexadecimal strings (as noted from the specifications). So all that needed to be done was:
1. Convert the hexadecimal to a byte array:
http://www.koders.com/csharp/fid8BD422682325288B294A97714AC061D115F0307D.aspx[^])
2. Then make an image out of this array:
byte[] bData; // The byte array
MemoryStream memStream = new MemoryStream(bData, 0, bData.Length);
Image iMage = Image.FromStream(memStream);
Et voila!
Sarab
|
|
|
|
|
Hi.
How can I prevent closing WinApp even with Windows Task Manager ?
Thanks in advance.
|
|
|
|
|
|
Tell me a legitimate reason why you'd want to!
|
|
|
|
|
Well, for example , for creating an AntiVirus.
Is it that ?
|
|
|
|
|
|
You can think as you wish.
Thanks anyway.
|
|
|
|
|
Because antivirus software always exhibits malware features itself.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Mohammad Dayyan wrote: Well, for example , for creating an AntiVirus.
Is it that ?
Nope - That's not it!
|
|
|
|
|
You cant
the user / computer owner should always have control.*
*This is not always the case in vista
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
It's not possible*, and for good reason.
|
|
|
|
|
The JZ wrote: It's not possible
Well, it is actually possible, just difficult, for good reaason...and no, I won't say how to do it.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
That's why I put the *.
|
|
|
|
|
The short answer is that it's not possible. There are very few legitimate reasons for creating an application that exhibits this type of behavior under any circumstance.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|