Global functions

Build 1501 on 14/Nov/2017  This topic last edited on: 9/May/2012, at 14:29

Creating a global function

System global functions are created in the Public Class AddInUtils in Shell.vb.

Declare them as Shared, and call them as AddInUtils.functionname.

Example:

Public Shared Function ImageSizeDlg(ByVal w As String, ByVal h As String) As InputDlg

  Dim dlg As New InputDlg()

   dlg.Width = 200

   dlg.Title = My.Resources.STR_SetImageSize '"Set image size"

   dlg.AddString(My.Resources.STR_Width, w)

   dlg.AddString(My.Resources.STR_Height, h)

  Return dlg

End Function