Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp-like container in console app or service
Message
De
12/07/2007 00:31:28
 
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01238471
Message ID:
01239583
Vues:
14
Alex,

Could you post some code? Maybe we might see something obvious ... however, since the developer says that it has to be on a form to work, then maybe what you're trying to do won't work. Although, I don't see why being on a form or not should make any difference. What does this ActiveX component do?

~~Bonnie




>Hi Mike,
>
>Thanks for trying. This is an active-x component that, according to its developer, has to be on a form to work.
>
>In VFP, however, I was able to use it by dropping it visually into a container object and then instantiating that object like I explained in my original question.
>
>I'm trying to use it from C#, and I seem to have been able to instantiate it, but its events are definitely not firing. It's driving me up the wall because I don't know if this isn't working because what I'm doing is just plain incompatible with it or whether it's because my code is the one that's messing things up.
>
>Thanks!
>
>Alex
>
>
>>>Hi everybody,
>>>
>>>In vfp, if I have an active-x component that i'd like to instantiate outside of a form, I can create a class based on the container class, drop my component into the container and then I can instantiate my class through this code elsewhere in my project:
myObject = createobject( "MyClass")
How would I do something like this in C# and in vb.net?
>>>
>>>Thanks!!!!
>>>
>>>Alex
>>
>>I haven't done a lot of this in .NET, so you'll have to excuse me if I say something stupid... but, can't you add the .dll as a project reference, and instatiate you class from there?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform