From paul.hartland at googlemail.com Fri Oct 3 03:02:15 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 3 Oct 2008 09:02:15 +0100 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Oct 3 04:55:19 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 3 Oct 2008 13:55:19 +0400 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET In-Reply-To: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> Message-ID: <000601c9253e$26450f70$6401a8c0@nant> Hello Paul, Yes, VB.NET is used interchangeably with Visual Basic 2005 or 2008.. Book/samples for starters - maybe this: 101 MicrosoftR Visual BasicR .NET Applications http://www.microsoft.com/mspress/books/companion/6510.aspx ? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, October 03, 2008 12:02 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 2008 Express & VB.NET To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Oct 3 05:01:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Oct 2008 12:01:43 +0200 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: Hi Paul Did you study the official page? Should keep you busy for a couple of weeks: http://msdn.microsoft.com/en-us/vbasic/ms789086.aspx A lot of this stuff is free. /gustav >>> paul.hartland at googlemail.com 03-10-2008 10:02 >>> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Mon Oct 6 02:59:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 09:59:33 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From Gustav at cactus.dk Mon Oct 6 03:18:53 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 10:18:53 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav From mikedorism at verizon.net Mon Oct 6 06:57:22 2008 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 06 Oct 2008 07:57:22 -0400 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: References: Message-ID: <7D0632525E36468BA871B59BDBACA1F0@Kermit> I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:07:55 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:07:55 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: Aside from the differences in language (we use VB.Net) and the specific events (we use 3rd party grids) that's pretty much what we do and what I would do on a datagridview where I allowed deletes like that. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 1:19 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:10:11 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:10:11 -0700 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: <7D0632525E36468BA871B59BDBACA1F0@Kermit> References: <7D0632525E36468BA871B59BDBACA1F0@Kermit> Message-ID: That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Mon Oct 6 10:58:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 08:58:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810060858i15032618qd060c179a09ca43c@mail.gmail.com> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? > > From gustav at cactus.dk Mon Oct 6 16:01:15 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:01:15 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi Doris and Charlotte Oh, I believed imagelist was for collecting different images into one collection ... so these resource files are really prepared imagelists? Obviously I haven't worked with imagelists yet. One more item to read up. /gustav >>> cfoust at infostatsystems.com 06-10-2008 17:10 >>> That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From gustav at cactus.dk Mon Oct 6 16:28:42 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:28:42 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug You are most welcome. Could you provide a link, please? Problem is, however, that this suggestion was one of my first attempts - only to find out that this event is fired _after_ the actual deleting has been carried out - and as it carries no "Cancel" parameter or similar, it can only be used for something else you wish to do when that toolbarbutton has been clicked. While, coming from Access, I still wonder why this simple feature is not ready-built, I'm not in the mood to start modifying the native bindingnavigator as my workaround functions very well. As I wanted the deleted row (when confirmed) to be removed from the database at once, I included this code: private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { if (e.RowCount > 0) { this.Cursor = Cursors.WaitCursor; // Delete from the source the deleted row. this.dessinNoBindingSource.EndEdit(); this.productTableAdapter.Update(this.karnelia.Product); this.Cursor = Cursors.Default; } } This also executes after the user has selected a row and pressed the Delete key. /gustav >>> dbdoug at gmail.com 06-10-2008 17:58 >>> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? From dbdoug at gmail.com Mon Oct 6 16:42:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 14:42:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810061442i530f28b6if353708f2df8956e@mail.gmail.com> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav > > > http://www.databaseadvisors.com > > From gustav at cactus.dk Mon Oct 6 16:50:20 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:50:20 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Thanks Doug. Bedtime here, so I will have a look tomorrow. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav From Gustav at cactus.dk Tue Oct 7 01:00:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Oct 2008 08:00:57 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug I was a bit too fast. The click event I mention is that of the toolbarButton you now can fetch in VS. The comment talks about modifying the component and that will of course work. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. From paul.hartland at googlemail.com Fri Oct 10 06:18:20 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 10 Oct 2008 12:18:20 +0100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour Of Certain Rows Message-ID: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Fri Oct 10 12:21:10 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Oct 2008 19:21:10 +0200 Subject: [dba-VB] ClickOnce Message-ID: Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From nilslenz at gmail.com Fri Oct 10 13:01:27 2008 From: nilslenz at gmail.com (Nils R. Lenz) Date: Fri, 10 Oct 2008 14:01:27 -0400 Subject: [dba-VB] dba-VB Message-ID: <003101c92b02$3822bf20$a8683d60$@com> Please cancel my subscription to this list as I not programming anymore. Thank you, Nils R. Lenz cid:image004.png at 01C92ADD.54B002D0 From cfoust at infostatsystems.com Fri Oct 10 13:27:10 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Oct 2008 11:27:10 -0700 Subject: [dba-VB] ClickOnce In-Reply-To: References: Message-ID: I'm told that we use it for a couple of our standalone tools we provide admins for our products. I haven't worked with it myself, but the programmer who has used it agrees with you that it's easy once it's set up. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, October 10, 2008 10:21 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] ClickOnce Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From garykjos at gmail.com Fri Oct 10 13:48:21 2008 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 10 Oct 2008 13:48:21 -0500 Subject: [dba-VB] dba-VB In-Reply-To: <003101c92b02$3822bf20$a8683d60$@com> References: <003101c92b02$3822bf20$a8683d60$@com> Message-ID: See the bottom of this page Nils, http://databaseadvisors.com/mailman/listinfo/dba-vb GK On 10/10/08, Nils R. Lenz wrote: > > > Please cancel my subscription to this list as I not programming anymore. > > > > Thank you, > > > > Nils R. Lenz > > > > cid:image004.png at 01C92ADD.54B002D0 > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > -- Gary Kjos garykjos at gmail.com From michael at ddisolutions.com.au Sun Oct 12 18:00:06 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 13 Oct 2008 10:00:06 +1100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows References: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013C01A3@ddi-01.DDI.local> Hi Paul, This may not help as I don't use the native VB6 grids (yuk!) but what I would normally do Is add a flag to the sql that returns 0 for personnel and 1 for student. Then do conditional formatting on the row. If the grid lets you do cond formatting that is ;-) Time to talk them into upgrading to dotnet I think! Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, 10 October 2008 10:18 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Tue Oct 14 16:55:09 2008 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Oct 2008 23:55:09 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From cfoust at infostatsystems.com Tue Oct 14 18:54:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Oct 2008 16:54:15 -0700 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Oct 14 21:52:52 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Oct 2008 12:52:52 +1000 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: <48F5E7A4.5920.1E6B04@stuart.lexacorp.com.pg> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Oct 15 02:41:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:41:32 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Charlotte No I haven't, don't know why. But that is indeed a lovely low-tech method which offers easy printing options as well. /gustav >>> cfoust at infostatsystems.com 15-10-2008 01:54 >>> Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From Gustav at cactus.dk Wed Oct 15 02:48:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:48:33 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Stuart My thought was to avoid building a help file. I did that a couple of times with the good old Help Magician Pro but don't recall it as an entertaining experience. But it sounds like the tool you mention makes it easy. I better give it a try. Thanks. /gustav >>> stuart at lexacorp.com.pg 15-10-2008 04:52 >>> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav From Gustav at cactus.dk Thu Oct 16 09:46:55 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Oct 2008 16:46:55 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 14:19:07 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 17 Oct 2008 20:19:07 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f8e527.06a0100a.7593.41a1@mx.google.com> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Fri Oct 17 15:57:39 2008 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Oct 2008 22:57:39 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 20:19:35 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 18 Oct 2008 02:19:35 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f939a1.02ab100a.1531.ffffa7ed@mx.google.com> That sorted it. Yes, I was using Firefox. Worked fine in IE. I have a feeling that Chrome does not announce itself sufficiently well. In a hosting site I use, it says that Chrome is an old version and I must update to a newer version of Firefox. I like Chrome in parts, but not in entirety, so I stick with Firefox. For me, IE is so frustrating with the pop up bar blocking everything and never remembering that I told it ten million times to accept stuff! Thanks Gustav. Good man! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 17 October 2008 21:58 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Sat Oct 18 15:11:25 2008 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 18 Oct 2008 13:11:25 -0700 Subject: [dba-VB] AfterUpdate equivalent Message-ID: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From gustav at cactus.dk Sat Oct 18 17:33:28 2008 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Oct 2008 00:33:28 +0200 Subject: [dba-VB] AfterUpdate equivalent Message-ID: Hi Doug Not always as it may not loose focus if you push a toolbar button. The TextChanged is sometimes fine, or - if you use the validate mechanics - you can use validating and the Validated event. /gustav >>> dbdoug at gmail.com 18-10-2008 22:11 >>> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From cfoust at infostatsystems.com Mon Oct 20 10:28:44 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 08:28:44 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: As Gustav pointed out, the closest you come in .Net is the Validated event, with Validating being a cose runnerup for BeforeUpdate. They aren't entirely analogous, but they're way more consistent. You can also customize the program flow more in .Net by using threading, like this: If Not bValid Then Me.BeginInvoke(New Threading.ThreadStart(AddressOf SelectRunDateTime)) The above line is in a custom validation routine called from a grid cell event. The thread executes after the calling routine ends but before program flow returns to the grid. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Saturday, October 18, 2008 1:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] AfterUpdate equivalent Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Oct 20 12:15:39 2008 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 20 Oct 2008 10:15:39 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the (many) > surprises I've had is the lack of AfterUpdate events for controls, in > particular, for a text box. Can the LostFocus event be used safely as > an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Oct 20 13:10:28 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:10:28 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: Regular combobox or a grid cell dropdown? Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 20 13:13:05 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:13:05 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: You have a RowEnter event in a datagrid that you can use to fill a combobox dropdown list. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Oct 22 03:35:12 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Oct 2008 12:35:12 +0400 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: <000001c93421$1bc2dbd0$6401a8c0@nant> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Wed Oct 22 03:49:03 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Oct 2008 10:49:03 +0200 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: Hi Shamil Could it be that you have defined restricted IP address and/or domain access? That's the tab Directory Security of the web site properties. Also, you could enable logging and perhaps watch what is going on. /gustav >>> shamil at smsconsulting.spb.ru 22-10-2008 10:35 >>> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Fri Oct 24 06:20:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Oct 2008 13:20:32 +0200 Subject: [dba-VB] ClickOnce: Adding and installing fonts (or anything else) Message-ID: Hi all As you may be aware, an application published with ClickOnce doesn't "install", it just loads and runs on the user's machine, and "disappears" when he/she closes it. So what to do if you need a special font for your application? You _can_ include code in your app to create the font file and call the API to install it, but a lot of code is required, indeed if you wish to add code to catch all the possible error sources like missing admin rights and so on. So I googled for other methods and found that you can include nearly anything as a "prerequisite" for running your application. These prerequisites will be added to your publish page with an option to download and install these before launching your app, while - on the other hand - your app will be adjusted to check for a successful installation of each of the prerequisites - if any is missing, the app will refuse to launch with a message about what is missing. So an msi installer should be created to install the font. To create this, open a new setup project, add nothing more to this than the "Special folder" Fonts, and add the font file to this folder. Build the msi install package. Next question, how to include your font installer as a prerequisite? For this to happen, a bootstrapper package must be created. These are typically located in: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages Here you'll see those packages listed in the Prerequisites' list box where you can mark those you need for your app. To turn your setup file into a bootstrapper package, all you need is to create two manifest xml files as you can see if you browse the other packages' folders. However, creating these xml files is not a beginner's job even though it is documented at MSDN: http://msdn.microsoft.com/en-us/library/aa730839(VS.80).aspx Luckily, as you whisper OMG, you find a tool for this, BMG, Bootstrapper Manifest Generator: http://code.msdn.microsoft.com/bmg This is a bit rough on the edges, and takes quite a few test-runs before you find out what is going on, but it is in fact quite clever, though the only method I could find to make my install _not_ to appear as failed, was to set the Default exit code to "Success" while this as default by the BMG is set to "Fail". When you reach this far, your bootstrapper package is nicely listed when you wish to configure your publishing by ClickOnce, and - when done - the name of your font installer is listed at the published Publish page along with the other prerequisites. /gustav >>> Gustav at cactus.dk 10-10-2008 19:21 >>> Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From dbdoug at gmail.com Fri Oct 24 11:27:05 2008 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Oct 2008 09:27:05 -0700 Subject: [dba-VB] combobox problems Message-ID: <4dd71a0c0810240927j1052ed46nbbc2d5b767db6613@mail.gmail.com> Hello All: I'm currently working on a Windows CE application I am a little baffled at the behavior of a bound combo box. Setup: I have a Combobox bound to a BindingSource, with the DisplayMember a name and the DisplayValue an integer which is the PK of the underlying table. I want the user to select a name and then (later) I am going to add a new row to a different table using the name's key value along with other key values taken from other combo boxes. Behaviour: When a selection is made in the combobox, the new name selected shows up as expected. However when I look at the combobox.ValueSelected, it is the key of the FIRST row, not the key of the currently displayed row. When I look at the BindingSource.Position, it is zero. If I watch the combobox.SelectedIndexChanged event, it always fires twice. The first time it fires, the ValueSelected contains the key value of the newly selected item and the BindingSource.Position is zero. The second time it fires, the ValueSelected has reverted to the key of the first row, and the BindingSource.Position is the position of the newly selected item. It looks like I can grab the key value I need by saving it whenever the SelectedIndexChanged event fires with a zero BindingSource.Position, but that seems kind of kludgy, and I don't know if I can trust it. Surely the whole point of a bound combobox is to supply the value of the displayed item. Am I missing something here? Thanks, Doug Steele From joeget at vgernet.net Wed Oct 29 22:53:33 2008 From: joeget at vgernet.net (John Eget) Date: Wed, 29 Oct 2008 23:53:33 -0400 Subject: [dba-VB] transfer of data from sub to main form Message-ID: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Hi In an Access database On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform I then can manually enter that value on the form frmPAInput, in a field named Observations. Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? I have tried the wizard to generate the code but have been unable to get this correct. Thanks John From stuart at lexacorp.com.pg Wed Oct 29 23:13:27 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 30 Oct 2008 14:13:27 +1000 Subject: [dba-VB] transfer of data from sub to main form In-Reply-To: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> References: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Message-ID: <4909C107.13946.1540AEA@stuart.lexacorp.com.pg> As answered on the AccessD list: You don't need the Refresh button. Set the value of TotalCharQty to "=Sum(CharQty)". That way, the total will keep itself updated. If you want to have Observations automatically filled in, but also want to ability to enter it manually, one way is to fill in the value when you enter the field, you can then accept the entry or enter something else. To do this, use an On Enter event procedure like this: Private Sub Observations_Enter() If IsNull(Observations) or Observations = "" Then 'only update if it's empty Observations = subfrmCharPA.Form.TotalCharQty End if End Sub On 29 Oct 2008 at 23:53, John Eget wrote: > Hi > > In an Access database > > On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA > > After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform > > I then can manually enter that value on the form frmPAInput, in a field named Observations. > > Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? > > I have tried the wizard to generate the code but have been unable to get this correct. > > Thanks > > John > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at googlemail.com Fri Oct 3 03:02:15 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 3 Oct 2008 09:02:15 +0100 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Oct 3 04:55:19 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 3 Oct 2008 13:55:19 +0400 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET In-Reply-To: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> Message-ID: <000601c9253e$26450f70$6401a8c0@nant> Hello Paul, Yes, VB.NET is used interchangeably with Visual Basic 2005 or 2008.. Book/samples for starters - maybe this: 101 MicrosoftR Visual BasicR .NET Applications http://www.microsoft.com/mspress/books/companion/6510.aspx ? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, October 03, 2008 12:02 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 2008 Express & VB.NET To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Oct 3 05:01:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Oct 2008 12:01:43 +0200 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: Hi Paul Did you study the official page? Should keep you busy for a couple of weeks: http://msdn.microsoft.com/en-us/vbasic/ms789086.aspx A lot of this stuff is free. /gustav >>> paul.hartland at googlemail.com 03-10-2008 10:02 >>> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Mon Oct 6 02:59:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 09:59:33 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From Gustav at cactus.dk Mon Oct 6 03:18:53 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 10:18:53 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav From mikedorism at verizon.net Mon Oct 6 06:57:22 2008 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 06 Oct 2008 07:57:22 -0400 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: References: Message-ID: <7D0632525E36468BA871B59BDBACA1F0@Kermit> I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:07:55 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:07:55 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: Aside from the differences in language (we use VB.Net) and the specific events (we use 3rd party grids) that's pretty much what we do and what I would do on a datagridview where I allowed deletes like that. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 1:19 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:10:11 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:10:11 -0700 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: <7D0632525E36468BA871B59BDBACA1F0@Kermit> References: <7D0632525E36468BA871B59BDBACA1F0@Kermit> Message-ID: That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Mon Oct 6 10:58:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 08:58:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810060858i15032618qd060c179a09ca43c@mail.gmail.com> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? > > From gustav at cactus.dk Mon Oct 6 16:01:15 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:01:15 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi Doris and Charlotte Oh, I believed imagelist was for collecting different images into one collection ... so these resource files are really prepared imagelists? Obviously I haven't worked with imagelists yet. One more item to read up. /gustav >>> cfoust at infostatsystems.com 06-10-2008 17:10 >>> That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From gustav at cactus.dk Mon Oct 6 16:28:42 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:28:42 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug You are most welcome. Could you provide a link, please? Problem is, however, that this suggestion was one of my first attempts - only to find out that this event is fired _after_ the actual deleting has been carried out - and as it carries no "Cancel" parameter or similar, it can only be used for something else you wish to do when that toolbarbutton has been clicked. While, coming from Access, I still wonder why this simple feature is not ready-built, I'm not in the mood to start modifying the native bindingnavigator as my workaround functions very well. As I wanted the deleted row (when confirmed) to be removed from the database at once, I included this code: private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { if (e.RowCount > 0) { this.Cursor = Cursors.WaitCursor; // Delete from the source the deleted row. this.dessinNoBindingSource.EndEdit(); this.productTableAdapter.Update(this.karnelia.Product); this.Cursor = Cursors.Default; } } This also executes after the user has selected a row and pressed the Delete key. /gustav >>> dbdoug at gmail.com 06-10-2008 17:58 >>> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? From dbdoug at gmail.com Mon Oct 6 16:42:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 14:42:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810061442i530f28b6if353708f2df8956e@mail.gmail.com> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav > > > http://www.databaseadvisors.com > > From gustav at cactus.dk Mon Oct 6 16:50:20 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:50:20 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Thanks Doug. Bedtime here, so I will have a look tomorrow. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav From Gustav at cactus.dk Tue Oct 7 01:00:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Oct 2008 08:00:57 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug I was a bit too fast. The click event I mention is that of the toolbarButton you now can fetch in VS. The comment talks about modifying the component and that will of course work. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. From paul.hartland at googlemail.com Fri Oct 10 06:18:20 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 10 Oct 2008 12:18:20 +0100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour Of Certain Rows Message-ID: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Fri Oct 10 12:21:10 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Oct 2008 19:21:10 +0200 Subject: [dba-VB] ClickOnce Message-ID: Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From nilslenz at gmail.com Fri Oct 10 13:01:27 2008 From: nilslenz at gmail.com (Nils R. Lenz) Date: Fri, 10 Oct 2008 14:01:27 -0400 Subject: [dba-VB] dba-VB Message-ID: <003101c92b02$3822bf20$a8683d60$@com> Please cancel my subscription to this list as I not programming anymore. Thank you, Nils R. Lenz cid:image004.png at 01C92ADD.54B002D0 From cfoust at infostatsystems.com Fri Oct 10 13:27:10 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Oct 2008 11:27:10 -0700 Subject: [dba-VB] ClickOnce In-Reply-To: References: Message-ID: I'm told that we use it for a couple of our standalone tools we provide admins for our products. I haven't worked with it myself, but the programmer who has used it agrees with you that it's easy once it's set up. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, October 10, 2008 10:21 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] ClickOnce Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From garykjos at gmail.com Fri Oct 10 13:48:21 2008 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 10 Oct 2008 13:48:21 -0500 Subject: [dba-VB] dba-VB In-Reply-To: <003101c92b02$3822bf20$a8683d60$@com> References: <003101c92b02$3822bf20$a8683d60$@com> Message-ID: See the bottom of this page Nils, http://databaseadvisors.com/mailman/listinfo/dba-vb GK On 10/10/08, Nils R. Lenz wrote: > > > Please cancel my subscription to this list as I not programming anymore. > > > > Thank you, > > > > Nils R. Lenz > > > > cid:image004.png at 01C92ADD.54B002D0 > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > -- Gary Kjos garykjos at gmail.com From michael at ddisolutions.com.au Sun Oct 12 18:00:06 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 13 Oct 2008 10:00:06 +1100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows References: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013C01A3@ddi-01.DDI.local> Hi Paul, This may not help as I don't use the native VB6 grids (yuk!) but what I would normally do Is add a flag to the sql that returns 0 for personnel and 1 for student. Then do conditional formatting on the row. If the grid lets you do cond formatting that is ;-) Time to talk them into upgrading to dotnet I think! Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, 10 October 2008 10:18 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Tue Oct 14 16:55:09 2008 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Oct 2008 23:55:09 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From cfoust at infostatsystems.com Tue Oct 14 18:54:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Oct 2008 16:54:15 -0700 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Oct 14 21:52:52 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Oct 2008 12:52:52 +1000 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: <48F5E7A4.5920.1E6B04@stuart.lexacorp.com.pg> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Oct 15 02:41:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:41:32 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Charlotte No I haven't, don't know why. But that is indeed a lovely low-tech method which offers easy printing options as well. /gustav >>> cfoust at infostatsystems.com 15-10-2008 01:54 >>> Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From Gustav at cactus.dk Wed Oct 15 02:48:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:48:33 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Stuart My thought was to avoid building a help file. I did that a couple of times with the good old Help Magician Pro but don't recall it as an entertaining experience. But it sounds like the tool you mention makes it easy. I better give it a try. Thanks. /gustav >>> stuart at lexacorp.com.pg 15-10-2008 04:52 >>> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav From Gustav at cactus.dk Thu Oct 16 09:46:55 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Oct 2008 16:46:55 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 14:19:07 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 17 Oct 2008 20:19:07 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f8e527.06a0100a.7593.41a1@mx.google.com> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Fri Oct 17 15:57:39 2008 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Oct 2008 22:57:39 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 20:19:35 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 18 Oct 2008 02:19:35 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f939a1.02ab100a.1531.ffffa7ed@mx.google.com> That sorted it. Yes, I was using Firefox. Worked fine in IE. I have a feeling that Chrome does not announce itself sufficiently well. In a hosting site I use, it says that Chrome is an old version and I must update to a newer version of Firefox. I like Chrome in parts, but not in entirety, so I stick with Firefox. For me, IE is so frustrating with the pop up bar blocking everything and never remembering that I told it ten million times to accept stuff! Thanks Gustav. Good man! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 17 October 2008 21:58 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Sat Oct 18 15:11:25 2008 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 18 Oct 2008 13:11:25 -0700 Subject: [dba-VB] AfterUpdate equivalent Message-ID: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From gustav at cactus.dk Sat Oct 18 17:33:28 2008 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Oct 2008 00:33:28 +0200 Subject: [dba-VB] AfterUpdate equivalent Message-ID: Hi Doug Not always as it may not loose focus if you push a toolbar button. The TextChanged is sometimes fine, or - if you use the validate mechanics - you can use validating and the Validated event. /gustav >>> dbdoug at gmail.com 18-10-2008 22:11 >>> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From cfoust at infostatsystems.com Mon Oct 20 10:28:44 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 08:28:44 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: As Gustav pointed out, the closest you come in .Net is the Validated event, with Validating being a cose runnerup for BeforeUpdate. They aren't entirely analogous, but they're way more consistent. You can also customize the program flow more in .Net by using threading, like this: If Not bValid Then Me.BeginInvoke(New Threading.ThreadStart(AddressOf SelectRunDateTime)) The above line is in a custom validation routine called from a grid cell event. The thread executes after the calling routine ends but before program flow returns to the grid. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Saturday, October 18, 2008 1:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] AfterUpdate equivalent Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Oct 20 12:15:39 2008 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 20 Oct 2008 10:15:39 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the (many) > surprises I've had is the lack of AfterUpdate events for controls, in > particular, for a text box. Can the LostFocus event be used safely as > an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Oct 20 13:10:28 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:10:28 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: Regular combobox or a grid cell dropdown? Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 20 13:13:05 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:13:05 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: You have a RowEnter event in a datagrid that you can use to fill a combobox dropdown list. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Oct 22 03:35:12 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Oct 2008 12:35:12 +0400 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: <000001c93421$1bc2dbd0$6401a8c0@nant> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Wed Oct 22 03:49:03 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Oct 2008 10:49:03 +0200 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: Hi Shamil Could it be that you have defined restricted IP address and/or domain access? That's the tab Directory Security of the web site properties. Also, you could enable logging and perhaps watch what is going on. /gustav >>> shamil at smsconsulting.spb.ru 22-10-2008 10:35 >>> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Fri Oct 24 06:20:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Oct 2008 13:20:32 +0200 Subject: [dba-VB] ClickOnce: Adding and installing fonts (or anything else) Message-ID: Hi all As you may be aware, an application published with ClickOnce doesn't "install", it just loads and runs on the user's machine, and "disappears" when he/she closes it. So what to do if you need a special font for your application? You _can_ include code in your app to create the font file and call the API to install it, but a lot of code is required, indeed if you wish to add code to catch all the possible error sources like missing admin rights and so on. So I googled for other methods and found that you can include nearly anything as a "prerequisite" for running your application. These prerequisites will be added to your publish page with an option to download and install these before launching your app, while - on the other hand - your app will be adjusted to check for a successful installation of each of the prerequisites - if any is missing, the app will refuse to launch with a message about what is missing. So an msi installer should be created to install the font. To create this, open a new setup project, add nothing more to this than the "Special folder" Fonts, and add the font file to this folder. Build the msi install package. Next question, how to include your font installer as a prerequisite? For this to happen, a bootstrapper package must be created. These are typically located in: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages Here you'll see those packages listed in the Prerequisites' list box where you can mark those you need for your app. To turn your setup file into a bootstrapper package, all you need is to create two manifest xml files as you can see if you browse the other packages' folders. However, creating these xml files is not a beginner's job even though it is documented at MSDN: http://msdn.microsoft.com/en-us/library/aa730839(VS.80).aspx Luckily, as you whisper OMG, you find a tool for this, BMG, Bootstrapper Manifest Generator: http://code.msdn.microsoft.com/bmg This is a bit rough on the edges, and takes quite a few test-runs before you find out what is going on, but it is in fact quite clever, though the only method I could find to make my install _not_ to appear as failed, was to set the Default exit code to "Success" while this as default by the BMG is set to "Fail". When you reach this far, your bootstrapper package is nicely listed when you wish to configure your publishing by ClickOnce, and - when done - the name of your font installer is listed at the published Publish page along with the other prerequisites. /gustav >>> Gustav at cactus.dk 10-10-2008 19:21 >>> Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From dbdoug at gmail.com Fri Oct 24 11:27:05 2008 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Oct 2008 09:27:05 -0700 Subject: [dba-VB] combobox problems Message-ID: <4dd71a0c0810240927j1052ed46nbbc2d5b767db6613@mail.gmail.com> Hello All: I'm currently working on a Windows CE application I am a little baffled at the behavior of a bound combo box. Setup: I have a Combobox bound to a BindingSource, with the DisplayMember a name and the DisplayValue an integer which is the PK of the underlying table. I want the user to select a name and then (later) I am going to add a new row to a different table using the name's key value along with other key values taken from other combo boxes. Behaviour: When a selection is made in the combobox, the new name selected shows up as expected. However when I look at the combobox.ValueSelected, it is the key of the FIRST row, not the key of the currently displayed row. When I look at the BindingSource.Position, it is zero. If I watch the combobox.SelectedIndexChanged event, it always fires twice. The first time it fires, the ValueSelected contains the key value of the newly selected item and the BindingSource.Position is zero. The second time it fires, the ValueSelected has reverted to the key of the first row, and the BindingSource.Position is the position of the newly selected item. It looks like I can grab the key value I need by saving it whenever the SelectedIndexChanged event fires with a zero BindingSource.Position, but that seems kind of kludgy, and I don't know if I can trust it. Surely the whole point of a bound combobox is to supply the value of the displayed item. Am I missing something here? Thanks, Doug Steele From joeget at vgernet.net Wed Oct 29 22:53:33 2008 From: joeget at vgernet.net (John Eget) Date: Wed, 29 Oct 2008 23:53:33 -0400 Subject: [dba-VB] transfer of data from sub to main form Message-ID: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Hi In an Access database On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform I then can manually enter that value on the form frmPAInput, in a field named Observations. Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? I have tried the wizard to generate the code but have been unable to get this correct. Thanks John From stuart at lexacorp.com.pg Wed Oct 29 23:13:27 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 30 Oct 2008 14:13:27 +1000 Subject: [dba-VB] transfer of data from sub to main form In-Reply-To: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> References: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Message-ID: <4909C107.13946.1540AEA@stuart.lexacorp.com.pg> As answered on the AccessD list: You don't need the Refresh button. Set the value of TotalCharQty to "=Sum(CharQty)". That way, the total will keep itself updated. If you want to have Observations automatically filled in, but also want to ability to enter it manually, one way is to fill in the value when you enter the field, you can then accept the entry or enter something else. To do this, use an On Enter event procedure like this: Private Sub Observations_Enter() If IsNull(Observations) or Observations = "" Then 'only update if it's empty Observations = subfrmCharPA.Form.TotalCharQty End if End Sub On 29 Oct 2008 at 23:53, John Eget wrote: > Hi > > In an Access database > > On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA > > After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform > > I then can manually enter that value on the form frmPAInput, in a field named Observations. > > Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? > > I have tried the wizard to generate the code but have been unable to get this correct. > > Thanks > > John > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at googlemail.com Fri Oct 3 03:02:15 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 3 Oct 2008 09:02:15 +0100 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Oct 3 04:55:19 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 3 Oct 2008 13:55:19 +0400 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET In-Reply-To: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> Message-ID: <000601c9253e$26450f70$6401a8c0@nant> Hello Paul, Yes, VB.NET is used interchangeably with Visual Basic 2005 or 2008.. Book/samples for starters - maybe this: 101 MicrosoftR Visual BasicR .NET Applications http://www.microsoft.com/mspress/books/companion/6510.aspx ? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, October 03, 2008 12:02 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 2008 Express & VB.NET To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Oct 3 05:01:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Oct 2008 12:01:43 +0200 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: Hi Paul Did you study the official page? Should keep you busy for a couple of weeks: http://msdn.microsoft.com/en-us/vbasic/ms789086.aspx A lot of this stuff is free. /gustav >>> paul.hartland at googlemail.com 03-10-2008 10:02 >>> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Mon Oct 6 02:59:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 09:59:33 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From Gustav at cactus.dk Mon Oct 6 03:18:53 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 10:18:53 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav From mikedorism at verizon.net Mon Oct 6 06:57:22 2008 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 06 Oct 2008 07:57:22 -0400 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: References: Message-ID: <7D0632525E36468BA871B59BDBACA1F0@Kermit> I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:07:55 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:07:55 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: Aside from the differences in language (we use VB.Net) and the specific events (we use 3rd party grids) that's pretty much what we do and what I would do on a datagridview where I allowed deletes like that. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 1:19 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:10:11 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:10:11 -0700 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: <7D0632525E36468BA871B59BDBACA1F0@Kermit> References: <7D0632525E36468BA871B59BDBACA1F0@Kermit> Message-ID: That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Mon Oct 6 10:58:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 08:58:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810060858i15032618qd060c179a09ca43c@mail.gmail.com> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? > > From gustav at cactus.dk Mon Oct 6 16:01:15 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:01:15 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi Doris and Charlotte Oh, I believed imagelist was for collecting different images into one collection ... so these resource files are really prepared imagelists? Obviously I haven't worked with imagelists yet. One more item to read up. /gustav >>> cfoust at infostatsystems.com 06-10-2008 17:10 >>> That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From gustav at cactus.dk Mon Oct 6 16:28:42 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:28:42 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug You are most welcome. Could you provide a link, please? Problem is, however, that this suggestion was one of my first attempts - only to find out that this event is fired _after_ the actual deleting has been carried out - and as it carries no "Cancel" parameter or similar, it can only be used for something else you wish to do when that toolbarbutton has been clicked. While, coming from Access, I still wonder why this simple feature is not ready-built, I'm not in the mood to start modifying the native bindingnavigator as my workaround functions very well. As I wanted the deleted row (when confirmed) to be removed from the database at once, I included this code: private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { if (e.RowCount > 0) { this.Cursor = Cursors.WaitCursor; // Delete from the source the deleted row. this.dessinNoBindingSource.EndEdit(); this.productTableAdapter.Update(this.karnelia.Product); this.Cursor = Cursors.Default; } } This also executes after the user has selected a row and pressed the Delete key. /gustav >>> dbdoug at gmail.com 06-10-2008 17:58 >>> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? From dbdoug at gmail.com Mon Oct 6 16:42:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 14:42:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810061442i530f28b6if353708f2df8956e@mail.gmail.com> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav > > > http://www.databaseadvisors.com > > From gustav at cactus.dk Mon Oct 6 16:50:20 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:50:20 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Thanks Doug. Bedtime here, so I will have a look tomorrow. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav From Gustav at cactus.dk Tue Oct 7 01:00:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Oct 2008 08:00:57 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug I was a bit too fast. The click event I mention is that of the toolbarButton you now can fetch in VS. The comment talks about modifying the component and that will of course work. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. From paul.hartland at googlemail.com Fri Oct 10 06:18:20 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 10 Oct 2008 12:18:20 +0100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour Of Certain Rows Message-ID: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Fri Oct 10 12:21:10 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Oct 2008 19:21:10 +0200 Subject: [dba-VB] ClickOnce Message-ID: Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From nilslenz at gmail.com Fri Oct 10 13:01:27 2008 From: nilslenz at gmail.com (Nils R. Lenz) Date: Fri, 10 Oct 2008 14:01:27 -0400 Subject: [dba-VB] dba-VB Message-ID: <003101c92b02$3822bf20$a8683d60$@com> Please cancel my subscription to this list as I not programming anymore. Thank you, Nils R. Lenz cid:image004.png at 01C92ADD.54B002D0 From cfoust at infostatsystems.com Fri Oct 10 13:27:10 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Oct 2008 11:27:10 -0700 Subject: [dba-VB] ClickOnce In-Reply-To: References: Message-ID: I'm told that we use it for a couple of our standalone tools we provide admins for our products. I haven't worked with it myself, but the programmer who has used it agrees with you that it's easy once it's set up. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, October 10, 2008 10:21 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] ClickOnce Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From garykjos at gmail.com Fri Oct 10 13:48:21 2008 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 10 Oct 2008 13:48:21 -0500 Subject: [dba-VB] dba-VB In-Reply-To: <003101c92b02$3822bf20$a8683d60$@com> References: <003101c92b02$3822bf20$a8683d60$@com> Message-ID: See the bottom of this page Nils, http://databaseadvisors.com/mailman/listinfo/dba-vb GK On 10/10/08, Nils R. Lenz wrote: > > > Please cancel my subscription to this list as I not programming anymore. > > > > Thank you, > > > > Nils R. Lenz > > > > cid:image004.png at 01C92ADD.54B002D0 > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > -- Gary Kjos garykjos at gmail.com From michael at ddisolutions.com.au Sun Oct 12 18:00:06 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 13 Oct 2008 10:00:06 +1100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows References: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013C01A3@ddi-01.DDI.local> Hi Paul, This may not help as I don't use the native VB6 grids (yuk!) but what I would normally do Is add a flag to the sql that returns 0 for personnel and 1 for student. Then do conditional formatting on the row. If the grid lets you do cond formatting that is ;-) Time to talk them into upgrading to dotnet I think! Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, 10 October 2008 10:18 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Tue Oct 14 16:55:09 2008 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Oct 2008 23:55:09 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From cfoust at infostatsystems.com Tue Oct 14 18:54:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Oct 2008 16:54:15 -0700 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Oct 14 21:52:52 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Oct 2008 12:52:52 +1000 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: <48F5E7A4.5920.1E6B04@stuart.lexacorp.com.pg> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Oct 15 02:41:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:41:32 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Charlotte No I haven't, don't know why. But that is indeed a lovely low-tech method which offers easy printing options as well. /gustav >>> cfoust at infostatsystems.com 15-10-2008 01:54 >>> Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From Gustav at cactus.dk Wed Oct 15 02:48:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:48:33 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Stuart My thought was to avoid building a help file. I did that a couple of times with the good old Help Magician Pro but don't recall it as an entertaining experience. But it sounds like the tool you mention makes it easy. I better give it a try. Thanks. /gustav >>> stuart at lexacorp.com.pg 15-10-2008 04:52 >>> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav From Gustav at cactus.dk Thu Oct 16 09:46:55 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Oct 2008 16:46:55 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 14:19:07 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 17 Oct 2008 20:19:07 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f8e527.06a0100a.7593.41a1@mx.google.com> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Fri Oct 17 15:57:39 2008 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Oct 2008 22:57:39 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 20:19:35 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 18 Oct 2008 02:19:35 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f939a1.02ab100a.1531.ffffa7ed@mx.google.com> That sorted it. Yes, I was using Firefox. Worked fine in IE. I have a feeling that Chrome does not announce itself sufficiently well. In a hosting site I use, it says that Chrome is an old version and I must update to a newer version of Firefox. I like Chrome in parts, but not in entirety, so I stick with Firefox. For me, IE is so frustrating with the pop up bar blocking everything and never remembering that I told it ten million times to accept stuff! Thanks Gustav. Good man! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 17 October 2008 21:58 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Sat Oct 18 15:11:25 2008 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 18 Oct 2008 13:11:25 -0700 Subject: [dba-VB] AfterUpdate equivalent Message-ID: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From gustav at cactus.dk Sat Oct 18 17:33:28 2008 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Oct 2008 00:33:28 +0200 Subject: [dba-VB] AfterUpdate equivalent Message-ID: Hi Doug Not always as it may not loose focus if you push a toolbar button. The TextChanged is sometimes fine, or - if you use the validate mechanics - you can use validating and the Validated event. /gustav >>> dbdoug at gmail.com 18-10-2008 22:11 >>> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From cfoust at infostatsystems.com Mon Oct 20 10:28:44 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 08:28:44 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: As Gustav pointed out, the closest you come in .Net is the Validated event, with Validating being a cose runnerup for BeforeUpdate. They aren't entirely analogous, but they're way more consistent. You can also customize the program flow more in .Net by using threading, like this: If Not bValid Then Me.BeginInvoke(New Threading.ThreadStart(AddressOf SelectRunDateTime)) The above line is in a custom validation routine called from a grid cell event. The thread executes after the calling routine ends but before program flow returns to the grid. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Saturday, October 18, 2008 1:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] AfterUpdate equivalent Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Oct 20 12:15:39 2008 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 20 Oct 2008 10:15:39 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the (many) > surprises I've had is the lack of AfterUpdate events for controls, in > particular, for a text box. Can the LostFocus event be used safely as > an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Oct 20 13:10:28 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:10:28 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: Regular combobox or a grid cell dropdown? Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 20 13:13:05 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:13:05 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: You have a RowEnter event in a datagrid that you can use to fill a combobox dropdown list. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Oct 22 03:35:12 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Oct 2008 12:35:12 +0400 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: <000001c93421$1bc2dbd0$6401a8c0@nant> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Wed Oct 22 03:49:03 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Oct 2008 10:49:03 +0200 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: Hi Shamil Could it be that you have defined restricted IP address and/or domain access? That's the tab Directory Security of the web site properties. Also, you could enable logging and perhaps watch what is going on. /gustav >>> shamil at smsconsulting.spb.ru 22-10-2008 10:35 >>> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Fri Oct 24 06:20:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Oct 2008 13:20:32 +0200 Subject: [dba-VB] ClickOnce: Adding and installing fonts (or anything else) Message-ID: Hi all As you may be aware, an application published with ClickOnce doesn't "install", it just loads and runs on the user's machine, and "disappears" when he/she closes it. So what to do if you need a special font for your application? You _can_ include code in your app to create the font file and call the API to install it, but a lot of code is required, indeed if you wish to add code to catch all the possible error sources like missing admin rights and so on. So I googled for other methods and found that you can include nearly anything as a "prerequisite" for running your application. These prerequisites will be added to your publish page with an option to download and install these before launching your app, while - on the other hand - your app will be adjusted to check for a successful installation of each of the prerequisites - if any is missing, the app will refuse to launch with a message about what is missing. So an msi installer should be created to install the font. To create this, open a new setup project, add nothing more to this than the "Special folder" Fonts, and add the font file to this folder. Build the msi install package. Next question, how to include your font installer as a prerequisite? For this to happen, a bootstrapper package must be created. These are typically located in: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages Here you'll see those packages listed in the Prerequisites' list box where you can mark those you need for your app. To turn your setup file into a bootstrapper package, all you need is to create two manifest xml files as you can see if you browse the other packages' folders. However, creating these xml files is not a beginner's job even though it is documented at MSDN: http://msdn.microsoft.com/en-us/library/aa730839(VS.80).aspx Luckily, as you whisper OMG, you find a tool for this, BMG, Bootstrapper Manifest Generator: http://code.msdn.microsoft.com/bmg This is a bit rough on the edges, and takes quite a few test-runs before you find out what is going on, but it is in fact quite clever, though the only method I could find to make my install _not_ to appear as failed, was to set the Default exit code to "Success" while this as default by the BMG is set to "Fail". When you reach this far, your bootstrapper package is nicely listed when you wish to configure your publishing by ClickOnce, and - when done - the name of your font installer is listed at the published Publish page along with the other prerequisites. /gustav >>> Gustav at cactus.dk 10-10-2008 19:21 >>> Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From dbdoug at gmail.com Fri Oct 24 11:27:05 2008 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Oct 2008 09:27:05 -0700 Subject: [dba-VB] combobox problems Message-ID: <4dd71a0c0810240927j1052ed46nbbc2d5b767db6613@mail.gmail.com> Hello All: I'm currently working on a Windows CE application I am a little baffled at the behavior of a bound combo box. Setup: I have a Combobox bound to a BindingSource, with the DisplayMember a name and the DisplayValue an integer which is the PK of the underlying table. I want the user to select a name and then (later) I am going to add a new row to a different table using the name's key value along with other key values taken from other combo boxes. Behaviour: When a selection is made in the combobox, the new name selected shows up as expected. However when I look at the combobox.ValueSelected, it is the key of the FIRST row, not the key of the currently displayed row. When I look at the BindingSource.Position, it is zero. If I watch the combobox.SelectedIndexChanged event, it always fires twice. The first time it fires, the ValueSelected contains the key value of the newly selected item and the BindingSource.Position is zero. The second time it fires, the ValueSelected has reverted to the key of the first row, and the BindingSource.Position is the position of the newly selected item. It looks like I can grab the key value I need by saving it whenever the SelectedIndexChanged event fires with a zero BindingSource.Position, but that seems kind of kludgy, and I don't know if I can trust it. Surely the whole point of a bound combobox is to supply the value of the displayed item. Am I missing something here? Thanks, Doug Steele From joeget at vgernet.net Wed Oct 29 22:53:33 2008 From: joeget at vgernet.net (John Eget) Date: Wed, 29 Oct 2008 23:53:33 -0400 Subject: [dba-VB] transfer of data from sub to main form Message-ID: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Hi In an Access database On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform I then can manually enter that value on the form frmPAInput, in a field named Observations. Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? I have tried the wizard to generate the code but have been unable to get this correct. Thanks John From stuart at lexacorp.com.pg Wed Oct 29 23:13:27 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 30 Oct 2008 14:13:27 +1000 Subject: [dba-VB] transfer of data from sub to main form In-Reply-To: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> References: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Message-ID: <4909C107.13946.1540AEA@stuart.lexacorp.com.pg> As answered on the AccessD list: You don't need the Refresh button. Set the value of TotalCharQty to "=Sum(CharQty)". That way, the total will keep itself updated. If you want to have Observations automatically filled in, but also want to ability to enter it manually, one way is to fill in the value when you enter the field, you can then accept the entry or enter something else. To do this, use an On Enter event procedure like this: Private Sub Observations_Enter() If IsNull(Observations) or Observations = "" Then 'only update if it's empty Observations = subfrmCharPA.Form.TotalCharQty End if End Sub On 29 Oct 2008 at 23:53, John Eget wrote: > Hi > > In an Access database > > On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA > > After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform > > I then can manually enter that value on the form frmPAInput, in a field named Observations. > > Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? > > I have tried the wizard to generate the code but have been unable to get this correct. > > Thanks > > John > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From paul.hartland at googlemail.com Fri Oct 3 03:02:15 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 3 Oct 2008 09:02:15 +0100 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Oct 3 04:55:19 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 3 Oct 2008 13:55:19 +0400 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET In-Reply-To: <38c884770810030102g66bac8f8g38ea535fed6dcdf7@mail.gmail.com> Message-ID: <000601c9253e$26450f70$6401a8c0@nant> Hello Paul, Yes, VB.NET is used interchangeably with Visual Basic 2005 or 2008.. Book/samples for starters - maybe this: 101 MicrosoftR Visual BasicR .NET Applications http://www.microsoft.com/mspress/books/companion/6510.aspx ? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, October 03, 2008 12:02 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 2008 Express & VB.NET To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Fri Oct 3 05:01:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Oct 2008 12:01:43 +0200 Subject: [dba-VB] Visual Basic 2008 Express & VB.NET Message-ID: Hi Paul Did you study the official page? Should keep you busy for a couple of weeks: http://msdn.microsoft.com/en-us/vbasic/ms789086.aspx A lot of this stuff is free. /gustav >>> paul.hartland at googlemail.com 03-10-2008 10:02 >>> To all, Firstly appologies about the cross post, only I don't seem to be getting much mail from the Visual Basic list. I have downloaded Visual Basic 2008 Express edition, is this Visual Basic the same as VB.NET. If so would you recommend that I but a book on VB.NET or Visual Basic 2008. Also any good recommendations of book etc to start learning from scratch ? -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Mon Oct 6 02:59:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 09:59:33 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From Gustav at cactus.dk Mon Oct 6 03:18:53 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 10:18:53 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav From mikedorism at verizon.net Mon Oct 6 06:57:22 2008 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 06 Oct 2008 07:57:22 -0400 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: References: Message-ID: <7D0632525E36468BA871B59BDBACA1F0@Kermit> I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:07:55 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:07:55 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: Aside from the differences in language (we use VB.Net) and the specific events (we use 3rd party grids) that's pretty much what we do and what I would do on a datagridview where I allowed deletes like that. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 1:19 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Hi all The DataGridView has an event, UserDeletingRow, with the option to cancel the delete caused by pressing the Delete button of the keyboard. But if the user clicks the Delete toolstripbutton of the bindingnavigator, no such event exists. Why? So what do you do to pop a messagebox asking the user to confirm to delete the row? The only solid method I've found is to connect or disconnect the Delete button from the delete action of the bindingnavigator like this: private void bindingNavigator1_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem.Equals (bindingNavigatorDeleteItem )) { DataGridViewRow deletedRow = dataGridView1.CurrentRow; int indexColumnDessinNumber = 1; string dessinNumber = deletedRow.Cells[indexColumnDessinNumber].Value.ToString(); DialogResult result = MessageBox.Show(owner, prompt, caption, buttons, icon, defaultButton); bool cancel = !result.Equals(DialogResult.OK); if (cancel) { bindingNavigator1.DeleteItem = null; } else { bindingNavigator1.DeleteItem = bindingNavigatorDeleteItem; } } } This works very well, but I wonder if a more clever solution exists? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 6 10:10:11 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 6 Oct 2008 08:10:11 -0700 Subject: [dba-VB] Visual Studio: Image on button In-Reply-To: <7D0632525E36468BA871B59BDBACA1F0@Kermit> References: <7D0632525E36468BA871B59BDBACA1F0@Kermit> Message-ID: That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Mon Oct 6 10:58:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 08:58:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810060858i15032618qd060c179a09ca43c@mail.gmail.com> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? > > From gustav at cactus.dk Mon Oct 6 16:01:15 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:01:15 +0200 Subject: [dba-VB] Visual Studio: Image on button Message-ID: Hi Doris and Charlotte Oh, I believed imagelist was for collecting different images into one collection ... so these resource files are really prepared imagelists? Obviously I haven't worked with imagelists yet. One more item to read up. /gustav >>> cfoust at infostatsystems.com 06-10-2008 17:10 >>> That's what we do too for the buttons where we use images (like an information button, where we borrow the messagebox information icon. I suppose to use an image from the resources, you would bind an imagelist to the resource and then indicate the member to use. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 06, 2008 4:57 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Visual Studio: Image on button I do but I don't use images from the resources so I don't know the answer to your question. I tend to use an Image List with my own hand selected icon-style images. Doris -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, October 06, 2008 4:00 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Studio: Image on button Hi all So none of you uses buttons with pictures? /gustav >>> Gustav at cactus.dk 29-09-2008 13:04 >>> Hi all If you choose to select an image to put on a button, most of the images from the resources contains not one icon-style image but four, six, or more images of increasing size of the same image. How do I select only one of these images (and not the full selection)? /gustav From gustav at cactus.dk Mon Oct 6 16:28:42 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:28:42 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug You are most welcome. Could you provide a link, please? Problem is, however, that this suggestion was one of my first attempts - only to find out that this event is fired _after_ the actual deleting has been carried out - and as it carries no "Cancel" parameter or similar, it can only be used for something else you wish to do when that toolbarbutton has been clicked. While, coming from Access, I still wonder why this simple feature is not ready-built, I'm not in the mood to start modifying the native bindingnavigator as my workaround functions very well. As I wanted the deleted row (when confirmed) to be removed from the database at once, I included this code: private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { if (e.RowCount > 0) { this.Cursor = Cursors.WaitCursor; // Delete from the source the deleted row. this.dessinNoBindingSource.EndEdit(); this.productTableAdapter.Update(this.karnelia.Product); this.Cursor = Cursors.Default; } } This also executes after the user has selected a row and pressed the Delete key. /gustav >>> dbdoug at gmail.com 06-10-2008 17:58 >>> Hi Gustav: I took a bit of a liberty and submitted your question on StackOverflow. I hope you don't mind. I was curious to see what feedback (if any) I got for a vb question, as the site is very C# intensive. Anyway, here's the answer I got after half an hour or so: This is because the UserDeletingRow event is on the actual DataGridView. The DataGridView is bound to the external data (contained in your DataSet and linked by a BindingSource) as is the BindingNavigator. When you click delete on the BindingNavigator it is simply removing the current element selected in the BindingSource. You need to check the Click event on the delete button in the BindingNavigator and see where it is actually performing the delete to the BindingSource. You should be able to insert in a confirmation dialog between the delete item call and the click. Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MsgBox("Are you sure", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then DeleteSelectedItem() End If End Sub Doug Steele On Mon, Oct 6, 2008 at 1:18 AM, Gustav Brock wrote: > Hi all > > The DataGridView has an event, UserDeletingRow, with the option to cancel > the delete caused by pressing the Delete button of the keyboard. > But if the user clicks the Delete toolstripbutton of the bindingnavigator, > no such event exists. Why? > > So what do you do to pop a messagebox asking the user to confirm to delete > the row? From dbdoug at gmail.com Mon Oct 6 16:42:15 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 6 Oct 2008 14:42:15 -0700 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row In-Reply-To: References: Message-ID: <4dd71a0c0810061442i530f28b6if353708f2df8956e@mail.gmail.com> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav > > > http://www.databaseadvisors.com > > From gustav at cactus.dk Mon Oct 6 16:50:20 2008 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 06 Oct 2008 23:50:20 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Thanks Doug. Bedtime here, so I will have a look tomorrow. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. > > As I wanted the deleted row (when confirmed) to be removed from the > database at once, I included this code: > > private void dataGridView1_RowsRemoved(object sender, > DataGridViewRowsRemovedEventArgs e) > { > if (e.RowCount > 0) > { > this.Cursor = Cursors.WaitCursor; > // Delete from the source the deleted row. > this.dessinNoBindingSource.EndEdit(); > this.productTableAdapter.Update(this.karnelia.Product); > this.Cursor = Cursors.Default; > } > } > > This also executes after the user has selected a row and pressed the Delete > key. > > /gustav From Gustav at cactus.dk Tue Oct 7 01:00:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Oct 2008 08:00:57 +0200 Subject: [dba-VB] DataGridView BindingNavigator: Confirm delete row Message-ID: Hi Doug I was a bit too fast. The click event I mention is that of the toolbarButton you now can fetch in VS. The comment talks about modifying the component and that will of course work. /gustav >>> dbdoug at gmail.com 06-10-2008 23:42 >>> Interesting.. I didn't try it out myself - I'm just starting to use vb.netand didn't have an easily set up program. StackOverflow is at www.stackoverflow.com. You can find the original question and answer by searching for the tag 'vb.net'. I have to say that in the small amount of vb.net coding I've done so far, finding events in vb that correspond to events in Access can be quite a @#$%@& learning experience. Doug On Mon, Oct 6, 2008 at 2:28 PM, Gustav Brock wrote: > Hi Doug > > You are most welcome. Could you provide a link, please? > > Problem is, however, that this suggestion was one of my first attempts - > only to find out that this event is fired _after_ the actual deleting has > been carried out - and as it carries no "Cancel" parameter or similar, it > can only be used for something else you wish to do when that toolbarbutton > has been clicked. > > While, coming from Access, I still wonder why this simple feature is not > ready-built, I'm not in the mood to start modifying the native > bindingnavigator as my workaround functions very well. From paul.hartland at googlemail.com Fri Oct 10 06:18:20 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 10 Oct 2008 12:18:20 +0100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour Of Certain Rows Message-ID: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com From Gustav at cactus.dk Fri Oct 10 12:21:10 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Oct 2008 19:21:10 +0200 Subject: [dba-VB] ClickOnce Message-ID: Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From nilslenz at gmail.com Fri Oct 10 13:01:27 2008 From: nilslenz at gmail.com (Nils R. Lenz) Date: Fri, 10 Oct 2008 14:01:27 -0400 Subject: [dba-VB] dba-VB Message-ID: <003101c92b02$3822bf20$a8683d60$@com> Please cancel my subscription to this list as I not programming anymore. Thank you, Nils R. Lenz cid:image004.png at 01C92ADD.54B002D0 From cfoust at infostatsystems.com Fri Oct 10 13:27:10 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Oct 2008 11:27:10 -0700 Subject: [dba-VB] ClickOnce In-Reply-To: References: Message-ID: I'm told that we use it for a couple of our standalone tools we provide admins for our products. I haven't worked with it myself, but the programmer who has used it agrees with you that it's easy once it's set up. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, October 10, 2008 10:21 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] ClickOnce Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From garykjos at gmail.com Fri Oct 10 13:48:21 2008 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 10 Oct 2008 13:48:21 -0500 Subject: [dba-VB] dba-VB In-Reply-To: <003101c92b02$3822bf20$a8683d60$@com> References: <003101c92b02$3822bf20$a8683d60$@com> Message-ID: See the bottom of this page Nils, http://databaseadvisors.com/mailman/listinfo/dba-vb GK On 10/10/08, Nils R. Lenz wrote: > > > Please cancel my subscription to this list as I not programming anymore. > > > > Thank you, > > > > Nils R. Lenz > > > > cid:image004.png at 01C92ADD.54B002D0 > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > -- Gary Kjos garykjos at gmail.com From michael at ddisolutions.com.au Sun Oct 12 18:00:06 2008 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 13 Oct 2008 10:00:06 +1100 Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows References: <38c884770810100418v35320815w8ef488d9a39cbfd5@mail.gmail.com> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D013C01A3@ddi-01.DDI.local> Hi Paul, This may not help as I don't use the native VB6 grids (yuk!) but what I would normally do Is add a flag to the sql that returns 0 for personnel and 1 for student. Then do conditional formatting on the row. If the grid lets you do cond formatting that is ;-) Time to talk them into upgrading to dotnet I think! Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Friday, 10 October 2008 10:18 PM To: Access List; VisualBasicList Subject: [dba-VB] Visual Basic 6.0 DataGrid Control - Changing Colour OfCertain Rows To all, I have a Visual Basic 6.0 application which I inherited (lucky me), and now they want to change the way that the DataGrid operates. The grid shows all personnel that are available to do a job for us on that day, some of these however are students. What I need to do (if it's possible) is loop through all the rows on a datagrid, get the personnel number, check if that person is a student, then change the colour of that row if they are. I normally use Infragistic UltraGrid, and it's very easy to do that on there. However I don't really want to change the grid if I can help it. Does anyone know if & how this is possible. Thank you in advance for any help.... -- Paul Hartland paul.hartland at googlemail.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Tue Oct 14 16:55:09 2008 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Oct 2008 23:55:09 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From cfoust at infostatsystems.com Tue Oct 14 18:54:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Oct 2008 16:54:15 -0700 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Oct 14 21:52:52 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Oct 2008 12:52:52 +1000 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp In-Reply-To: References: Message-ID: <48F5E7A4.5920.1E6B04@stuart.lexacorp.com.pg> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Oct 15 02:41:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:41:32 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Charlotte No I haven't, don't know why. But that is indeed a lovely low-tech method which offers easy printing options as well. /gustav >>> cfoust at infostatsystems.com 15-10-2008 01:54 >>> Have you thought about saving them as PDF files? Then you could display them in a form easily enough. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 14, 2008 2:55 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From Gustav at cactus.dk Wed Oct 15 02:48:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Oct 2008 09:48:33 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp Message-ID: Hi Stuart My thought was to avoid building a help file. I did that a couple of times with the good old Help Magician Pro but don't recall it as an entertaining experience. But it sounds like the tool you mention makes it easy. I better give it a try. Thanks. /gustav >>> stuart at lexacorp.com.pg 15-10-2008 04:52 >>> I usually build WinHelp files fro this sort of thing. I can embed screen shots, drawings in etc them easily and users get the whole Help experiece. It's very easy to build professional looking WinHelp files with the freeware Shalom Help Maker. http://www.danish-shareware.dk/soft/shelpm/index.html -- Stuart On 14 Oct 2008 at 23:55, Gustav Brock wrote: > Hi all > > I have designed some drawings in PowerPoint as a kind of high level > "help pages" for a WinApp. The idea is that the user by pressing help > or a button can call up these slides. Just one by one, it is not a > slide-show. > > But how to do that? It is not an automation job to control PowerPoint > which the user may not have installed. Would there be any other way > than to export the slides to, say, png files and then open a > PictureBox with the png file? It would be better to use a vector format > as it is possible to resize without quality loss but which format? And > then another display control should be used as the PictureBox can't > show vector graphics as far as I know. > > /gustav From Gustav at cactus.dk Thu Oct 16 09:46:55 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Oct 2008 16:46:55 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 14:19:07 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 17 Oct 2008 20:19:07 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f8e527.06a0100a.7593.41a1@mx.google.com> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From gustav at cactus.dk Fri Oct 17 15:57:39 2008 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Oct 2008 22:57:39 +0200 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Message-ID: Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav From max.wanadoo at gmail.com Fri Oct 17 20:19:35 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 18 Oct 2008 02:19:35 +0100 Subject: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) In-Reply-To: References: Message-ID: <48f939a1.02ab100a.1531.ffffa7ed@mx.google.com> That sorted it. Yes, I was using Firefox. Worked fine in IE. I have a feeling that Chrome does not announce itself sufficiently well. In a hosting site I use, it says that Chrome is an old version and I must update to a newer version of Firefox. I like Chrome in parts, but not in entirety, so I stick with Firefox. For me, IE is so frustrating with the pop up bar blocking everything and never remembering that I told it ten million times to accept stuff! Thanks Gustav. Good man! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 17 October 2008 21:58 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi Max Yes, like this I guess: Der er indhold i denne pr?sentation, som browseren muligvis ikke kan vise korrekt. Hvis du vil forts?tte alligevel, skal du klikke _her_. ".. klikke her" means (surprise) ".. click here". This message I get with Google Chrome. Which browser are you using? It may only work with IE. /gustav >>> max.wanadoo at gmail.com 17-10-2008 21:19 >>> Hi Gustav, I tried this link shown but all I got was a few lines in a foreign language (grin) and when I clicked on a link called HER, I got a blank page. Thanks Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 October 2008 15:47 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Show PowerPoint pictures in VS WinApp (solved) Hi all Now how easy was this? I'm new to PowerPoint (I hate to admit it, but for PP rookies like me the 2007 ribbon-band with all its style presets works very well) so I became only by accident aware of the nice save-as-html feature, but it works. Example is here: http://www.timbactus.dk/karnelia/help/karneliaschema.htm You'll see the slide scale with the size of the browser window - at least with IE which is what the client in question uses, but it does not work at all with Google Chrome - anybody knowing why? I haven't tried with other browsers like FireFox or Opera. What's more, as I use the ClickOnce publisher, I already have web space for publishing the application and can just add a folder to hold the files with the help slides. /gustav >>> gustav at cactus.dk 14-10-2008 23:55 >>> Hi all I have designed some drawings in PowerPoint as a kind of high level "help pages" for a WinApp. The idea is that the user by pressing help or a button can call up these slides. Just one by one, it is not a slide-show. But how to do that? It is not an automation job to control PowerPoint which the user may not have installed. Would there be any other way than to export the slides to, say, png files and then open a PictureBox with the png file? It would be better to use a vector format as it is possible to resize without quality loss but which format? And then another display control should be used as the PictureBox can't show vector graphics as far as I know. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From dbdoug at gmail.com Sat Oct 18 15:11:25 2008 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 18 Oct 2008 13:11:25 -0700 Subject: [dba-VB] AfterUpdate equivalent Message-ID: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From gustav at cactus.dk Sat Oct 18 17:33:28 2008 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Oct 2008 00:33:28 +0200 Subject: [dba-VB] AfterUpdate equivalent Message-ID: Hi Doug Not always as it may not loose focus if you push a toolbar button. The TextChanged is sometimes fine, or - if you use the validate mechanics - you can use validating and the Validated event. /gustav >>> dbdoug at gmail.com 18-10-2008 22:11 >>> Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele From cfoust at infostatsystems.com Mon Oct 20 10:28:44 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 08:28:44 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: As Gustav pointed out, the closest you come in .Net is the Validated event, with Validating being a cose runnerup for BeforeUpdate. They aren't entirely analogous, but they're way more consistent. You can also customize the program flow more in .Net by using threading, like this: If Not bValid Then Me.BeginInvoke(New Threading.ThreadStart(AddressOf SelectRunDateTime)) The above line is in a custom validation routine called from a grid cell event. The thread executes after the calling routine ends but before program flow returns to the grid. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Saturday, October 18, 2008 1:11 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] AfterUpdate equivalent Hello All: I'm grinding my way through my first VB.Net program. One of the (many) surprises I've had is the lack of AfterUpdate events for controls, in particular, for a text box. Can the LostFocus event be used safely as an equivalent? Thanks, Doug Steele _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Oct 20 12:15:39 2008 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 20 Oct 2008 10:15:39 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> Message-ID: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the (many) > surprises I've had is the lack of AfterUpdate events for controls, in > particular, for a text box. Can the LostFocus event be used safely as > an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Mon Oct 20 13:10:28 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:10:28 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: Regular combobox or a grid cell dropdown? Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Oct 20 13:13:05 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 20 Oct 2008 11:13:05 -0700 Subject: [dba-VB] AfterUpdate equivalent In-Reply-To: <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> References: <4dd71a0c0810181311m5f297486yb0d86fb5a7326686@mail.gmail.com> <8786a4c00810201015x7d2e6e09g511ad184cadf1da@mail.gmail.com> Message-ID: You have a RowEnter event in a datagrid that you can use to fill a combobox dropdown list. Charlotte Foust -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, October 20, 2008 10:16 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] AfterUpdate equivalent The event that I really miss is the OnEnter event. I used that a lot for setting a combo box rowsource. > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Saturday, October 18, 2008 1:11 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] AfterUpdate equivalent > > Hello All: > > I'm grinding my way through my first VB.Net program. One of the > (many) surprises I've had is the lack of AfterUpdate events for > controls, in particular, for a text box. Can the LostFocus event be > used safely as an equivalent? > > > Thanks, > Doug Steele > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Oct 22 03:35:12 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Oct 2008 12:35:12 +0400 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: <000001c93421$1bc2dbd0$6401a8c0@nant> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Wed Oct 22 03:49:03 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Oct 2008 10:49:03 +0200 Subject: [dba-VB] OT?: Connecting to IIS/ASP.NET Web Site running on WinXP under VMWare... Message-ID: Hi Shamil Could it be that you have defined restricted IP address and/or domain access? That's the tab Directory Security of the web site properties. Also, you could enable logging and perhaps watch what is going on. /gustav >>> shamil at smsconsulting.spb.ru 22-10-2008 10:35 >>> Hi All, I have WinXP with IIS 5.1 running under WinXP, which in turn is running under VMWare... So far so good - all in working OK within this virtual WinXP system... I see WinXP VM from outside/hosting Windows 2003 real system and another networked real PC, and I do see shared folders from WinXP VM but I can't manage to have ASP.Net application browsed from browser running on hosting operating system... WinXP VM's name is SIDNEY, and I can ping it OK, but whatever URL I'm trying to access ASP.Net application from this VM - they all fail: http://sidney/mySampleSite or http://sidney:80/mySampleSite or http://192.168.1.104/mySampleSite or http://192.168.1.104/mySampleSite/default.aspx etc. Any hints, tips and tricks to get my VM's ASP.NET site working for outside PCs would be greatly appreciated. Thank you. -- Shamil From Gustav at cactus.dk Fri Oct 24 06:20:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Oct 2008 13:20:32 +0200 Subject: [dba-VB] ClickOnce: Adding and installing fonts (or anything else) Message-ID: Hi all As you may be aware, an application published with ClickOnce doesn't "install", it just loads and runs on the user's machine, and "disappears" when he/she closes it. So what to do if you need a special font for your application? You _can_ include code in your app to create the font file and call the API to install it, but a lot of code is required, indeed if you wish to add code to catch all the possible error sources like missing admin rights and so on. So I googled for other methods and found that you can include nearly anything as a "prerequisite" for running your application. These prerequisites will be added to your publish page with an option to download and install these before launching your app, while - on the other hand - your app will be adjusted to check for a successful installation of each of the prerequisites - if any is missing, the app will refuse to launch with a message about what is missing. So an msi installer should be created to install the font. To create this, open a new setup project, add nothing more to this than the "Special folder" Fonts, and add the font file to this folder. Build the msi install package. Next question, how to include your font installer as a prerequisite? For this to happen, a bootstrapper package must be created. These are typically located in: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages Here you'll see those packages listed in the Prerequisites' list box where you can mark those you need for your app. To turn your setup file into a bootstrapper package, all you need is to create two manifest xml files as you can see if you browse the other packages' folders. However, creating these xml files is not a beginner's job even though it is documented at MSDN: http://msdn.microsoft.com/en-us/library/aa730839(VS.80).aspx Luckily, as you whisper OMG, you find a tool for this, BMG, Bootstrapper Manifest Generator: http://code.msdn.microsoft.com/bmg This is a bit rough on the edges, and takes quite a few test-runs before you find out what is going on, but it is in fact quite clever, though the only method I could find to make my install _not_ to appear as failed, was to set the Default exit code to "Success" while this as default by the BMG is set to "Fail". When you reach this far, your bootstrapper package is nicely listed when you wish to configure your publishing by ClickOnce, and - when done - the name of your font installer is listed at the published Publish page along with the other prerequisites. /gustav >>> Gustav at cactus.dk 10-10-2008 19:21 >>> Hi all How many of you are using this feature of Visual Studio? I'm about finishing a major Windows app and decided to try the ClickOnce route. I've seen the demos and was a bit sceptical - but for no reason. This is sooo clever! Initial install at the workstations is a snap any user can handle and, really, deployment of a new version is not much more than a click to send the revised version to an FTP server or network drive and the user will automatically be offered to download and install the new version at a click of a button. Even a simple web page which you can e-mail a link to to potential users is created by the wizard. /gustav From dbdoug at gmail.com Fri Oct 24 11:27:05 2008 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 24 Oct 2008 09:27:05 -0700 Subject: [dba-VB] combobox problems Message-ID: <4dd71a0c0810240927j1052ed46nbbc2d5b767db6613@mail.gmail.com> Hello All: I'm currently working on a Windows CE application I am a little baffled at the behavior of a bound combo box. Setup: I have a Combobox bound to a BindingSource, with the DisplayMember a name and the DisplayValue an integer which is the PK of the underlying table. I want the user to select a name and then (later) I am going to add a new row to a different table using the name's key value along with other key values taken from other combo boxes. Behaviour: When a selection is made in the combobox, the new name selected shows up as expected. However when I look at the combobox.ValueSelected, it is the key of the FIRST row, not the key of the currently displayed row. When I look at the BindingSource.Position, it is zero. If I watch the combobox.SelectedIndexChanged event, it always fires twice. The first time it fires, the ValueSelected contains the key value of the newly selected item and the BindingSource.Position is zero. The second time it fires, the ValueSelected has reverted to the key of the first row, and the BindingSource.Position is the position of the newly selected item. It looks like I can grab the key value I need by saving it whenever the SelectedIndexChanged event fires with a zero BindingSource.Position, but that seems kind of kludgy, and I don't know if I can trust it. Surely the whole point of a bound combobox is to supply the value of the displayed item. Am I missing something here? Thanks, Doug Steele From joeget at vgernet.net Wed Oct 29 22:53:33 2008 From: joeget at vgernet.net (John Eget) Date: Wed, 29 Oct 2008 23:53:33 -0400 Subject: [dba-VB] transfer of data from sub to main form Message-ID: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Hi In an Access database On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform I then can manually enter that value on the form frmPAInput, in a field named Observations. Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? I have tried the wizard to generate the code but have been unable to get this correct. Thanks John From stuart at lexacorp.com.pg Wed Oct 29 23:13:27 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 30 Oct 2008 14:13:27 +1000 Subject: [dba-VB] transfer of data from sub to main form In-Reply-To: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> References: <91A8704BA8C04183A8EE96DA02D527B8@gateway8529fab> Message-ID: <4909C107.13946.1540AEA@stuart.lexacorp.com.pg> As answered on the AccessD list: You don't need the Refresh button. Set the value of TotalCharQty to "=Sum(CharQty)". That way, the total will keep itself updated. If you want to have Observations automatically filled in, but also want to ability to enter it manually, one way is to fill in the value when you enter the field, you can then accept the entry or enter something else. To do this, use an On Enter event procedure like this: Private Sub Observations_Enter() If IsNull(Observations) or Observations = "" Then 'only update if it's empty Observations = subfrmCharPA.Form.TotalCharQty End if End Sub On 29 Oct 2008 at 23:53, John Eget wrote: > Hi > > In an Access database > > On the form named frmPAInput, I click on a command button to open a subform named subfrmCharPA > > After entering several records that contain values on the subform named subfrmCharPA, I display a total value by depressing a command button labeled Refresh Total. That enables the values of CharQty that have been entered on the subform to be totalled and displayed in a text box named TotalCharQty on the subform > > I then can manually enter that value on the form frmPAInput, in a field named Observations. > > Is it possible to have the value be automatically entered from the subform to the main form? And also if there were no subform entries, would I still be able to enter an observation value manually? > > I have tried the wizard to generate the code but have been unable to get this correct. > > Thanks > > John > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com >