473,796 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB .NET changing my code!!

I was using VB .NET, working on my database application. After running it
successfully, I decided to take a little break. So I closed Visual Studio (I
saved all files, of course), and when I opened my solution later, the
application had several bugs which hadn't been there earlier.

I had to manually look through the code to figure out what had been changed
and fix the problems. It wasn't a lot of work, but I'm concerned that if VS
..NET does this in the future (when my application is farther along and has
much more code), it could have serious consequences. (I haven't tested the
application as thoroughly as I would have liked to after fixing the code, so
there may still be existing bugs that I don't yet know about.)

Has anyone else had this problem? Is there some kind of patch from MS that I
can download for this?
Nov 20 '05 #1
9 1211
You must have some problem that does not meet the eye. Our team has several
years of combined usage of VB.NET, both releases, on very large projects.
We have never experienced problems with VS losing, changing, or inserting
code. Per chance, are you using SourceSafe and possibly done a Get and
overwrote changes?

http://www.knowdotnet.com

"jy836" <mo***@nospam.c om> wrote in message
news:1KzRb.1321 28$nt4.579294@a ttbi_s51...
I was using VB .NET, working on my database application. After running it
successfully, I decided to take a little break. So I closed Visual Studio (I saved all files, of course), and when I opened my solution later, the
application had several bugs which hadn't been there earlier.

I had to manually look through the code to figure out what had been changed and fix the problems. It wasn't a lot of work, but I'm concerned that if VS .NET does this in the future (when my application is farther along and has
much more code), it could have serious consequences. (I haven't tested the
application as thoroughly as I would have liked to after fixing the code, so there may still be existing bugs that I don't yet know about.)

Has anyone else had this problem? Is there some kind of patch from MS that I can download for this?

Nov 20 '05 #2
"jy836" <mo***@nospam.c om> wrote in message
news:1KzRb.1321 28$nt4.579294@a ttbi_s51...
I was using VB .NET, working on my database application. After running it
successfully, I decided to take a little break. So I closed Visual Studio (I saved all files, of course), and when I opened my solution later, the
application had several bugs which hadn't been there earlier.
What were the bugs?

Has anyone else had this problem? Is there some kind of patch from MS that I can download for this?


Nope.

~
Jeremy

Nov 20 '05 #3
Don
Yeah, VB puts bugs in my code all the time, but my boss doesn't believe
me...

But seriously, can you give some examples of the code that was changed?
Were you modifying stuff in the region marked "Windows Form Designer
generated code"? Because I think that VB.NET changes stuff in there all the
time. I've also worked on a large VB.NET project and have not had any
problems with code mysteriously changing behind my back.

- Don
"jy836" <mo***@nospam.c om> wrote in message
news:1KzRb.1321 28$nt4.579294@a ttbi_s51...
I was using VB .NET, working on my database application. After running it
successfully, I decided to take a little break. So I closed Visual Studio (I saved all files, of course), and when I opened my solution later, the
application had several bugs which hadn't been there earlier.

I had to manually look through the code to figure out what had been changed and fix the problems. It wasn't a lot of work, but I'm concerned that if VS .NET does this in the future (when my application is farther along and has
much more code), it could have serious consequences. (I haven't tested the
application as thoroughly as I would have liked to after fixing the code, so there may still be existing bugs that I don't yet know about.)

Has anyone else had this problem? Is there some kind of patch from MS that I can download for this?

Nov 20 '05 #4
"jy836" <mo***@nospam.c om> schrieb
I was using VB .NET, working on my database application. After
running it successfully, I decided to take a little break. So I
closed Visual Studio (I saved all files, of course), and when I
opened my solution later, the application had several bugs which
hadn't been there earlier.


FMI: Which kind of bugs?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
"Don" <un*****@oblivi on.com> wrote in message
news:U5ARb.3036 32$X%5.295771@p d7tw2no...
Yeah, VB puts bugs in my code all the time, but my boss doesn't believe
me...


LOL
Nov 20 '05 #6
> > I was using VB .NET, working on my database application. After running
it
successfully, I decided to take a little break. So I closed Visual
Studio (I
saved all files, of course), and when I opened my solution later, the
application had several bugs which hadn't been there earlier.


There is an option in the IDE menu - Tools \ Introduce random bugs. Uncheck
it and it will come back to normal.
:-)

More details, please.

sincerely,
--
Sebastian Zaklada
Skilled Software
http://www.skilledsoftware.com
*************** *************** ******
SQL Source Control 2003 - for
SQL Server Source Safe integration
and custom databases documentation
Nov 20 '05 #7
;-)
"Blumidoo" <sz************ *********@skill edsoftware.com> wrote in message
news:bv******** **@news.onet.pl ...
I was using VB .NET, working on my database application. After running it successfully, I decided to take a little break. So I closed Visual
Studio
(I
saved all files, of course), and when I opened my solution later, the
application had several bugs which hadn't been there earlier.


There is an option in the IDE menu - Tools \ Introduce random bugs.

Uncheck it and it will come back to normal.
:-)

More details, please.

sincerely,
--
Sebastian Zaklada
Skilled Software
http://www.skilledsoftware.com
*************** *************** ******
SQL Source Control 2003 - for
SQL Server Source Safe integration
and custom databases documentation

Nov 20 '05 #8
"Don" <un*****@oblivi on.com> wrote in message
news:U5ARb.3036 32$X%5.295771@p d7tw2no...
Yeah, VB puts bugs in my code all the time, but my boss doesn't believe
me...

But seriously, can you give some examples of the code that was changed?
Were you modifying stuff in the region marked "Windows Form Designer
generated code"? Because I think that VB.NET changes stuff in there all the time. I've also worked on a large VB.NET project and have not had any
problems with code mysteriously changing behind my back.


I had code like this:

IDNum1 = TB1.Text

......(next line was in a different procedure).....

OleDbDataAdapte r2.SelectComman d.Parameters("I DNum").Value = IDNum1

Later, I moved the "IDNum1 = TB1.Text" line elsewhere in code (which
shouldn't cause other code to change automatically, right?), saved the
application, and closed it. When I opened it later, the second line of code
appeared like this:

OleDbDataAdapte r2.SelectComman d.Parameters("I DNum").Value = TB1.Text

The problem is that TB1.Text no longer had the same value as it did at the
"IDNum1 = TB1.Text" line, so the command was useless.

Also, in what appears to be a completely unrelated issue, a button which I
had set at design time to be disabled is now enabled. I don't understand
what's going on; is there an option or customization that I should change?
Nov 20 '05 #9
Sounds like a mousing issue. You mentioned that the last thing you did was
move something (ie cut & paste), it is possible that you
accidentally made a mouse click/scroll combination that rearranged some
text. I do this every now and then with my scrolling trackball.
Mouse movements, mouse clicks and mouse scrolls are all buffered.
If not that, then make sure you are not screwing around with automagically
generated code.
"jy836" <mo***@nospam.c om> wrote in message
news:mfCRb.1301 35$sv6.690111@a ttbi_s52...
"Don" <un*****@oblivi on.com> wrote in message
news:U5ARb.3036 32$X%5.295771@p d7tw2no...
Yeah, VB puts bugs in my code all the time, but my boss doesn't believe
me...

But seriously, can you give some examples of the code that was changed?
Were you modifying stuff in the region marked "Windows Form Designer
generated code"? Because I think that VB.NET changes stuff in there all the
time. I've also worked on a large VB.NET project and have not had any
problems with code mysteriously changing behind my back.


I had code like this:

IDNum1 = TB1.Text

.....(next line was in a different procedure).....

OleDbDataAdapte r2.SelectComman d.Parameters("I DNum").Value = IDNum1

Later, I moved the "IDNum1 = TB1.Text" line elsewhere in code (which
shouldn't cause other code to change automatically, right?), saved the
application, and closed it. When I opened it later, the second line of

code appeared like this:

OleDbDataAdapte r2.SelectComman d.Parameters("I DNum").Value = TB1.Text

The problem is that TB1.Text no longer had the same value as it did at the
"IDNum1 = TB1.Text" line, so the command was useless.

Also, in what appears to be a completely unrelated issue, a button which I
had set at design time to be disabled is now enabled. I don't understand
what's going on; is there an option or customization that I should change?

Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1726
by: Maercker Michael | last post by:
hi y'all! i want to implement a few macros to help me do my coding; when calling a macro: how i can i find out in which module i'm currently in; at which position and what text i have selected. it's gotta be possible somehow, but the screen-objekt really isn't of much help. can anyone help me? thanks in advance! mike maercker
2
2595
by: rcmail14872 | last post by:
I have a form that lists several different categories for labels. I made a form that will let the user add a new category. On the Form the user can type in the name for the new category, then I thought I would search the code below and replace "ReservedForNewCategory01" (or the next available category, possibly "ReservedForNewCategory02"), with the name of the new category that the user typed into the Form. How can I search and replace...
2
5556
by: Mrozik | last post by:
Hi! i read and update data from database that have ISO-8859-2 code page set default my application (windows app) run in polish code page (win1250) how can i read data and show them to user in default windows code page and send them back to db in iso-8859-2 code page?
2
1881
by: 1 | last post by:
Hi there, A while back I wrote some code using the .Net drawing libraries... this code takes a datatable and generates a pie or bar chart on the fly. The resulting image is returned using response.outputstream. While this is a budget solution it suited the purpose at the time. I now want to reuse this code but because using response.outputstream only allows the resulting image file to be displayed (by itself with no page around it) I...
0
1173
by: google | last post by:
I know this topic has been discussed many times all over the web but in my case although i can make it work in a normal window but it falls flat working in a window where i generate a PDF from a SQL server report. The window which i am changing the title for contains the codebehind to render a sql server report and the following code is where it overrides the title changing code: Response.ClearContent();...
3
1939
by: Mike | last post by:
In VB 6, you could change most code while your project was in Break mode. I am targeting the Pocket PC, and VB .NET 2003 is not allowing me to change code while debugging. Is this true for all VB .NET projects or just for the Pocket PC?
0
1121
by: Ernst Elzas | last post by:
I need to make certain changes to multiple pages within the site under development, what's the easiest way to do that? If both the code to be replaced in a page and it's replacement contain only ASCII-code, I can use tools such as sed, grep, gawk, etc. and the problem is solved. (or alternatively, code to be inserted or deleted) My problem lies with dealing with bidirectional unicode texts, part of the code is in English (usually the HTML...
2
1244
by: devoreband | last post by:
What change shuld i make to my code so that the largest value stored in a is displayed first, followed by the second largest value, then the third, and so forth (i.e. the cout at Line 35 displays the values stored in a in descending order)? 13 void f1(int a) { 14 int x, y;
4
1632
by: psycho007 | last post by:
Hi I have a caller ID software that I would like to change from Microsoft Access database to Mysql and was wondering if somebody could help me. The code i currently have is: Private Sub OpenDataBase() Set fo = New FileSystemObject Set wrk = CreateWorkspace("", "admin", "", dbUseJet) If Not fo.FileExists(m_stDataPath & "callerid.mdb") Then
6
1687
by: JMANTN | last post by:
Hello, I'm trying to incorporate some code that was used in an old database (access 2003 but everything works in 2007) by someone who no longer works with me that utilizes sendkeys to send employee (agent) exceptions into their schedule which is in a different application. The old database works fine as is however I'm making a database for training and trying to use the code with mine and just started learning VBA and could use some...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10239
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9057
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.