The think that I can see is BinaryReader is for reading but you create FileStream in ReadWrite mode,change it to Read mode,and for writng into create another stream. If it didn't solved then tell what error you encounter. Also in msdn there are some samples for writing into and reading from file in BinaryReader page,you can check it.
This time, click the "Do not treat <'s as HTML tags" checkbox.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
There are some shortcuts, too. If a param takes an address of a struct, rather than make several unsafe calls from the System.Runtime.InteropServices namespace, you can instead overload SendMessage. For instance, the TVM_SETITEM message for a TreeView Common Control (which System.Windows.Forms.TreeView encapsulates) requires the address of an <code>LPTVITEM for the lParam. You could overload SendMessage like so:
Thank you very much, but in the article you posted I only found how to get running processes, I need to get the applications, like in the first Window in Windows Task Manager.
I searched a lot in CodeProject, but I didn't find nothing really usefull.
Mazy, thanks. The question i want answered was eloquently stated re the article you sent (see below). Unfortunately there was no answer posted-- does anyone know the answer?
HERE IS stantheman's question (and mine):
I dig Agha Ali Raza’s article (Capturing the Screen Image in C#), but what I want to do is capture the image before it hits the screen.
How would I do this?
In essence, I would like to take a screen-shot (bitmap) of a Form *before* it ever gets to the screen.
If you’re interested, - what I want to do is perform a little “graphics-magic” on the image using GDI+ - I want to “dance” the image of the Form around the screen before I present the actual Form. And I don’t know how to do this. I’ve tried overloading the Form.OnPaint method, but I just don’t seem to be getting it right.