Code executes after deleting it

brechtjah

Member
Joined
Mar 23, 2008
Messages
23
Programming Experience
Beginner
I'm having trouble with a piece of code in my program:

If intUur = 0 And loadAtHourZero = False Then
LoadScreen.Show()
dteDatumAanpassing = dteDatumAanpassing.AddDays(1)
loadAtHourZero = True
End If

to test something I put
messagebox.show(dteDatumAanpassing) between that piece of code to look if it was changing or not at 0:00. Anyway, I deleted it. But now it is still showing (the messagebox), I deleted that line of code and when I execute my program and the hour is 0:00 I get that messagebox. I tried rebuilding, restarting, but nothing helps.
What is the issue here?
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
It could be that you still have build errors which means when you "build" the program it's actually running the last successful build which is the one that has the messagebox call in it.
 

brechtjah

Member
Joined
Mar 23, 2008
Messages
23
Programming Experience
Beginner
If I type complete nonsense the same build gets executed, I don't get any errors: "Do you want to run from previous build?"... I don't get that window.
It's like it doesn't get build, it doesn't get saved...
EDIT: if I add buttons they don't come up also, please someone help!
 
Last edited:

jwh

Well-known member
Joined
Aug 18, 2006
Messages
155
Programming Experience
3-5
delete your bin folder, this will force your 'exe's to be recreated.
 

brechtjah

Member
Joined
Mar 23, 2008
Messages
23
Programming Experience
Beginner
Tried it, didn't work :(
Is there some kind of setting that switches of your building or something I don't know any settings that have to do with building the project? Maybe I did something wrong there... Accidentaly switched it on/off or something...
Thanks for all the replies already though
 

jwh

Well-known member
Joined
Aug 18, 2006
Messages
155
Programming Experience
3-5
How are you launching? F5?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,553
Location
Norway
Programming Experience
10+
You have to delete both Bin and Obj folders if the compiler cache files have locked up. Close Studio, delete folders, restart Studio.
 
Top Bottom