Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp-like container in console app or service
Message
 
À
08/07/2007 17:51:59
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01238471
Message ID:
01239553
Vues:
6
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?
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform