Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssTab lost reference

Status
Not open for further replies.

CasperTFG

Programmer
Joined
Nov 15, 2001
Messages
1,210
Location
US

I need some big time help....

I have a form I created in VB, that uses 3 tabs of an ssTab control. Each tab has about 20 to 50 controls on it. I made some changes to the code through WordPad (I needed to do a big search and replace that VB Couldn't do), but once I opened the form back up in VB it lost the reference to the SSTab control.

I tried to re-add the reference back into the VB project, but once I try to add the component again, through Add Components on the VB toolbar, it tells me that the name conflicts with an existing control. If it conflicts then where is my control.

Anyway here is the massive dilema. I could re-create the form, i.e. Make a new Form, add the ssTab control to it and move the controls over, but the problem is that VB changed my sstab into a picture box, so now I can't find the other 80 controls on the 2nd and 3rd Tab.

If anyone knows of anyway to restore an ssTab without loosing the controls already on them please let me know, your help would be a blessing.
Craig, mailto:sander@cogeco.ca
"Procrastination is the art of keeping up with yesterday."
I hope my post was helpful!!!
 
This is just an idea, I don't know if it will work but under the circumstances it might be worth a try. Try to add a sstab to a new project with a couple of the same controls that you had on the old non-referenced one and save the form. Then use notepad or what ever to open both the old and the new forms so that you can compare the two, just maybe you can pick out something different between the two. I don't know if it will work but it was just an idea. Good luck. Anything is possible, the problem is I only have one lifetime.[thumbsup2]
 
Do you know where Components are referenced, is it in the VBP or the FRM. I'm going to try amking a new Project and just adding in the forms. Craig, mailto:sander@cogeco.ca
"Procrastination is the art of keeping up with yesterday."
I hope my post was helpful!!!
 
Okay I recovered...

What a massive wheight off my shoulders, and to think I didn't even enjoy my pint at lunch over worrying about this.

To recover from this all I had to do was to create an New VB Project. I then added in all the Forms, Modules, Classes and etc. into this new project that I had in the old one.

With this now done I re-added all the references to ADO, MTX and etc. The form came up with the ssTab as it should and everything is Super.

Now all I ahve to do, is save this into MKS Source Code Control where I should have saved it before I went muddling about in the first place.

Thanks for your help foada. Craig, mailto:sander@cogeco.ca
"Procrastination is the art of keeping up with yesterday."
I hope my post was helpful!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top