Results 1 to 3 of 3

Thread: VB - Almost all the system dialogs you'll ever need

  1. #1

    Thread Starter
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273

    Cool VB - Almost all the system dialogs you'll ever need

    All the system dialogs you'll probably ever need....

    Code:
    'Launch Windows Display Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0", 5)
    
    'Launch Windows Date/Time Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL timedate.cpl", 5)
    
    'Launch Windows Keyboard Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @1", 5)
    
    'Launch Windows Internet Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0", 5)
    
    'Launch Windows Network Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl", 5)
    
    'Launch Windows Password Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL password.cpl", 5)
    
    'Launch Windows Regional Settings Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0", 5)
    
    'Launch Windows Sounds Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1", 5)
    
    'Launch Windows System Properties Dialog
    Dim dblReturn As Double
    dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0", 5)
    
    'Show the "Opens With" dialog
    Private Sub Command1_Click()
    Dim x As Long ' Decalres the Varible
    x = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL C:\sql.log")
    End Sub

  2. #2
    Member
    Join Date
    Feb 2011
    Posts
    54

    Re: VB - Almost all the system dialogs you'll ever need

    How to use this for Vista and Win7 OS, I think it only work on Win XP.

  3. #3
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: VB - Almost all the system dialogs you'll ever need

    May want to compare against this list for Vista/Win7
    http://www.winvistaclub.com/t57.html
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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