|
-
Jul 14th, 2007, 01:07 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Debugger error but why?
I have an app with 3 forms and in form 2 I have this code
Code:
Form3.Button1.Text = "1"
Form3.Button2.Text = "1"
When I use the step through debugger to find an error in my code I get an error
“There is no source code available for the current location”
Which I take to mean that there is no source code in Form2 for Form3
This may or may not be right but the bottom line is I need to find the error in the label text on form3 which is from data in form2 how do I do it? And why an I getting this error when using the debugger?
-
Jul 14th, 2007, 01:19 PM
#2
Re: Debugger error but why?
First off, look around this forum for the use of panels in place of all but one form, you will get a more responsive program.
As for the question, that error message shouldn't arise from the problem you think you are seeing. That's a pretty peculiar error message to get. Since you are using Form3, it appears that you are using the Default instance that was added in VB2005. I really dislike the default instance, but since they are global items, then Form3 should both exist, and be visible to Form2, and all you are doing is changing the button text.
Can you access or change anything on Form3 from Form2?
My usual boring signature: Nothing
 
-
Jul 15th, 2007, 01:16 AM
#3
Thread Starter
Fanatic Member
Re: Debugger error but why?
Yes it's all working but I have this one error that I am trying to track down.
You are correct in that I am using 2005.
-
Jul 16th, 2007, 03:00 AM
#4
Re: Debugger error but why?
This problem can also appear if you move your project to another computer or rename it. Maybe you have done something like that?
I suggest you recreate your project fresh from the start, with the same items names and paste the code you have.
-
Jul 16th, 2007, 04:49 AM
#5
Thread Starter
Fanatic Member
Re: Debugger error but why?
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
|