Print Page | Close Window

Need a taskdialog sample in .net using custom icon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13864
Printed Date: 22 November 2024 at 10:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Need a taskdialog sample in .net using custom icon
Posted By: gaudetm
Subject: Need a taskdialog sample in .net using custom icon
Date 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



Replies:
Posted By: Oleg
Date Posted: 31 March 2009 at 2:57am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net