Icons

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Closed Thread

Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord

Icons

 
1
  #1
Feb 14th, 2003
I'm using Visual Basic 6.0 Learning Edition. Does anyone know how to set an Icon for my program (other than the default)? When I click the '...' and then choose an Icon, it claim's I have 'set an Invalid property value'. Can anyone help with this?
Quick reply to this message  
Join Date: Feb 2002
Posts: 12,056
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
 
0
  #2
Feb 14th, 2003
I used to use VB6 for years but now I only have Visual Studio.NET installed, so it's hard for me to remember back and picture what you're seeing.

As far as an icon, you're talking about the little icon that shows up on the top left of the title bar of the application window, right?

Are you sure that you're choosing something that, indeed, is an icon? (sorry, but I just had to ask that one)

The only other thing I can remember (and my experience with VB6 has been nonexistent for years already) is that if you want to put an icon on a command button, even after you choose the icon you want, nothing will change, until you set its style attribute to "graphical".

I'm sure this doesn't apply to application icons though. (Just for the heck of it, I just set up an icon in a Visual Basic.NET application with no problems, and I don't remember having any problems with VB6 either?)

Would you maybe be able to send a screenshot? Or provide some more detailed info ... this is a bit boggling, *IF* we're talking about the same thing!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord
 
0
  #3
Feb 14th, 2003
Ok...

Right, I have a .ico file. I want to put this as the program's taskbar icon.
Quick reply to this message  
Join Date: Feb 2002
Posts: 12,056
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
 
0
  #4
Feb 14th, 2003
Well, the taskbar icon is the same as the icon I was talking about ... it just goes to the taskbar when the program is minimized.

I don't understand why this doesn't work. Are you sure you're in the right property field? Do you have a screenshot or ... ?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord
 
0
  #5
Feb 14th, 2003
I'm choosing the Icon property.
Quick reply to this message  
Join Date: Feb 2002
Posts: 12,056
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
 
0
  #6
Feb 14th, 2003
What if you tried doing it as a typed command? e.g., on form load, do myForm.icon = myIcon.ico or something along those lines

at least for now, to debug?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
 
1
  #7
Feb 15th, 2003
I've had this problem in the past with Visual Basic 5. It's a pain. It was with an icon I created. When I tried another icon, one that came with Visual Basic, it worked fine. Try using another icon and see what happens. I get the feeling that even if you set the icon at runtime, you will get the same error (at least I did). Send me the icon, let me try it on my machine.

If you want to load an icon at runtime, you can try something like this in your form_load():

Form1.Icon = LoadPicture("c:\x.ico")

or wherever you icon is. Let me know how it goes. My e-mail address is in my profile.
Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord
 
0
  #8
Feb 15th, 2003
Cool! Thanks, I'll try that.
Quick reply to this message  
Join Date: Feb 2003
Posts: 282
Reputation: Roberdin will become famous soon enough Roberdin will become famous soon enough 
Solved Threads: 6
Team Colleague
Roberdin Roberdin is offline Offline
Supreme Evil Overlord
 
0
  #9
Feb 15th, 2003
"Compile Error: Type Mismatch"

Agh!
Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
 
0
  #10
Feb 15th, 2003
The code works for me. Send me the icon.
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC