Results 1 to 7 of 7

Thread: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473

    [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)

    How to create these kind of dialogs in Vista?



    Screenshot taken from "Spider Solitaire" game.
    I have seen other pre-installed games in Vista using this dialog, so it must be some sort of an API call and not designed form (or something similar)

    Anybody has any more information?


    Thanks
    Last edited by mike2; Feb 8th, 2007 at 05:22 PM. Reason: Solved tag

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to create these kind of dialogs in Windows Vista? (see picture)

    You need to use the TaskDialogIndirect API call.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473

    Re: How to create these kind of dialogs in Windows Vista? (see picture)

    Aha.
    Thank you very much

    Now, I just have to install VB in my Vista test machine to experiment with it

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473

    Re: [Solved]How to create these kind of dialogs in Windows Vista? (see picture)

    Hmmmm...

    I found an example on VBThnuder, but I can't get it to work :S
    It says "Run-time error '453': Can't find DLL entry point TaskDialogIndirect in comctl32.dll"

    I have also tried compiling the application, but it still doesn't work :-/

    And I'm sure I am using Vista... :P

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473

    Re: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture

    Hmm...

    It works if I point directly to the comctl32.dll on the folder you said (C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll)

    So this means that I must point to that file directly (but it's not recommended, because the user could have another version of windows, or installed windows into another directory instead of "C:\Windows") or pack that version of comctl32.dll with my application (just tested, it won't work... I though that Windows first tries to use the DLL in the app's folder and then the version that is in the Windows directory) eh?

    Also, how can I use the style of buttons that are on the picture (button with title and description)
    Last edited by mike2; Feb 9th, 2007 at 08:43 AM.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [Almost Solved]How to create these kind of dialogs in Windows Vista? (see picture)

    I'm actually working on the TaskDialogindirect right now for a FAQ. Almost finished but still having a few issues.

    A undesireable workaround is to use a manifest file for VB6 which links by the token instead of the file location. Only issues are that it creates a few undesireable things like cant use the color picker and the blackening of certain controls that dont have a DC.

    If you create a manifest for the executable of your app and run it, it will then work but if you want to debug with it then the vb6.exe manifest will be needed.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width