|
You're going to hate this answer, but it paints whatever the control wants to paint.
Part of the Paint event tells it what part needs to be redrawn, but if the control ignores that it will attempt to redraw everything. The paint event is smart enough to set the clipping area so only the part that was supposed to be redrawn actually gets refreshed in the control.
James
Sig code stolen from David Wulff
|
|
|
|
|
if i have a class like
class{
String *str;
int a ;
}
i want to right its object into file.after that i want to send it to different computer through network and again want to read it again if i have the same class there may i read it into that class object.
is it possible ?
can any body tell the syntex of reading and writing an object into file?
r00d0034@yahoo.com
|
|
|
|
|
|
A bundle of thanks.
i need a little more help how to write data using FileStream into a file or read theobject from a file to the FileStream object only then it is possible to serialize or Deserialize it?
HOW to creat FileStream object that coud write into a file ?
can you explain any of its constructor?
i want to write a hastable object into a file that contain class objects,and class objects further contain hashtable and other class objects.
may i write that hashtable into a file and retrive again?
i study the api but could not understand what methods to use.
r00d0034@yahoo.com
|
|
|
|
|
|
thanks again.
one more question.this line of code
bf.Serialize(stream, data);
alwas write data at the end of file or not ?
i mean where it write in the file.
this line of code
object obj = bf.Deserialize(stream);
alwas read data from the begining of file or not ?
i mean where it read from the file.
r00d0034@yahoo.com
|
|
|
|
|
im not sure, i presume it reads from where ever the current position, set in stream.Seek to the end of the file, but i cant swear to it.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.
|
|
|
|
|
Anything you do with WIN32 and C/C++ is possible in C# thanks to interop.
When you know the method signature, you just need to declare it in your code with a [DllImport("dllname")] attribute like in ::SendMessage :
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);
Even more interesting is that in your case there are COM components. And the VS.NET IDE automatically imports their type-library, wrap interfaces and makes them look like any namespace to you. That's what you get for instance when you need integration with Internet Explorer, MS Office, ...
Now about DirectShow itself, this SDK has both COM Components and simple low-level APIs. Just help yourself. Below is 2 CP articles about it :
DirectShow media player[^]
DirectShow.NET[^]
You've got an introductory article about DirectShow in MSDN Mag - july 2002[^].
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
|
|
Nnamdi Onyeyiri wrote:
oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly
You just need to implemenet an indexer We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy
Cheers
PS: Where have u been?
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
public class EBGroupCollection : CollectionBase
public EBGroup this[int index]
{
get
{
return (EBGroup)this.List[index];
}
set
{
this.List[index] = value;
}
}
public EBGroupCollection()
{
}
public void Add(EBGroup value)
{
this.List.Add(value);
}
}
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
I just don't get those strange indexers.
Nnamdi Onyeyiri wrote:
EBGroup this[int index]
It looks like the good old C++'s operator[]
Ñ There is only one MP Ð
|
|
|
|
|
Yes , the quote button is gone, they are the same
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
|
Oops, make sure the type you are adding has a default constructor, as allways
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
yer, it/they does/do.
EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes?
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Nnamdi Onyeyiri wrote:
EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes?
Yes you can! I would sugest you make a few small skeleton classes to see where the problem lies...start at the other container iow that 1st collection you mentioned.
Good luck
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
We had plenty disscussions about that during the last week.
|
|
|
|
|
|
Nnamdi Onyeyiri wrote:
what do you mean
Havent seen many posts from you lately, was just wondering?
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
Are there any good articles that anyone is aware of that explains in detail specifically what interfaces are and how they are used in C#. Thanks.
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|
|
|
Thanks Paul,
A little further down in that discussion John Burton makes a comment [^] about them which makes me think they are used to describe a virtual function as we do in C++. However with your[^] comment they appear to implement the flavor of inheritance to a class. Both of which make some sense, however I would really like to read a full article where they are described in great detail. Thanks for the link though.
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|