CreateObject() Explanation.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: CreateObject() Explanation.

  1. #1
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,860

    CreateObject() Explanation.

    Can someone please explain to my why the following code opens the windows under the current focused window? I want them to open up focused.

    Code:
    Dim objShell
    Set objShell = CreateObject("Shell.Application")
    objShell.FindFiles '(or FileRun)

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: CreateObject() Explanation.

    Unless I misunderstand, ShellExecute would be a better choice.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,860

    Re: CreateObject() Explanation.

    Then the question is how would I use ShellExecute to bring up the Windows Run dialog box or the Windows Find dialog box?

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    Re: CreateObject() Explanation.

    A search turned up this thread:
    http://www.codeguru.com/forum/showthread.php?t=23182

    Here is another that may be of interest to you:
    http://www.codeguru.com/forum/showthread.php?t=24261

    I'm sure there are others as well, which will turn up using various keywords.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center