i want to add a icon in the form title bar. i add by using the form property -icon. it came out an error "invalid property value". Why and how to solve this problem.
i have attach the file (icon which i want to add).
Printable View
i want to add a icon in the form title bar. i add by using the form property -icon. it came out an error "invalid property value". Why and how to solve this problem.
i have attach the file (icon which i want to add).
I haven't seen you zip file but I hope you used SET keyword before setting the icon.
how to use "SET keyword"?????Quote:
Originally Posted by Shaikh.Riyaz.a
Do you want to change the form icon? Just set the form icon in the IDE before you run the program. The program will use the startup form's icon as it's own. You can check the program properties to change the startup form, or use Sub Main instead.
Icon file creator/editor here:
http://www.freevbcode.com/ShowCode.Asp?ID=3367
and life is good.
Based on the header, the file is actually a BMP file. They only changed the extension to .ICO
That is right. Someone has only changed the extension thinking that this changes the format :D Thisway the file was only corrupted :lol::lol:
OK I repaired it and used my tools to creat a small icon with the given material.
A bigger picture like 256x256 would have given much better results
2 year old thread
i try to run my code it is work but suddenly an error came out saying: Run-time error '380' Invalid property value.
i use progress bar together with timer control to show next frame after user press certain button
the code as follows:
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 2 ' here appear the error "invalid property value"
If ProgressBar1.Value = 100 Then
If Timer1.Interval >= 1 Then
fra8.Visible = False
fra5.Visible = True
End If
End If
End Sub
Really hope someone can help me to fix this.....
In a TWO YEAR OLD THREAD about Re: invalid property value of ICONS?
Doubtful, even for a Monday morning. Start a NEW thread with a meaningful title...
ps: use code tags so we can read your code
Code:' Like this!
The whole thing about this tread seems strange. how comes this up to the top page in CG, where I'm normally reading posts. ?:D
To your problem
simple before adding 2 to your ProgressBar1.Value Property test if this will not exceed 100 in total
so doCode:
Private Sub Timer1_Timer()
If ProgressBar1.Value <=98 Then
ProgressBar1.Value = ProgressBar1.Value + 2
else
' we had been at 99 so we have reached our goal ( 99+2 = 101)
' so we do without checking of progress =100
If Timer1.Interval >= 1 Then
fra8.Visible = False
fra5.Visible = True
end if
end if
Also must not forget to set the max value of the progress bar => the max value you will be using and do so beforehand.
As to why the thread popped up on top it would be because poster #5 dug it out and added a new post. Threads with most recent posts always come to the top no matter how long they had been dead.