B4J Question Mainform.Icon

amykonio

Active Member
Licensed User
Longtime User
Hi.
I put an icon in files.
Then create a button where I put the following code:
B4X:
MainForm.Icon = fx.LoadImage(File.DirAssets, "x.png")

Also, I've tested and it works if instead of file.dirassets I use a path...
B4X:
    MainForm.Icon = fx.LoadImage("/Develop/B4J/LoansCollection/Files", "DataEntry.png")

Andreas.
 
Upvote 0

BeneBarros

Active Member
Licensed User
Longtime User
thanks, but i need to change the icon at runtime.
This function does not change the icon on the taskbar.
 
Upvote 0

BeneBarros

Active Member
Licensed User
Longtime User
Thank you ,,, it works perfectly.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…