2013-12-16 11:52 keltezéssel, John Rose írta:
> I want to set the FMain form's icon property (in the FMain Form_Open
> sub) to the picture contained in a .png file which I've added to to the
> Data section (of the Gambas IDE). Here is my non-working code, which
> gives 'Null Object' at runtime:
>     Dim picIcon As Picture
>     picIcon.Load("StreamRecorder.png")
>     FMain.Icon = picIcon
>
> What do I change?
>
> PS the app is also called StreamRecorder.
>

FMain.Icon = Picture["StreamRecorder.png"]

Or

Dim picIcon As Picture = Picture["StreamRecorder.png"]
FMain.Icon = picIcon

Or

Dim picIcon As Picture
picIcon = Picture["StreamRecorder.png"]
FMain.Icon = picIcon


Kendek


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to