I wanted to make my own class based on ActiveX MS Web Browser control.
But I have two problems while putting objects on a form:
- If I'm making it based on Web Browser control then instance of that object appears in the left upper corner of a form, while it was set to other position
- if I'm putting MS web control into container class, then I have to click on container to show it on the form, because it is not shown when form is running.
What I'm doing wrong?
Giedrius
>You can use Web Browser control. Drop it on a form and add NODEFAULT to Refresh() method. See
Re: Possible to feed html to Explorer ole rather than url? Thread #
930769 Message #
930771 for some sample code.
>
>>
>>I need control which would help me to show formated (non-editable) text.
>>I found RichText ole control, but it is for user's input, not for showing output.
>>I think there should be something related with html.
>>for example:
>>
>>ThisForm.oControl.text = "Label: <b>Value</b><br>Label2: <i>Value2</i>"
>>
>>... and I see on my form:
>>Label:
Value>>Label2:
Value2>>
Giedrius