Results 1 to 5 of 5

Thread: [2005] Enum Windows

  1. #1

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    [2005] Enum Windows

    Hi,

    Can someone post code to Enumerate child windows ? The code in code bank section doesn't works.

    please help.

    thanks
    Kanna

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Enum Windows

    What code in the CodeBank? What's happens when you use it?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    Re: [2005] Enum Windows

    Kanna

  4. #4
    Hyperactive Member syntaxeater's Avatar
    Join Date
    Dec 2006
    Location
    Des Moines, IA
    Posts
    460

    Re: [2005] Enum Windows

    Looks like all you have to do is pass hwnd, no cast.

    Although, considering he does show both explicit/strict on - you may have more problems if that flagged you. He could have done this is something besides 1.1.

    I can't say for certain; all of it looks really old.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Enum Windows

    There's no need to cast. Just declare any parameters that represent handles as type IntPtr instead of Integer/Int32 in the first place. Alternatively you can invoke the IntPtr constructor and pass the Integer as an argument.

    See. People have a hope of helping if they know what you're talking about.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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