Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HwndParam Property
Message
From
08/12/1999 14:38:51
Seamus Mason
Alliedsignal Ireland Software
Waterford, Ireland
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
HwndParam Property
Miscellaneous
Thread ID:
00300543
Message ID:
00300543
Views:
75
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
Reply
Map
View

Click here to load this message in the networking platform