Jumbofile Posted November 25, 2013 Author Share Posted November 25, 2013 When I try to run the game in vb6 it gives this errorCompile error: Method or data member not found. It says it on every eclipse engine. (red part means highlighted)Public Sub AddText(ByVal Msg As String, ByVal color As Integer)Dim s As String ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler s = vbNewLine & Msg frmMain.txtChat.SelStart = Len(frmMain.txtChat.**TEXT)** frmMain.txtChat.SelColor = QBColor(color) frmMain.txtChat.SelText = s frmMain.txtChat.SelStart = Len(frmMain.txtChat.text) - 1 ' Error handler Exit Suberrorhandler: HandleError "AddText", "modText", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub Link to comment Share on other sites More sharing options...
Matt Posted November 26, 2013 Share Posted November 26, 2013 Seems to me like txtChat is a picturebox ;) When you load the project, do you get any error messages? Link to comment Share on other sites More sharing options...
Jumbofile Posted November 26, 2013 Author Share Posted November 26, 2013 I get file not found on any vb6 project i open Link to comment Share on other sites More sharing options...
Yuko Posted November 26, 2013 Share Posted November 26, 2013 > I get file not found on any vb6 project i openI get the same problem, Matt tried to help me last night, and we couldn't figure out what's wrong. A registry file thingy is not in the right spot (run times i believe) Link to comment Share on other sites More sharing options...
PD Posted November 26, 2013 Share Posted November 26, 2013 Check out the source folder. If an error occurs when loading a project, a text file is created in the folder where the source file is. So if you get an error with frmMain then there will be a text file called frmMain.txt. Maybe that can help you. Link to comment Share on other sites More sharing options...
hisherwin Posted November 27, 2013 Share Posted November 27, 2013 Your VB6 missread the richtextbox , readd it on reference .. Ctrl + T and find the RichTextBox then delete the Picturebox of txtChat then create a RichTextbox and name it txtChat Link to comment Share on other sites More sharing options...
Jumbofile Posted November 27, 2013 Author Share Posted November 27, 2013 I found this.frmmainLine 867: Class RichTextLib.RichTextBox of control txtChat was not a loaded control class.frmeditorLine 2967: Class MSComctlLib.TabStrip of control tabCommands was not a loaded control class.Line 3047: Class MSComctlLib.TabStrip of control tabPages was not a loaded control class. Link to comment Share on other sites More sharing options...
PD Posted November 27, 2013 Share Posted November 27, 2013 Have you registered the RichTextBox control? Once you've done that, open up frmMain and add a RichTextBox control to the form and give it the name txtChat. Link to comment Share on other sites More sharing options...
Jumbofile Posted November 27, 2013 Author Share Posted November 27, 2013 So how would i do this? Link to comment Share on other sites More sharing options...
hisherwin Posted November 28, 2013 Share Posted November 28, 2013 Ctrl + T to register controls Link to comment Share on other sites More sharing options...
Jumbofile Posted December 8, 2013 Author Share Posted December 8, 2013 I tried to register it.![](http://eclipseorigins.com/community/filehost/45ddfc05f0b4ab3a12c86c9825ab9449.png) Link to comment Share on other sites More sharing options...
jcsnider Posted December 8, 2013 Share Posted December 8, 2013 Then that is your problem. Go re-download runtimes that contain the rich textbox control or go grab it from the net (someone will yell at me for recommending this.) Then add that one. It will get you one step closer to fixing the issue ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now