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

    Home » Forums » Developers, developers, developers » DevOps Lounge » works here, not at home (vb.net 2003)

    Author
    Topic
    #416931

    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? bouncenburn

    Viewing 2 reply threads
    Author
    Replies
    • #933921

      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?

    • #933928

      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.

      • #934621

        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.” eyeout

    • #935574

      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. doh

      • #935639

        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.

        • #935689

          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. shrug

    Viewing 2 reply threads
    Reply To: works here, not at home (vb.net 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: