CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: API function

  1. #1
    Join Date
    Jul 1999
    Location
    USA
    Posts
    101

    API function

    I need to open the ODBC data sources window box from inside my VB application. Can some one let me know which API function I need to use.

    Thanks


  2. #2

    Re: API function

    use this command in VB for a winnt OS

    Shell "rundll32.exe shell32.dll,Control_RunDLL c:\winnt\system32\odbccp32.cpl", vbNormalFocus

    use this command in VB for a Win 95 OS

    Shell "rundll32.exe shell32.dll,Control_RunDLL c:\win95\system32\odbccp32.cpl", vbNormalFocus

    use this command in VB for a Win 95 OS

    Shell "rundll32.exe shell32.dll,Control_RunDLL c:\win98\system32\odbccp32.cpl", vbNormalFocus

    Dont change the Case of the String within double quotes its case sensitive

    The Ultimate Solution Providers

    Authors

    Sriman & Jayaraman

    Email : [email protected]
    [email protected]

    Hand Phone : +(6) 016 2237147 (Malaysia)

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

Featured