Results 1 to 5 of 5

Thread: [RESOLVED] Debugger error but why?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Resolved [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?

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    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.

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: Debugger error but why?

    OK thanks, will do

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width