Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Need a taskdialog sample in .net using custom icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Need a taskdialog sample in .net using custom icon

 Post Reply Post Reply
Author
Message
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post Topic: Need a taskdialog sample in .net using custom icon
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.