« A few Conference Note… | Home | Conference schedule u… »

Tip of day: Dynamically add webimageview to webpage


A client asked for adding a webImageView to a webpage. Okay, there is no plugin solution needed as this can be done if you try a few things:

dim i as new WebImageView

i.Name = "logoview"
i.URL = "http://www.monkeybreadsoftware.de/realcon2011logo/logo.php"
i.Left = 10
i.top = 10
i.Width = 460
i.Height = 80

self._addcontrol i

This works. How to find the _addcontrol method? Well, I first looked for embed method, insertcontrol, addcontrol, constructor parameters in the documentation. As there is nothing, I tried a few things. You can simply code and see what the compiler says. If you type "self._addcontrol" and compile you get either an unknown identifier or missing parameters. In the second case you know the method exists.
Join the feedback case: Add addcontrol method to webview
19 05 11 - 12:31
two comments

You are my hero :)
Kvapil (URL) - 19 05 11 - 12:38

Any method you stumble across that begins with an underscore is a private, internal method of our framework that could change or even disappear entirely at any time. I would strongly recommend AGAINST using any of them.
Geoff Perlman (URL) - 19 05 11 - 16:01


  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.