Results 1 to 15 of 15

Thread: API Colour Dialog

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: API Colour Dialog

    What error is it generating and on what line?

  2. #2
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: API Colour Dialog

    He forgot to include something. Add the following lines to the ShowColor Function
    VB Code:
    1. Dim CustomColors() As Byte
    2.     ReDim CustomColors(0 To 16 * 4 - 1) As Byte

  3. #3
    Addicted Member
    Join Date
    Nov 2004
    Location
    Lucenec, Slovakia
    Posts
    154

    Re: API Colour Dialog

    Quote Originally Posted by Hack
    What error is it generating and on what line?
    It writes me: "Invalid use of Me keyword". I am using visual basic editor 6.3. The "Me" is used in .Net?

    I also do not understand what should this macro do.

    Boris

  4. #4
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: API Colour Dialog

    Make sure all the code is in the form and not a module.

  5. #5
    Addicted Member
    Join Date
    Nov 2004
    Location
    Lucenec, Slovakia
    Posts
    154

    Re: API Colour Dialog

    Quote Originally Posted by moeur
    Make sure all the code is in the form and not a module.
    I have created an userform and commandbutton. The code is inside this userform. Now writes me an error: "Method or data member not found" at the line:
    cc.hwndOwner = Me.hwnd

    I have tryed to write me. again, but VB is not offering me hwnd.

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