Similar Threads:
1.Disappearing Code
I have an Access database which is split into a front end and back end (not
sure if that makes a difference) Anyway - as I work on the project, I make
frequent backups and it is a good thing! Periodicly the entire SQL coding
for one of the forms completely disappears. It is only one form that I have
a problem with. It is called InputFrm. I have noticed in my entering code,
sometimes Access auto corrects the spelling to the incorrect InPutFrm. Any
idea on what is causing either of these two problems and are they related?
Thanks
Sue
2.Disappearing codes and other weirdness
I have a database with 2 forms in it that have had lines
of code in their event procedures disappear. In both
cases, it was one line in the procedure, and in both cases
it was an If...Then statement. A blank line was left in
the code where the line was. A compile error occurred when
the procedure was run, that is how the missing code was
discovered. This was a tested procedure, the line was
there.
I would suspect mischief if I wasn't the only one with
access to this code. Anyone know any reason why this
happened? (Windows 98, Access 97)
I also have one form (the others work fine) that won't let
me put a vertical only scroll bar on it. I can put both
scroll bars or neither, but not one. This form has an
Active X control on it. Could that be the reason? Any idea?
3.Disappearing code lines
For the header on nearly all of our web pages, we're using a composite
control containing, among other items, a button to perform searches based on
criteria entered in other contained controls. Since individual controls
within composite controls aren't displayed when the composite is
dragged-and-dropped onto the page, the only way we have to instantiate an
event handler for the Search button.
Accordingly, we've typically added the line
this.SiteHeader1.Search += new EventHandler(SiteHeader1_Search);
to the InitializeComponent function.
InitializeComponent seems to be the only function within which we can
instantiate the event handler and it works great for a while, but now and
then, the IDE trashes the line. We haven't had any luck using the Page_Load
event, either.
Any ideas?
Regards,
Allen
4.disappearing code
Hi all,
I'm brand new at using Visual Studio, but I have basic
programming knowledge from C++.
I created a Windows form with some buttons, a tab area and
tabs, and some combo boxes with a list of values. I wanted
to set the default values for the combo boxes, so I found
the section in the code where all the attributes of the
combo boxes were defined. As the last line, I added
me.combobox1.selectedIndex = 0. I saved the changes and
then ran the form, and it worked (the first item was
showing in the combo box before I ever clicked it). Then I
made an unrelated change to the form, ran it again, and
the defaults were gone. I checked the code, and the code
was gone too. Why is it getting rid of my code????