in reply to Win32::GUI - error adding a bitmap in button

Where are you getting this error from?

Try using an absolute path in $path1 instead of just the filename

Also, $path1 is better written as $reloadPage or $reload_button_file or ...

Not sure I see any connection between the bitmap and the button

  • Comment on Re: Win32::GUI - error adding a bitmap in button

Replies are listed 'Best First'.
Re^2: Win32::GUI - error adding a bitmap in button
by levW (Beadle) on Jun 22, 2017 at 05:00 UTC

    Thanks,

    will comply with formatting in future - I'm new to this forum.

    Tried using the absolute path - still the same error from cmd, when the program starts .

      I think your problem is you're trying to load a .jpg and not a .bmp

        Thanks, this was exactly it !