Re: static function for HTML Viewer by Peter
Peter
Thu Sep 23 09:11:39 CDT 2004
Parent is the container control or form onto which the control is placed so
for example if the code is within your form code you would use
[C#]
pViewer.Parent = this;
[VB]
pViewer.Parent = Me
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
"alan" <alan@discussions.microsoft.com> wrote in message
news:2B20507B-842A-4EFF-B83F-DB5F3BCB7318@microsoft.com...
> how should i instantiate viewer.parent?
> thanks a lot!
>
> private static void pSetupViewer()
> {
> pViewer = new HTMLViewer ();
> pViewer.Parent = new _________;
> // resize it
> pViewer.Bounds = new Rectangle(10, 30, 230, 160);
> string mLocalurl = "file://dir/a.html";
> pViewer.Url = mLocalurl ;
> }