Re: ADO generated code disapears
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 08/23/04
- Next message: Michael D. Long: "Re: ADO connection state and object destruction Problem/Question"
- Previous message: William \(Bill\) Vaughn: "Re: Multi-threading with ADO"
- In reply to: dan: "ADO generated code disapears"
- Next in thread: dan: "Re: ADO generated code disapears"
- Reply: dan: "Re: ADO generated code disapears"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Aug 2004 15:54:42 -0700
There are no "Data" controls in ADO.NET (there is a Data control in VB6).
Are you using the Data Adapter Configuration wizard to generate the
SqlDataAdapter and SqlCommand objects? This code is not connected in any way
to bound controls until you drag these to the form so I'm confused as to
what you mean by "disappears".
-- ____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ "dan" <dea@deamon.com> wrote in message news:uETuVjPiEHA.3428@TK2MSFTNGP11.phx.gbl... > The code generated by the Data controls such as SqlDataAdapter and > SqlCommand disappears when a change is made to the form (e.g. changing the > text of a control, adding a new button, etc). Thus the data controls must > be reconfigured which is highly annoying. > > Does this work as designed, is it a VS fault or am I doing something > wrong? > Is there a way to avoid this happening? > > Thanks, > Dan > >
- Next message: Michael D. Long: "Re: ADO connection state and object destruction Problem/Question"
- Previous message: William \(Bill\) Vaughn: "Re: Multi-threading with ADO"
- In reply to: dan: "ADO generated code disapears"
- Next in thread: dan: "Re: ADO generated code disapears"
- Reply: dan: "Re: ADO generated code disapears"
- Messages sorted by: [ date ] [ thread ]