DockItem.ResetIcon

From Xojo Documentation

Method


DockItem.ResetIcon()

Supported for all project types and targets.

Resets the icon to its original state, its default appearance, and then draws a new icon.

Sample Code

App.DockItem.ResetIcon
App.DockItem.Graphics.DrawPicture(NewDockIcon, 0, 0, 128, 128)
App.DockItem.UpdateNow