|
-
May 24th, 2001, 11:52 PM
#1
TabPicture property(Urgent)
Hi there!!
I have a VB form on which I have added a 'SSTAB' control named as 'tabPlan'. When I run the form, before showing the form, an error message prompts:
"TabPicture(0) property for tabPlan has an Invalid file reference". I have checked the Picture property for the tab. It is set to 'None'.
Please suggest the way to solve this. A prompt reply will be really helpful.
Thanks
-
May 25th, 2001, 04:52 AM
#2
Re: TabPicture property(Urgent)
let us make a try:
click on your sstab (first tab) in design mode. Set a picture for it
(choose a icon or a bmp).
Run the project.
Does the error come up again? If no, stop project and remove the picture. Try again. What about the error?
This did not work? Then look for servicepaks (last is servicepack 5), maybe it is a known previous bug...
from msdn:
The information in this article applies to:
Microsoft Visual Basic Standard, Professional, and Enterprise Editions, 16-bit and 32-bit, for Windows, version 4.0
--------------------------------------------------------------------------------
SYMPTOMS
When attempting to set the Picture or TabPicture property of the Tab (SSTab) control to a Windows metafile, you receive an "Invalid picture" error.
CAUSE
The Visual Basic Tab control does not support using a metafile for these properties. However, the Tab control does support the use of bitmaps and icons for the Picture and TabPicture properties.
'--------------------
The Picture Property
You can add pictures (bitmaps, icons, or metafiles) to any or all of the tabs in the SSTab control. For example:
At design time, you set the Picture property for a tab by clicking that tab and then setting the property in the Properties window. At run time, you can set the Picture property using the LoadPicture function or the Picture property of another control or of a Form object.
Note When setting the Picture property at design time, the graphic is saved and loaded with the Form object containing the SSTab control. If you create an executable file, the file contains the image. When you load a graphic at run time, the graphic isn't saved with the application.
Setting the Picture property affects the value of the TabPicture property for the current tab as well as displays the picture in the active tab.
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|