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).
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.
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).
When I extracted your icon my Icon reader told me invalid file. This is not a valid icon.
So simple the question is who has created this icon and what program was used for it. Microangelo cannot read it, so it is also not possible to use it as your icon in VB
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ? My latest articles : Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
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 Thisway the file was only corrupted
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
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ? My latest articles : Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
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
The whole thing about this tread seems strange. how comes this up to the top page in CG, where I'm normally reading posts. ?
To your problem
simple before adding 2 to your ProgressBar1.Value Property test if this will not exceed 100 in total
so do
Code:
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
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ? My latest articles : Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
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.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.