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

Thread: Importing a drag icon into a VB6 image object.

  1. #1
    Join Date
    Nov 2018

    Question Importing a drag icon into a VB6 image object.

    I am running VB6 on Windows XP. I have made 16x16 and 32x32 bitmap icons in Paint in Windows 7 and Windows XP, but none of them will work as drag icons in VB6. I have saved these files as 256 Color bitmap files, 24-bit bitmap files and 16 Color bitmap files (all with "ico" extensions when saving them), but none work. These files work as desktop icons, but I get the message "Invalid property value" when I try to import them as drag icons. How can I make an icon that can be used as a drag icon in VB6?

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    Re: Importing a drag icon into a VB6 image object.

    .ico files are not bitmaps simply changing the extension of a .bmp to .ico does not do anything for you. You need to use a software that can save actual icon files either as .ico or .dll Been a while since I used XP but I do not think there was any native software included with XP that could do this. I had a 3rd party icon creator tool that I used for this under XP.
    Always use [code][/code] tags when posting code.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)