Need a taskdialog sample in .net using custom icon |
Post Reply |
Author | |
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
Posted: 30 March 2009 at 6:48pm |
Can u send me and the forum and maybe add in next release a sample of controls including the taskdialog control in VB.NET using custom icon.
Thanks
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Guess same code as VB sample will work
Private Declare Function LoadImage Lib "user32" Alias "LoadImageA" (ByVal hInst _
As Long, ByVal lpsz As String, ByVal un1 As Long, ByVal n1 As Long, ByVal n2 _ As Long, ByVal un2 As Long) As Long Function LoadIcon(Path As String, cx As Long, cy As Long) As Long
LoadIcon = LoadImage(App.hInstance, Path, IMAGE_ICON, cx, cy, LR_LOADFROMFILE) End Function taskDialog.MainIconHandle = LoadIcon(Path, 0, 0)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |