Home All Groups Group Topic Archive Search About

Newbie: Datagrid ghost won't die

Author
1 Mar 2006 8:47 PM
mahalie
I am reading a book and doing example exercises.  I had a working
program that I'd rather not recreate and messed it up by adding
(experimenting with) db connections and a datagrid to a VB web forms
project.

I deleted the datagrid in the GUI, the dbConnection, dataadapter and
datagrid thing and can't find any traces of it in the code behind page,
even in the 'Windows Form Designer Code' section.

But when building the proejct I get a 'Sub Main' was not found in
project1.form1 and the datagrid still shows up on the main form.

There are references to  $this.Grigdsize and other dataset properties
in the form1.resx file (I don't even know what a .resx file is but it
came up in the errors list.

Anyone know how I can kill the datagrid and get my program working
again?  Thanks!

Author
1 Mar 2006 8:50 PM
mahalie
Oops, I think I found it.  Wouldn't you know clicking on the error
actually provided a clue!

My main form's 'Public Class Form1' was changed to 'Public Class e'
somehow....

Problem solved but I would certainly still learn much from any
explanation of what happened. Tx again.

~mahalie


maha***@gmail.com wrote:
Show quote
> I am reading a book and doing example exercises.  I had a working
> program that I'd rather not recreate and messed it up by adding
> (experimenting with) db connections and a datagrid to a VB web forms
> project.
>
> I deleted the datagrid in the GUI, the dbConnection, dataadapter and
> datagrid thing and can't find any traces of it in the code behind page,
> even in the 'Windows Form Designer Code' section.
>
> But when building the proejct I get a 'Sub Main' was not found in
> project1.form1 and the datagrid still shows up on the main form.
>
> There are references to  $this.Grigdsize and other dataset properties
> in the form1.resx file (I don't even know what a .resx file is but it
> came up in the errors list.
>
> Anyone know how I can kill the datagrid and get my program working
> again?  Thanks!

AddThis Social Bookmark Button