Results 1 to 5 of 5

Thread: unknown problem with code

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    8

    unknown problem with code

    Greetings 1st of all.
    I am new to vb.net or 2008 however its called.
    I created a program originally in vb5 and migrated it into 2008. It was working well after fixing some language errors. But now every time I change the code, and test the changes it doesn't test them. Keeps running in the unchanged version of that last save done.
    How do I tell the system to always run the debugger/test with the code with the changes in them? I see the changes permanently on the code. But whenever I test I do not see them.

    Example I put a label that says "this sucks" whenever I run it after saving it that label is not there on the testing but its there on code and design.


    ***** NVM found out what was happening. Every time I run a build it only runs that build even when I do changes to the code. Now its doing what's supposed to do. Thank you thou.
    Last edited by dbarbarian; Jun 13th, 2011 at 08:53 AM.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: unknown problem with code

    In the future... and for anyone else that has a similar problem... if you compile and run... and your changes aren't being reflected in the run code.... clear out the bin folder...

    VS runs the app by actually running it. It compiles it, in debug state to the bin/debug (assuming you haven't changed the output folders) and then runs the app, and attaches to the process. That's if you just hit F5 ... if you use Ctrl-F5... then you get a full run, no debugging... but otherwise works the same.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2011
    Posts
    8

    Re: unknown problem with code

    Thank you. Didn't know that on VB.net. I assume that VB.net is the same as VB 2008, because most of the code I have used so far is for VB.net. I am used to do apps in VB5 long ago.

    Thanks for the info on the f5 vs. ctrl-f5

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

    Re: unknown problem with code

    VB.NET is the general name that was given to all versions of VB after VB6. It was officially the name of the language that was released as VB2002. In fact, I'm not actually sure that there ever was anything called VB2002, or if that name was given to it later to distinguish it from the other versions. This first VB.NET was followed by VB2003, VB2005, VB2008, and now VB2010. They are all VB.NET, because they are all VB, and they are all .NET. There is also a version number, much like there was VB5 and VB6, the various .NET versions also have version numbers, though they are not all that consistent. If you counted VB2002 as VB7, then VB2008 should be VB10, but it is VB9. I expect that this is because 2003 was not a full release, but I haven't cared enough to find out. Nobody refers to that version number, anyways. Just use 2008, that's good enough.
    My usual boring signature: Nothing

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: unknown problem with code

    generally speaking, the most important things to note is the version of VS (2003/2005/2008/2010) ... and the version of the Framework (1.0/1.1/2.0/3.0/3.5/40)

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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