How to place an icon to a Form by coding?
I try the code below, but got error before the parentheses.Why?Code:Me.Icon.New(Application.StartupPath & "\Icons\import.ico")
Please guide, thank you!
Printable View
How to place an icon to a Form by coding?
I try the code below, but got error before the parentheses.Why?Code:Me.Icon.New(Application.StartupPath & "\Icons\import.ico")
Please guide, thank you!
this works syntactically, did not try it in execution
after the windows designer generated code type
Public Myicon As New Icon(Application.StartupPath & "\Icons\import.ico")
then in code
Me.Icon = myicon
it's working fine now :)