Show / Hide Table of Contents

Method dialog.Icon(+ 1 overload)


Overload

Sets common icon.

public dialog Icon(DIcon icon)
Parameters
icon  (DIcon)

Enum: Warning, Error, Info, Shield, App.

Returns
dialog

Remarks

The value also can be a native icon group resource id (cast to DIcon), in range 1 to 0xf000.


Overload(top)

Sets custom icon.

public dialog Icon(object icon)
Parameters
icon  (object)

Can be:

  • icon.
  • System.Drawing.Icon.
  • IntPtr - native icon handle.
  • System.Drawing.Bitmap.
  • string - XAML image, eg copied from the Icons tool. See ImageUtil.LoadGdipBitmapFromXaml.
Returns
dialog

Remarks

The icon should be of logical size 32 or 16.