Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Minneapolis, Minnesota, USA
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    works here, not at home (vb.net 2003)

    Okay, I give up. I did the infamous "Hello World" app here at work and then sent it home. I have VB.net 2003 (standard edition) installed on a W2K machine here and an XP machine at home. Here, this command works:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    At home, the "Handles Button1.Click" errors out and I can't debug as I can't build the darn thing. So am I missing something or is my machine at home really the evil twin I think it is? <img src=/S/bouncenburn.gif border=0 alt=bouncenburn width=31 height=31>
    Carpy Diem, it&#39;s .

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: works here, not at home (vb.net 2003)

    Did you built an executable at work or did you send yourself the entire solution? Are you starting it in debug ore release mode at home? Oh, and have you checked the project references to make sure none are broken at home?
    Charlotte

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: works here, not at home (vb.net 2003)

    Without seeing the exact code and message, I'd guess that you do not have a Button1 control on the Form.

    When you took the app home, you needed to copy the entire didrectory in which the app liverd, and then open the app by clicking on the .sln file.

  4. #4
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Minneapolis, Minnesota, USA
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: works here, not at home (vb.net 2003)

    Sorry Howard and Charlotte - I was really busy at work and then my "assistant" was out of town for the weekend so I was unable look into our home issue. Yes, I think the culprit is that we typed in the code sans button and then when we tried to set up a button, the form wasn't as forgiving as in the olden days of yore. So, barring any late-night work-related issues, I'll set up the button first, then we'll copy/paste the code.

    See what I get when kiddo says "yeah, I learned programming in school and I can do anything, Mom. Just step aside." <img src=/S/eyeout.gif border=0 alt=eyeout width=15 height=15>
    Carpy Diem, it&#39;s .

  5. #5
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Minneapolis, Minnesota, USA
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: works here, not at home (vb.net 2003)

    Just an update on this whole thing. I guess I should stop leaving my brain at work because I realized I wasn't double-clicking the stupid mouse after I selected the button! AAARRRGGHHH! At least the kid didn't see me banging my head on the keyboard so I can now pretend that I spent hours trying to reason this out. <img src=/S/doh.gif border=0 alt=doh width=15 height=15>
    Carpy Diem, it&#39;s .

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: works here, not at home (vb.net 2003)

    Um ... why would you double click the mouse to trigger the click event of a button? The code you posted was for the click event.
    Charlotte

  7. #7
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    Minneapolis, Minnesota, USA
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: works here, not at home (vb.net 2003)

    Sorry, Charlotte what I meant to say was that I dragged the button from the toolbox over to the form and double-clicked on the button while still in design. This brought up the event behind the button and then I could type away (or copy/paste).

    When we set up the event and then tried, in design mode, to link this event to a "vanilla" button object, it either wasn't working, or there were two many hands fighting over the mouse in that "I'm a teen and I know everything" vs. the "I'm the mom and I've been around forever" tiff we get into more often nowadays. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>
    Carpy Diem, it&#39;s .

  8. #8
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: works here, not at home (vb.net 2003)

    Ah, that makes more sense. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    Charlotte

Posting Permissions

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