Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > User control problem


Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2003, 10:18 AM
TomGuy's Avatar
TomGuy TomGuy is offline
Junior Contributor
 
Join Date: Sep 2001
Location: Igloo # 7, Canada
Posts: 332
Default User control problem


Hi all,

I'm having a problem with a user control. I recenlty switched operating systems from win98 to win2k. I didn't need to copy my vb project though because it's saved on the server over the network. The problem is that whenever I try to access a form with the user control on it, it shuts down VB and SAYS that it creates a log file but for the life of me, I can't find it anywhere...Anyways, I've tried adding the control into my list of components to see if that would help but it didn't....Maybe I just need a crash course in adding user controls to vb projects.

Anyone have any ideas?

Thanks,

Tom
__________________
If vegetarians eat vegetables, watch out for humanitarians...
Reply With Quote
  #2  
Old 05-08-2003, 02:25 AM
Infector Infector is offline
Regular
 
Join Date: Aug 2002
Location: Australia
Posts: 89
Default

Is this a DLL file you are loading, or is it included in the project as a *.ctl file? Look under the User Controls and see if it is there. If you are loading the control from a DLL file, you might want to re-register it with Regsvr32.
Reply With Quote
  #3  
Old 05-08-2003, 02:35 AM
SamiLagusto SamiLagusto is offline
Freshman
 
Join Date: May 2003
Posts: 27
Default

Quote:
Originally Posted by Infector
Is this a DLL file you are loading, or is it included in the project as a *.ctl file? Look under the User Controls and see if it is there. If you are loading the control from a DLL file, you might want to re-register it with Regsvr32.


I had the same problem - do you use API-Calls in your Crtl. If yes then be carefull there are a lot of differences between W98, WinNT and W2000. In this case the VB-Enviroment can crash and you don't know why.
Reply With Quote
  #4  
Old 05-08-2003, 08:10 AM
TomGuy's Avatar
TomGuy TomGuy is offline
Junior Contributor
 
Join Date: Sep 2001
Location: Igloo # 7, Canada
Posts: 332
Default

It's being loaded as a user control. I can see it under user controls in my folder list.

I'm not sure if it uses API calls. I didn't write the control code so Im not sure how it works.

Tom
__________________
If vegetarians eat vegetables, watch out for humanitarians...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi connections, one port? burningodzilla Communications 5 08-02-2005 05:04 PM
Simple User Control Problem Jdo300 Interface and Graphics 10 08-07-2002 09:57 PM
Getting user control to be on top of tab control mhaynesjr General 2 08-01-2002 08:27 AM
user control call function pells General 5 04-12-2002 10:47 AM
WinSock vbsupernewbie Communications 1 09-12-2001 10:20 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->