I wrote a library which has a function call that returns a System.Drawing.Bitmap. Everything works great and I can access it just fine from a C# WPF application. However, now I need to make it work with a VB 6 application and for the life of me I can`t get it to work. I have a VB6 picturebox (note: this could be changed to an image control if necessary; we just need the image to display on the screen somehow) Right now I have tried the following unsuccessfully:
Set Form1.PictureBox1.Image = myImage <-- This causes invalid use of property on 'Form1.PictureBox1.Image'
Form1.PictureBox1.Image = myImage <-- This causes invalid use of property on 'Form1.PictureBox1.Image'
Form1.PictureBox1.Picture = myImage <-- This cause 'type mismatch'
Help please! I don`t know VB at all let alone VB 6.