I'm using a BaseForm from which every other form inherits, but designer insisted on copying the icon to each form resource file.
EDIT: Further testing demonstrated that this didn't work for me.
Private Sub New()
Me.InitIcon()
End Sub
Private Sub InitIcon()
' Avoid Designer messing with me.
GetType(FormBase).GetMethod("_InitIcon", BindingFlags.NonPublic Or BindingFlags.Instance).Invoke(Me, Nothing)
End Sub
' Don't call this directly
Private Sub _InitIcon()
Me.Icon = My.Resources.app_ico
End Sub
Last Visit: 31-Dec-99 18:00 Last Update: 24-Apr-24 20:14