2

I want to make my QB64 program look professional, by setting a custom text in the Title Bar rather than the default (file name) and a custom Icon for the application file to be displayed in the Taskbar and Title Bar.

I tried to use Resource Hacker but couldn't change the icon.

Manu
  • 109
  • 5

2 Answers2

3

Just add the following code at the top of your program:

$EXEICON = 'path/to/icon-image'
_TITLE "Title Bar Text"

Note: The icon image must be in .ico format and the path should be correct, or else the program won't compile!

Mrigank Pawagi
  • 892
  • 1
  • 8
  • 26
0

Some old version of QB64 required an additional variable to declare icon:

$EXEICON = 'path/to/icon-image'
_ICON

and won't add the icon otherwise.

eoredson
  • 1,167
  • 2
  • 14
  • 29