From kp at sdsonline.net Wed Apr 12 22:23:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 13 Apr 2006 13:23:13 +1000 Subject: [dba-VB] Tab COntrol - vb.net Message-ID: <00eb01c65ea9$99034490$6601a8c0@office> (Cross posted to accessd normal and vb.net lists) I am trying to create a form in vb.net with a tab control, where the text on the labels is shown horizontally. If you look at [View], [Property Pages] in vb.net to see the properties of the vb.net app then they display a tab control exactly like what I need...... Does anyone know which properties I set to get the text to go that way? I can't find it.... ______________________________________ Kath Pelletti From kp at sdsonline.net Tue Apr 18 18:22:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 19 Apr 2006 09:22:13 +1000 Subject: [dba-VB] Bound form - vb.net Message-ID: <000801c6633e$ede11070$6601a8c0@office> (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti From R.Griffiths at bury.gov.uk Thu Apr 20 03:47:23 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 20 Apr 2006 09:47:23 +0100 Subject: [dba-VB] Bound form - vb.net Message-ID: <200604200836.k3K8aL723600@smarthost.yourcomms.net> Hi You can bind to various objects such as datasets and your business classes. I initially started binding to a dataset but quickly moved on to binding to my class objects and this offers huge power IMO as you can bind to all properties in your class and my class objects handles all the updates to the BE db. So in my form I would call BindFields which does something like this With tbLastName.Databindings .clear .add("Text",myClassObject,"LastName") end with bm = Me.BindingContext(myClassObject) (bm is bindingmanagerbase object) For multiple records I would use an Array List to hold all my class objects (records) With tbLastName.Databindings .clear .add("Text",myArrayList,"LastName") end with bm = Me.BindingContext(myArrayList) (bm is bindingmanagerbase object) I know there is more to discuss in the area (such as using a strongly typed collection class to hold my class object) but... HTH Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 19 April 2006 00:22 To: Access D Normal List; AccessD VB List Subject: [dba-VB] Bound form - vb.net (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From kp at sdsonline.net Wed Apr 12 22:23:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 13 Apr 2006 13:23:13 +1000 Subject: [dba-VB] Tab COntrol - vb.net Message-ID: <00eb01c65ea9$99034490$6601a8c0@office> (Cross posted to accessd normal and vb.net lists) I am trying to create a form in vb.net with a tab control, where the text on the labels is shown horizontally. If you look at [View], [Property Pages] in vb.net to see the properties of the vb.net app then they display a tab control exactly like what I need...... Does anyone know which properties I set to get the text to go that way? I can't find it.... ______________________________________ Kath Pelletti From kp at sdsonline.net Tue Apr 18 18:22:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 19 Apr 2006 09:22:13 +1000 Subject: [dba-VB] Bound form - vb.net Message-ID: <000801c6633e$ede11070$6601a8c0@office> (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti From R.Griffiths at bury.gov.uk Thu Apr 20 03:47:23 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 20 Apr 2006 09:47:23 +0100 Subject: [dba-VB] Bound form - vb.net Message-ID: <200604200836.k3K8aL723600@smarthost.yourcomms.net> Hi You can bind to various objects such as datasets and your business classes. I initially started binding to a dataset but quickly moved on to binding to my class objects and this offers huge power IMO as you can bind to all properties in your class and my class objects handles all the updates to the BE db. So in my form I would call BindFields which does something like this With tbLastName.Databindings .clear .add("Text",myClassObject,"LastName") end with bm = Me.BindingContext(myClassObject) (bm is bindingmanagerbase object) For multiple records I would use an Array List to hold all my class objects (records) With tbLastName.Databindings .clear .add("Text",myArrayList,"LastName") end with bm = Me.BindingContext(myArrayList) (bm is bindingmanagerbase object) I know there is more to discuss in the area (such as using a strongly typed collection class to hold my class object) but... HTH Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 19 April 2006 00:22 To: Access D Normal List; AccessD VB List Subject: [dba-VB] Bound form - vb.net (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From kp at sdsonline.net Wed Apr 12 22:23:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 13 Apr 2006 13:23:13 +1000 Subject: [dba-VB] Tab COntrol - vb.net Message-ID: <00eb01c65ea9$99034490$6601a8c0@office> (Cross posted to accessd normal and vb.net lists) I am trying to create a form in vb.net with a tab control, where the text on the labels is shown horizontally. If you look at [View], [Property Pages] in vb.net to see the properties of the vb.net app then they display a tab control exactly like what I need...... Does anyone know which properties I set to get the text to go that way? I can't find it.... ______________________________________ Kath Pelletti From kp at sdsonline.net Tue Apr 18 18:22:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 19 Apr 2006 09:22:13 +1000 Subject: [dba-VB] Bound form - vb.net Message-ID: <000801c6633e$ede11070$6601a8c0@office> (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti From R.Griffiths at bury.gov.uk Thu Apr 20 03:47:23 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 20 Apr 2006 09:47:23 +0100 Subject: [dba-VB] Bound form - vb.net Message-ID: <200604200836.k3K8aL723600@smarthost.yourcomms.net> Hi You can bind to various objects such as datasets and your business classes. I initially started binding to a dataset but quickly moved on to binding to my class objects and this offers huge power IMO as you can bind to all properties in your class and my class objects handles all the updates to the BE db. So in my form I would call BindFields which does something like this With tbLastName.Databindings .clear .add("Text",myClassObject,"LastName") end with bm = Me.BindingContext(myClassObject) (bm is bindingmanagerbase object) For multiple records I would use an Array List to hold all my class objects (records) With tbLastName.Databindings .clear .add("Text",myArrayList,"LastName") end with bm = Me.BindingContext(myArrayList) (bm is bindingmanagerbase object) I know there is more to discuss in the area (such as using a strongly typed collection class to hold my class object) but... HTH Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 19 April 2006 00:22 To: Access D Normal List; AccessD VB List Subject: [dba-VB] Bound form - vb.net (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From kp at sdsonline.net Wed Apr 12 22:23:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 13 Apr 2006 13:23:13 +1000 Subject: [dba-VB] Tab COntrol - vb.net Message-ID: <00eb01c65ea9$99034490$6601a8c0@office> (Cross posted to accessd normal and vb.net lists) I am trying to create a form in vb.net with a tab control, where the text on the labels is shown horizontally. If you look at [View], [Property Pages] in vb.net to see the properties of the vb.net app then they display a tab control exactly like what I need...... Does anyone know which properties I set to get the text to go that way? I can't find it.... ______________________________________ Kath Pelletti From kp at sdsonline.net Tue Apr 18 18:22:13 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 19 Apr 2006 09:22:13 +1000 Subject: [dba-VB] Bound form - vb.net Message-ID: <000801c6633e$ede11070$6601a8c0@office> (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti From R.Griffiths at bury.gov.uk Thu Apr 20 03:47:23 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 20 Apr 2006 09:47:23 +0100 Subject: [dba-VB] Bound form - vb.net Message-ID: <200604200836.k3K8aL723600@smarthost.yourcomms.net> Hi You can bind to various objects such as datasets and your business classes. I initially started binding to a dataset but quickly moved on to binding to my class objects and this offers huge power IMO as you can bind to all properties in your class and my class objects handles all the updates to the BE db. So in my form I would call BindFields which does something like this With tbLastName.Databindings .clear .add("Text",myClassObject,"LastName") end with bm = Me.BindingContext(myClassObject) (bm is bindingmanagerbase object) For multiple records I would use an Array List to hold all my class objects (records) With tbLastName.Databindings .clear .add("Text",myArrayList,"LastName") end with bm = Me.BindingContext(myArrayList) (bm is bindingmanagerbase object) I know there is more to discuss in the area (such as using a strongly typed collection class to hold my class object) but... HTH Richard -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 19 April 2006 00:22 To: Access D Normal List; AccessD VB List Subject: [dba-VB] Bound form - vb.net (Cross posted to AccessD and AccessVB) I can see that there are a few ways of working with data in vb.net on a form. (My data in in Sql Server 2005 db) But can someone tell me how they would *normally* bind data to a form and display: - A single record, or - Multiple records, like in an Access continuous form. TIA Kath Pelletti _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com