Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HwndParam Property
Message
De
08/12/1999 14:38:51
Seamus Mason
Alliedsignal Ireland Software
Waterford, Irlande
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
HwndParam Property
Divers
Thread ID:
00300543
Message ID:
00300543
Vues:
76
Hi All, I'm new to VB and am involved in a VB3 to VB5 Upgrade. My question is this : The existing VB3 application subclasses word and keeps it connected to the application by capturing the handle of the active word window and associating it with a picture box on the form as follows:
Set wdBasic = CreateObject("Word.Basic")
wdBasic.AppMaximize

WordHnd = GetActiveWindow()
frmAgreement.sbcWord.HwndParam = WordHnd
.....sbcWord is the picturebox name, VB5 is objecting to HwndParam which I believe was valid in VB3. The nearest property in VB5 for a picturebox is hwnd, however, this is a read-only property and I can't assign a value to it. I'm trying to find out is how is it possible to keep word associated with my application. ( I had hoped it was simply a matter of changing a property name on the picturebox).

What does the HwndParam property (in relation to a picturebox) do in VB3?

Does the code above really subclass the active word window?

Thanks,
Seamus
Répondre
Fil
Voir

Click here to load this message in the networking platform