From mcp2004 at mail.ru Mon Jun 1 03:28:19 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Mon, 01 Jun 2015 11:28:19 +0300 Subject: [dba-VS] =?utf-8?q?FYI=3A_Hack_Raspberry_Pi_=E2=80=93_How_To_Buil?= =?utf-8?q?d_Apps_In_C=23=2C_WinForms_and_ASP=2ENET_Using_Mono_In_Pi?= Message-ID: <1433147299.743247152@f258.i.mail.ru> Hi All -- Just thought some of you will find the following info useful: "Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi" http://www.amazedsaint.com/2013/04/hack-raspberry-pi-how-to-build.html P.S. The author has also a set of interesting and useful articles on codeproject:?http://www.codeproject.com/script/Membership/View.aspx?mid=1117033 Thank you. --? ???????????? ?????? From accessd at shaw.ca Mon Jun 1 13:02:48 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 1 Jun 2015 12:02:48 -0600 (MDT) Subject: [dba-VS] =?utf-8?q?FYI=3A_Hack_Raspberry_Pi_=E2=80=93_How_To_Buil?= =?utf-8?q?d_Apps_In_C=23=2C_WinForms_and_ASP=2ENET_Using_Mono_In_Pi?= In-Reply-To: <1433147299.743247152@f258.i.mail.ru> Message-ID: <1757501350.86849147.1433181768235.JavaMail.root@shaw.ca> Hi Shamil: An excellent reference link. Thank you. Jim ----- Original Message ----- From: "Salakhetdinov Shamil" To: "Development in Visual Studio" Sent: Monday, June 1, 2015 1:28:19 AM Subject: [dba-VS] FYI: Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi Hi All -- Just thought some of you will find the following info useful: "Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi" http://www.amazedsaint.com/2013/04/hack-raspberry-pi-how-to-build.html P.S. The author has also a set of interesting and useful articles on codeproject:?http://www.codeproject.com/script/Membership/View.aspx?mid=1117033 Thank you. --? ???????????? ?????? _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From gustav at cactus.dk Mon Jun 1 13:24:52 2015 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 1 Jun 2015 18:24:52 +0000 Subject: [dba-VS] TypeScript In-Reply-To: <729103350.72635917.1431456781403.JavaMail.root@shaw.ca> References: , <729103350.72635917.1431456781403.JavaMail.root@shaw.ca> Message-ID: Hi all It is on-line again, now slightly revised: https://www.edx.org/course/introduction-typescript-microsoft-dev201x-0 /gustav ________________________________________ Fra: dba-VS p? vegne af Jim Lawrence Sendt: 12. maj 2015 20:53 Til: Development in Visual Studio Emne: Re: [dba-VS] TypeScript Hi Gustav: Congratulations! :-) Jim ----- Original Message ----- From: "Gustav Brock" To: "Development in Visual Studio" Sent: Tuesday, May 12, 2015 4:17:00 AM Subject: Re: [dba-VS] TypeScript Hi Arthur et al I managed to pass the course. It was a bit more difficult than expected because the instructors and the homework insist on a rigid use of interfaces even for the tiniest purpose - they call them baby interfaces -like: interface IArtStyle { name: string; } Thus you get a tiny class like: class ArtStyle implements IArtStyle { name: string; constructor(artStyle: IArtStyle) { this.name = artStyle.name; } } Effectively, as you can see, this holds nothing more than a string. But it demonstrates the power of strong typing. Also the option for classes, inheritance, and modules (namespaces) really turns Javascript into a low-level language compared to TypeScript. It took me many hours to create the final piece of code - until I found out that the provided JSON file was buggy. But, hey, isn't that real life? Never trust an unknown data source. /gustav -----Oprindelig meddelelse----- Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Arthur Fuller Sendt: 28. april 2015 16:34 Til: Development in Visual Studio Emne: Re: [dba-VS] TypeScript Gustav, I too am taking the course. And thanks for the link to SublimeText. I just installed it on two physical boxes, running Windows 8.1 and Debian 14 on the other, plus one VM running Ubuntu. and VoltDB. I haven't completed the course yet, but am sure liking what I've seen so far. /Arthur On Tue, Apr 28, 2015 at 7:33 AM, Gustav Brock wrote: > Hi all > > Apropos: > > There is a free course at 6 x 3-4 hours on TypeScript on-line at edX > by the two highly qualified instructors Dan Wahlin and Anders > Hejlsberg (lead architect of C# and core developer on TypeScript in case you are not aware): From mcp2004 at mail.ru Tue Jun 2 02:46:54 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Tue, 02 Jun 2015 10:46:54 +0300 Subject: [dba-VS] =?utf-8?q?TypeScript?= In-Reply-To: References: <729103350.72635917.1431456781403.JavaMail.root@shaw.ca> Message-ID: <1433231214.309747638@f329.i.mail.ru> Hi Gustav -- Thank you for your note. As far as I see the course starts today. Do you know does the course need any special version of Visual Studio to work though its exercises? (I can't get this info from the course description).. BTW, my congratulations with your completion of the previous version of this course! Have you got a verified certificate? Do you plan to take this one? -- Shamil Monday, June 1, 2015 6:24 PM UTC from Gustav Brock : >Hi all > >It is on-line again, now slightly revised: > >???? https://www.edx.org/course/introduction-typescript-microsoft-dev201x-0 > >/gustav > >________________________________________ >Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Jim Lawrence < accessd at shaw.ca > >Sendt: 12. maj 2015 20:53 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Hi Gustav: > >Congratulations! :-) > >Jim > >----- Original Message ----- >From: "Gustav Brock" < gustav at cactus.dk > >To: "Development in Visual Studio" < dba-vs at databaseadvisors.com > >Sent: Tuesday, May 12, 2015 4:17:00 AM >Subject: Re: [dba-VS] TypeScript > >Hi Arthur et al > >I managed to pass the course. It was a bit more difficult than expected because the instructors and the homework insist on a rigid use of interfaces even for the tiniest purpose - they call them baby interfaces -like: > >????interface IArtStyle { >????????name: string; >????} > >Thus you get a tiny class like: > >????class ArtStyle implements IArtStyle { >????????name: string; >????????constructor(artStyle: IArtStyle) { >????????????this.name = artStyle.name; >????????} >????} > >Effectively, as you can see, this holds nothing more than a string. >But it demonstrates the power of strong typing. > >Also the option for classes, inheritance, and modules (namespaces) really turns Javascript into a low-level language compared to TypeScript. > >It took me many hours to create the final piece of code - until I found out that the provided JSON file was buggy. But, hey, isn't that real life? Never trust an unknown data source. > >/gustav > >-----Oprindelig meddelelse----- >Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Arthur Fuller >Sendt: 28. april 2015 16:34 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Gustav, > >I too am taking the course. And thanks for the link to SublimeText. I just installed it on two physical boxes, running Windows 8.1 and Debian 14 on the other, plus one VM running Ubuntu. and VoltDB. > >I haven't completed the course yet, but am sure liking what I've seen so far. > >/Arthur > >On Tue, Apr 28, 2015 at 7:33 AM, Gustav Brock < gustav at cactus.dk > wrote: > >> Hi all >> >> Apropos: >> >> There is a free course at 6 x 3-4 hours on TypeScript on-line at edX >> by the two highly qualified instructors Dan Wahlin and Anders >> Hejlsberg (lead architect of C# and core developer on TypeScript in case you are not aware): > >_______________________________________________ >dba-VS mailing list >dba-VS at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vs >http://www.databaseadvisors.com From gustav at cactus.dk Tue Jun 2 03:19:24 2015 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Jun 2015 08:19:24 +0000 Subject: [dba-VS] TypeScript Message-ID: Hi Shamil Yes, it starts today but, as I understand it, this time you can start and proceed at your own pace. Any version of VS that can install the TypeScript extension can do. That should include the free Community version. I use VS2013 Professional. You can do this course with one hand while watching TV. It took more for me as I'm not fluent in JavaScript. The biggest surprise for me was the intense use of interfaces which is an important part of the magic of TypeScript and its IntelliSense which leaves JavaScript in the dark. I still feel better with C# but I have learned to pay more attention to interfaces. No, I didn't pay for a certificate - I have no one to present it to - and I would say it isn't of much value as you pass just by answering 60% correct. I insisted on 100%, and I believe anyone on this list could do as well with only little effort. I don't think I will follow it once more. So many other things to do. Actually, only a bit of luck made me complete it. /gustav PS: Don't expect to see too much to Anders Hejlsberg. He is present in the first video only. -----Oprindelig meddelelse----- Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Salakhetdinov Shamil Sendt: 2. juni 2015 09:47 Til: Development in Visual Studio Emne: Re: [dba-VS] TypeScript Hi Gustav -- Thank you for your note. As far as I see the course starts today. Do you know does the course need any special version of Visual Studio to work though its exercises? (I can't get this info from the course description).. BTW, my congratulations with your completion of the previous version of this course! Have you got a verified certificate? Do you plan to take this one? -- Shamil Monday, June 1, 2015 6:24 PM UTC from Gustav Brock : >Hi all > >It is on-line again, now slightly revised: > >???? >https://www.edx.org/course/introduction-typescript-microsoft-dev201x-0 > >/gustav > >________________________________________ >Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Jim >Lawrence < accessd at shaw.ca > >Sendt: 12. maj 2015 20:53 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Hi Gustav: > >Congratulations! :-) > >Jim > >----- Original Message ----- >From: "Gustav Brock" < gustav at cactus.dk > >To: "Development in Visual Studio" < dba-vs at databaseadvisors.com > >Sent: Tuesday, May 12, 2015 4:17:00 AM >Subject: Re: [dba-VS] TypeScript > >Hi Arthur et al > >I managed to pass the course. It was a bit more difficult than expected because the instructors and the homework insist on a rigid use of interfaces even for the tiniest purpose - they call them baby interfaces -like: > >????interface IArtStyle { >????????name: string; >????} > >Thus you get a tiny class like: > >????class ArtStyle implements IArtStyle { >????????name: string; >????????constructor(artStyle: IArtStyle) { >????????????this.name = artStyle.name; >????????} >????} > >Effectively, as you can see, this holds nothing more than a string. >But it demonstrates the power of strong typing. > >Also the option for classes, inheritance, and modules (namespaces) really turns Javascript into a low-level language compared to TypeScript. > >It took me many hours to create the final piece of code - until I found out that the provided JSON file was buggy. But, hey, isn't that real life? Never trust an unknown data source. > >/gustav > >-----Oprindelig meddelelse----- >Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af >Arthur Fuller >Sendt: 28. april 2015 16:34 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Gustav, > >I too am taking the course. And thanks for the link to SublimeText. I just installed it on two physical boxes, running Windows 8.1 and Debian 14 on the other, plus one VM running Ubuntu. and VoltDB. > >I haven't completed the course yet, but am sure liking what I've seen so far. > >/Arthur > >On Tue, Apr 28, 2015 at 7:33 AM, Gustav Brock < gustav at cactus.dk > wrote: > >> Hi all >> >> Apropos: >> >> There is a free course at 6 x 3-4 hours on TypeScript on-line at edX >> by the two highly qualified instructors Dan Wahlin and Anders >> Hejlsberg (lead architect of C# and core developer on TypeScript in case you are not aware): From gustav at cactus.dk Tue Jun 2 04:49:08 2015 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Jun 2015 09:49:08 +0000 Subject: [dba-VS] =?utf-8?q?FYI=3A_Hack_Raspberry_Pi_=E2=80=93_How_To_Buil?= =?utf-8?q?d_Apps_In_C=23=2C_WinForms_and_ASP=2ENET_Using_Mono_In_Pi?= Message-ID: Hi all Just noticed this - a benchmark comparing Raspberry Pi and an i7-4207MQ notebook: http://www.codeproject.com/Articles/159450/fastJSON#app213 The factor is about 100. /gustav -----Oprindelig meddelelse----- Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Salakhetdinov Shamil Sendt: 1. juni 2015 10:28 Til: Development in Visual Studio Emne: [dba-VS] FYI: Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi Hi All -- Just thought some of you will find the following info useful: "Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi" http://www.amazedsaint.com/2013/04/hack-raspberry-pi-how-to-build.html P.S. The author has also a set of interesting and useful articles on codeproject:?http://www.codeproject.com/script/Membership/View.aspx?mid=1117033 Thank you. --? ???????????? ?????? From mcp2004 at mail.ru Tue Jun 2 05:06:17 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Tue, 02 Jun 2015 13:06:17 +0300 Subject: [dba-VS] =?utf-8?q?TypeScript?= In-Reply-To: References: Message-ID: <1433239577.481901174@f45.i.mail.ru> Hi Gustav -- Thank you for your reply. I do like and use interfaces since I have got acquainted with Implements feature in VBA. Although I must note I don't use them that often (in my mainly C# nowadays programming practice) as it's recommended in OOP & D theory. I'm not doing almost any JavaScript/Typescript development these days and I don't have plans to do it in the near future but I'll probably take the course - maybe it will push me more into JavaScript development direction :) I doubt in TypeScript high value in actual development (I can be wrong), I'd prefer "hardcore" JavaScript development but IMO TypeScript should be a good current surrogate for to be approved soon ECMAScript 6/JavaScipt 6 ( http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts ) which, AFAIK, has got introduced the concept of classes and the other new language features, making it more close to TypeScript. Thank you. -- Shamil Tuesday, June 2, 2015 8:19 AM UTC from Gustav Brock : >Hi Shamil > >Yes, it starts today but, as I understand it, this time you can start and proceed at your own pace. > >Any version of VS that can install the TypeScript extension can do. That should include the free Community version. I use VS2013 Professional. > >You can do this course with one hand while watching TV. It took more for me as I'm not fluent in JavaScript. The biggest surprise for me was the intense use of interfaces which is an important part of the magic of TypeScript and its IntelliSense which leaves JavaScript in the dark. > >I still feel better with C# but I have learned to pay more attention to interfaces. > >No, I didn't pay for a certificate - I have no one to present it to - and I would say it isn't of much value as you pass just by answering 60% correct. I insisted on 100%, and I believe anyone on this list could do as well with only little effort. > >I don't think I will follow it once more. So many other things to do. Actually, only a bit of luck made me complete it. > >/gustav > >PS: Don't expect to see too much to Anders Hejlsberg. He is present in the first video only. > >-----Oprindelig meddelelse----- >Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Salakhetdinov Shamil >Sendt: 2. juni 2015 09:47 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >?Hi Gustav -- > >Thank you for your note. As far as I see the course starts today. > >Do you know does the course need any special version of Visual Studio to work though its exercises? (I can't get this info from the course description).. > >BTW, my congratulations with your completion of the previous version of this course! >Have you got a verified certificate? >Do you plan to take this one? > >-- Shamil > >Monday, June 1, 2015 6:24 PM UTC from Gustav Brock < gustav at cactus.dk >: >>Hi all >> >>It is on-line again, now slightly revised: >> >>???? >> https://www.edx.org/course/introduction-typescript-microsoft-dev201x-0 >> >>/gustav >> >>________________________________________ >>Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Jim >>Lawrence < accessd at shaw.ca > >>Sendt: 12. maj 2015 20:53 >>Til: Development in Visual Studio >>Emne: Re: [dba-VS] TypeScript >> >>Hi Gustav: >> >>Congratulations! :-) >> >>Jim >> >>----- Original Message ----- >>From: "Gustav Brock" < gustav at cactus.dk > >>To: "Development in Visual Studio" < dba-vs at databaseadvisors.com > >>Sent: Tuesday, May 12, 2015 4:17:00 AM >>Subject: Re: [dba-VS] TypeScript >> >>Hi Arthur et al >> >>I managed to pass the course. It was a bit more difficult than expected because the instructors and the homework insist on a rigid use of interfaces even for the tiniest purpose - they call them baby interfaces -like: >> >>????interface IArtStyle { >>????????name: string; >>????} >> >>Thus you get a tiny class like: >> >>????class ArtStyle implements IArtStyle { >>????????name: string; >>????????constructor(artStyle: IArtStyle) { >>????????????this.name = artStyle.name; >>????????} >>????} >> >>Effectively, as you can see, this holds nothing more than a string. >>But it demonstrates the power of strong typing. >> >>Also the option for classes, inheritance, and modules (namespaces) really turns Javascript into a low-level language compared to TypeScript. >> >>It took me many hours to create the final piece of code - until I found out that the provided JSON file was buggy. But, hey, isn't that real life? Never trust an unknown data source. >> >>/gustav >> >>-----Oprindelig meddelelse----- >>Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af >>Arthur Fuller >>Sendt: 28. april 2015 16:34 >>Til: Development in Visual Studio >>Emne: Re: [dba-VS] TypeScript >> >>Gustav, >> >>I too am taking the course. And thanks for the link to SublimeText. I just installed it on two physical boxes, running Windows 8.1 and Debian 14 on the other, plus one VM running Ubuntu. and VoltDB. >> >>I haven't completed the course yet, but am sure liking what I've seen so far. >> >>/Arthur >> >>On Tue, Apr 28, 2015 at 7:33 AM, Gustav Brock < gustav at cactus.dk > wrote: >> >>> Hi all >>> >>> Apropos: >>> >>> There is a free course at 6 x 3-4 hours on TypeScript on-line at edX >>> by the two highly qualified instructors Dan Wahlin and Anders >>> Hejlsberg (lead architect of C# and core developer on TypeScript in case you are not aware): > >_______________________________________________ >dba-VS mailing list >dba-VS at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vs >http://www.databaseadvisors.com From fuller.artful at gmail.com Tue Jun 2 06:57:02 2015 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 2 Jun 2015 04:57:02 -0700 Subject: [dba-VS] TypeScript In-Reply-To: <1433239577.481901174@f45.i.mail.ru> References: <1433239577.481901174@f45.i.mail.ru> Message-ID: Shamil, Just a comment about TypeScript vs. JavaScript. Probably the big thing that writing in TypeScript brings is defined types. So if you make an error such as assigning a number to a string variable, TypeScript will catch the error whereas JavaScript won't until run-time. Also, TypeScript compiles to native JavaScript, so in a sense you're writing traditional JS but with a few bells and whistles added. While we're on the subject, there's also a library called fastJSON available here . Arthur ? From accessd at shaw.ca Tue Jun 2 10:53:06 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 2 Jun 2015 09:53:06 -0600 (MDT) Subject: [dba-VS] =?utf-8?q?FYI=3A_Hack_Raspberry_Pi_=E2=80=93_How_To_Buil?= =?utf-8?q?d_Apps_In_C=23=2C_WinForms_and_ASP=2ENET_Using_Mono_In_Pi?= In-Reply-To: Message-ID: <1311701857.87538092.1433260386093.JavaMail.root@shaw.ca> Hi Gustav: This FastJason is quite impressive. The speed differences between the two computers is not unexpected...I am more surprised that it actually works on a Pi Jim ----- Original Message ----- From: "Gustav Brock" To: "Development in Visual Studio" Sent: Tuesday, June 2, 2015 2:49:08 AM Subject: Re: [dba-VS] FYI: Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi Hi all Just noticed this - a benchmark comparing Raspberry Pi and an i7-4207MQ notebook: http://www.codeproject.com/Articles/159450/fastJSON#app213 The factor is about 100. /gustav -----Oprindelig meddelelse----- Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Salakhetdinov Shamil Sendt: 1. juni 2015 10:28 Til: Development in Visual Studio Emne: [dba-VS] FYI: Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi Hi All -- Just thought some of you will find the following info useful: "Hack Raspberry Pi ? How To Build Apps In C#, WinForms and ASP.NET Using Mono In Pi" http://www.amazedsaint.com/2013/04/hack-raspberry-pi-how-to-build.html P.S. The author has also a set of interesting and useful articles on codeproject:?http://www.codeproject.com/script/Membership/View.aspx?mid=1117033 Thank you. --? ???????????? ?????? _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From df.waters at outlook.com Wed Jun 3 10:09:02 2015 From: df.waters at outlook.com (Dan Waters) Date: Wed, 3 Jun 2015 10:09:02 -0500 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class Message-ID: I have a combobox base class (a custom control) which will cause the combobox to drop down when the control is entered and the selectedindex = -1 (it's empty). This is a convenience for users. However, I recently discovered that when the combobox is dropped down, its SelectedIndexChanged event also fires, which I want to prevent. In the code behind the form, I can just use RemoveHandler cboName.SelectedIndexChanged, AddressOf cboName_SelectedIndexChanged But in the base class, I don't know how to specify what the address is for the combobox on the form. This is where I'm stuck: RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the address?] How can this be done? Thanks! Dan From charlotte.foust at gmail.com Wed Jun 3 15:39:41 2015 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Wed, 3 Jun 2015 13:39:41 -0700 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: Why remove the handler rather than branching the code in it? Charlotte Foust (916) 206-4336 On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters wrote: > I have a combobox base class (a custom control) which will cause the > combobox to drop down when the control is entered and the selectedindex = > -1 > (it's empty). This is a convenience for users. > > > > However, I recently discovered that when the combobox is dropped down, its > SelectedIndexChanged event also fires, which I want to prevent. In the code > behind the form, I can just use > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > cboName_SelectedIndexChanged > > > > But in the base class, I don't know how to specify what the address is for > the combobox on the form. > > > > This is where I'm stuck: > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the address?] > > > > How can this be done? > > > > Thanks! > > Dan > > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > From df.waters at outlook.com Wed Jun 3 16:00:25 2015 From: df.waters at outlook.com (Dan Waters) Date: Wed, 3 Jun 2015 16:00:25 -0500 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: Hi Charlotte, I will add the handler back in a few lines of code down. What do you mean 'branching the code'? Dan -----Original Message----- From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, June 03, 2015 3:40 PM To: Development in Visual Studio Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class Why remove the handler rather than branching the code in it? Charlotte Foust (916) 206-4336 On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters wrote: > I have a combobox base class (a custom control) which will cause the > combobox to drop down when the control is entered and the > selectedindex = > -1 > (it's empty). This is a convenience for users. > > > > However, I recently discovered that when the combobox is dropped down, > its SelectedIndexChanged event also fires, which I want to prevent. In > the code behind the form, I can just use > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > cboName_SelectedIndexChanged > > > > But in the base class, I don't know how to specify what the address is > for the combobox on the form. > > > > This is where I'm stuck: > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the > address?] > > > > How can this be done? > > > > Thanks! > > Dan > > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From charlotte.foust at gmail.com Thu Jun 4 23:55:14 2015 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 4 Jun 2015 21:55:14 -0700 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: What I meant was test for a condition in that SelectedIndexChanged event and then either cancel the event or handle it normally. Is there a condition you could test for in that event so you would know whether to allow it to continue? Charlotte Foust (916) 206-4336 On Wed, Jun 3, 2015 at 2:00 PM, Dan Waters wrote: > Hi Charlotte, > > I will add the handler back in a few lines of code down. > > What do you mean 'branching the code'? > > Dan > > -----Original Message----- > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Wednesday, June 03, 2015 3:40 PM > To: Development in Visual Studio > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > Why remove the handler rather than branching the code in it? > > Charlotte Foust > (916) 206-4336 > > On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters wrote: > > > I have a combobox base class (a custom control) which will cause the > > combobox to drop down when the control is entered and the > > selectedindex = > > -1 > > (it's empty). This is a convenience for users. > > > > > > > > However, I recently discovered that when the combobox is dropped down, > > its SelectedIndexChanged event also fires, which I want to prevent. In > > the code behind the form, I can just use > > > > > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > > cboName_SelectedIndexChanged > > > > > > > > But in the base class, I don't know how to specify what the address is > > for the combobox on the form. > > > > > > > > This is where I'm stuck: > > > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the > > address?] > > > > > > > > How can this be done? > > > > > > > > Thanks! > > > > Dan > > > > > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > From df.waters at outlook.com Fri Jun 5 11:52:06 2015 From: df.waters at outlook.com (Dan Waters) Date: Fri, 5 Jun 2015 11:52:06 -0500 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: Hi Charlotte, This is the whole story. I have a custom control named PSICombobox which inherits from ComboBox. Below is shown one of the several events I've written for the PSICombobox, which could be used hundreds of places on many different WinForms. The issue is that when the Me.DroppedDown method is executed, the combobox's SelectedIndexChanged event on the form is automatically run, which of course can cause a problem. I want to prevent the combobox's SelectedIndexEvent (on the form) from being run every time it is dropped down from the code in this custom control's class. Typically I would do this in the form's code using RemoveHandler. But that requires knowing the address of the combobox, which is readily available by the form's code. But how would I get that address in the custom control's class code? Or, is there another way to do this without using RemoveHandler? Thanks! Dan '-------------------------------------------------- Public Class PSICombobox Inherits ComboBox Protected Overrides Sub OnEnter(e As EventArgs) If Me.Enabled = False Then Exit Sub Me.BackColor = System.Drawing.Color.FromArgb(255, 255, 160) '-- Pale Yellow stgComboboxTextEnter = Me.Text If Me.SelectedIndex = -1 Then RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT GOES HERE?] '-- For user convenience drop down the combobox when it gets the focus and it's empty Me.DroppedDown = True RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT GOES HERE?] End If MyBase.OnEnter(e) End Sub End Class '-------------------------------------------------- -----Original Message----- From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, June 04, 2015 11:55 PM To: Development in Visual Studio Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class What I meant was test for a condition in that SelectedIndexChanged event and then either cancel the event or handle it normally. Is there a condition you could test for in that event so you would know whether to allow it to continue? Charlotte Foust (916) 206-4336 On Wed, Jun 3, 2015 at 2:00 PM, Dan Waters wrote: > Hi Charlotte, > > I will add the handler back in a few lines of code down. > > What do you mean 'branching the code'? > > Dan > > -----Original Message----- > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Wednesday, June 03, 2015 3:40 PM > To: Development in Visual Studio > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > Why remove the handler rather than branching the code in it? > > Charlotte Foust > (916) 206-4336 > > On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters wrote: > > > I have a combobox base class (a custom control) which will cause the > > combobox to drop down when the control is entered and the > > selectedindex = > > -1 > > (it's empty). This is a convenience for users. > > > > > > > > However, I recently discovered that when the combobox is dropped > > down, its SelectedIndexChanged event also fires, which I want to > > prevent. In the code behind the form, I can just use > > > > > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > > cboName_SelectedIndexChanged > > > > > > > > But in the base class, I don't know how to specify what the address > > is for the combobox on the form. > > > > > > > > This is where I'm stuck: > > > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the > > address?] > > > > > > > > How can this be done? > > > > > > > > Thanks! > > > > Dan > > > > > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From charlotte.foust at gmail.com Fri Jun 5 16:52:54 2015 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Fri, 5 Jun 2015 14:52:54 -0700 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: To be honest, I haven't worked seriously in VS.Net for the past 5 years, so I'm rusty. I'm also having a knee replaced next week and won't be thinking about programming for a bit. Maybe someone else will jump in and help. Charlotte Foust (916) 206-4336 On Fri, Jun 5, 2015 at 9:52 AM, Dan Waters wrote: > Hi Charlotte, > > This is the whole story. I have a custom control named PSICombobox which > inherits from ComboBox. > > Below is shown one of the several events I've written for the PSICombobox, > which could be used hundreds of places on many different WinForms. > > The issue is that when the Me.DroppedDown method is executed, the > combobox's > SelectedIndexChanged event on the form is automatically run, which of > course > can cause a problem. I want to prevent the combobox's SelectedIndexEvent > (on the form) from being run every time it is dropped down from the code in > this custom control's class. > > Typically I would do this in the form's code using RemoveHandler. But that > requires knowing the address of the combobox, which is readily available by > the form's code. But how would I get that address in the custom control's > class code? > > Or, is there another way to do this without using RemoveHandler? > > Thanks! > Dan > > '-------------------------------------------------- > Public Class PSICombobox > > Inherits ComboBox > Protected Overrides Sub OnEnter(e As EventArgs) > > If Me.Enabled = False Then Exit Sub > > Me.BackColor = System.Drawing.Color.FromArgb(255, 255, 160) > '-- > Pale Yellow > > stgComboboxTextEnter = Me.Text > > If Me.SelectedIndex = -1 Then > > RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT GOES > HERE?] > > '-- For user convenience drop down the combobox when it gets > the > focus and it's empty > Me.DroppedDown = True > > RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT GOES > HERE?] > > End If > > MyBase.OnEnter(e) > > End Sub > End Class > '-------------------------------------------------- > > -----Original Message----- > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, June 04, 2015 11:55 PM > To: Development in Visual Studio > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > What I meant was test for a condition in that SelectedIndexChanged event > and then either cancel the event or handle it normally. Is there a > condition you could test for in that event so you would know whether to > allow it to continue? > > Charlotte Foust > (916) 206-4336 > > On Wed, Jun 3, 2015 at 2:00 PM, Dan Waters wrote: > > > Hi Charlotte, > > > > I will add the handler back in a few lines of code down. > > > > What do you mean 'branching the code'? > > > > Dan > > > > -----Original Message----- > > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > > Charlotte Foust > > Sent: Wednesday, June 03, 2015 3:40 PM > > To: Development in Visual Studio > > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > > > Why remove the handler rather than branching the code in it? > > > > Charlotte Foust > > (916) 206-4336 > > > > On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters > wrote: > > > > > I have a combobox base class (a custom control) which will cause the > > > combobox to drop down when the control is entered and the > > > selectedindex = > > > -1 > > > (it's empty). This is a convenience for users. > > > > > > > > > > > > However, I recently discovered that when the combobox is dropped > > > down, its SelectedIndexChanged event also fires, which I want to > > > prevent. In the code behind the form, I can just use > > > > > > > > > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > > > cboName_SelectedIndexChanged > > > > > > > > > > > > But in the base class, I don't know how to specify what the address > > > is for the combobox on the form. > > > > > > > > > > > > This is where I'm stuck: > > > > > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the > > > address?] > > > > > > > > > > > > How can this be done? > > > > > > > > > > > > Thanks! > > > > > > Dan > > > > > > > > > > > > _______________________________________________ > > > dba-VS mailing list > > > dba-VS at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > > http://www.databaseadvisors.com > > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > From df.waters at outlook.com Fri Jun 5 17:19:33 2015 From: df.waters at outlook.com (Dan Waters) Date: Fri, 5 Jun 2015 17:19:33 -0500 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: Good Luck Charlotte! Lots of physical therapy ahead I'd guess - I've had good luck with that. All the best! Dan -----Original Message----- From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, June 05, 2015 4:53 PM To: Development in Visual Studio Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class To be honest, I haven't worked seriously in VS.Net for the past 5 years, so I'm rusty. I'm also having a knee replaced next week and won't be thinking about programming for a bit. Maybe someone else will jump in and help. Charlotte Foust (916) 206-4336 On Fri, Jun 5, 2015 at 9:52 AM, Dan Waters wrote: > Hi Charlotte, > > This is the whole story. I have a custom control named PSICombobox > which inherits from ComboBox. > > Below is shown one of the several events I've written for the > PSICombobox, which could be used hundreds of places on many different WinForms. > > The issue is that when the Me.DroppedDown method is executed, the > combobox's SelectedIndexChanged event on the form is automatically > run, which of course can cause a problem. I want to prevent the > combobox's SelectedIndexEvent (on the form) from being run every time > it is dropped down from the code in this custom control's class. > > Typically I would do this in the form's code using RemoveHandler. But > that requires knowing the address of the combobox, which is readily > available by the form's code. But how would I get that address in the > custom control's class code? > > Or, is there another way to do this without using RemoveHandler? > > Thanks! > Dan > > '-------------------------------------------------- > Public Class PSICombobox > > Inherits ComboBox > Protected Overrides Sub OnEnter(e As EventArgs) > > If Me.Enabled = False Then Exit Sub > > Me.BackColor = System.Drawing.Color.FromArgb(255, 255, 160) > '-- > Pale Yellow > > stgComboboxTextEnter = Me.Text > > If Me.SelectedIndex = -1 Then > > RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT > GOES HERE?] > > '-- For user convenience drop down the combobox when it > gets the focus and it's empty > Me.DroppedDown = True > > RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT > GOES HERE?] > > End If > > MyBase.OnEnter(e) > > End Sub > End Class > '-------------------------------------------------- > > -----Original Message----- > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, June 04, 2015 11:55 PM > To: Development in Visual Studio > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > What I meant was test for a condition in that SelectedIndexChanged > event and then either cancel the event or handle it normally. Is > there a condition you could test for in that event so you would know > whether to allow it to continue? > > Charlotte Foust > (916) 206-4336 > > On Wed, Jun 3, 2015 at 2:00 PM, Dan Waters wrote: > > > Hi Charlotte, > > > > I will add the handler back in a few lines of code down. > > > > What do you mean 'branching the code'? > > > > Dan > > > > -----Original Message----- > > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf > > Of Charlotte Foust > > Sent: Wednesday, June 03, 2015 3:40 PM > > To: Development in Visual Studio > > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > > > Why remove the handler rather than branching the code in it? > > > > Charlotte Foust > > (916) 206-4336 > > > > On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters > wrote: > > > > > I have a combobox base class (a custom control) which will cause > > > the combobox to drop down when the control is entered and the > > > selectedindex = > > > -1 > > > (it's empty). This is a convenience for users. > > > > > > > > > > > > However, I recently discovered that when the combobox is dropped > > > down, its SelectedIndexChanged event also fires, which I want to > > > prevent. In the code behind the form, I can just use > > > > > > > > > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > > > cboName_SelectedIndexChanged > > > > > > > > > > > > But in the base class, I don't know how to specify what the > > > address is for the combobox on the form. > > > > > > > > > > > > This is where I'm stuck: > > > > > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the > > > address?] > > > > > > > > > > > > How can this be done? > > > > > > > > > > > > Thanks! > > > > > > Dan > > > > > > > > > > > > _______________________________________________ > > > dba-VS mailing list > > > dba-VS at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > > http://www.databaseadvisors.com > > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From mcp2004 at mail.ru Sat Jun 6 09:47:04 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sat, 06 Jun 2015 17:47:04 +0300 Subject: [dba-VS] =?utf-8?q?Using_RemoveHandler_in_a_Combobox_Base_Class?= In-Reply-To: References: Message-ID: <1433602024.395622796@f374.i.mail.ru> Hi Dan -- I have checked with VS2012 and C#: using System; namespace WindowsForms.TestApp { public partial class MyDropDownUserControl1 : System.Windows.Forms.ComboBox { public MyDropDownUserControl1() { InitializeComponent(); } protected override void OnEnter(EventArgs e) { base.OnEnter(e); ?if (this.SelectedIndex == -1)?this.DroppedDown = true; } } } it doesn't fire SelectedIndexChanged event. Thank you. -- Shamil Wednesday, June 3, 2015 10:09 AM -05:00 from Dan Waters : >I have a combobox base class (a custom control) which will cause the >combobox to drop down when the control is entered and the selectedindex = -1 >(it's empty). This is a convenience for users. > >? > >However, I recently discovered that when the combobox is dropped down, its >SelectedIndexChanged event also fires, which I want to prevent. In the code >behind the form, I can just use > >? > >RemoveHandler cboName.SelectedIndexChanged, AddressOf >cboName_SelectedIndexChanged > >? > >But in the base class, I don't know how to specify what the address is for >the combobox on the form. > >? > >This is where I'm stuck: > >RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the address?] > >? > >How can this be done? > >? > >Thanks! > >Dan > >? > >_______________________________________________ >dba-VS mailing list >dba-VS at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vs >http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Jun 8 09:59:30 2015 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 8 Jun 2015 10:59:30 -0400 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: References: Message-ID: <5B2A18EC43A54CA08DAAFA4335B1D15F@XPS> <> Best wishes for a smooth process and everything goes well! Jim. -----Original Message----- From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, June 05, 2015 05:53 PM To: Development in Visual Studio Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class To be honest, I haven't worked seriously in VS.Net for the past 5 years, so I'm rusty. I'm also having a knee replaced next week and won't be thinking about programming for a bit. Maybe someone else will jump in and help. Charlotte Foust (916) 206-4336 On Fri, Jun 5, 2015 at 9:52 AM, Dan Waters wrote: > Hi Charlotte, > > This is the whole story. I have a custom control named PSICombobox which > inherits from ComboBox. > > Below is shown one of the several events I've written for the PSICombobox, > which could be used hundreds of places on many different WinForms. > > The issue is that when the Me.DroppedDown method is executed, the > combobox's > SelectedIndexChanged event on the form is automatically run, which of > course > can cause a problem. I want to prevent the combobox's SelectedIndexEvent > (on the form) from being run every time it is dropped down from the code in > this custom control's class. > > Typically I would do this in the form's code using RemoveHandler. But that > requires knowing the address of the combobox, which is readily available by > the form's code. But how would I get that address in the custom control's > class code? > > Or, is there another way to do this without using RemoveHandler? > > Thanks! > Dan > > '-------------------------------------------------- > Public Class PSICombobox > > Inherits ComboBox > Protected Overrides Sub OnEnter(e As EventArgs) > > If Me.Enabled = False Then Exit Sub > > Me.BackColor = System.Drawing.Color.FromArgb(255, 255, 160) > '-- > Pale Yellow > > stgComboboxTextEnter = Me.Text > > If Me.SelectedIndex = -1 Then > > RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT GOES > HERE?] > > '-- For user convenience drop down the combobox when it gets > the > focus and it's empty > Me.DroppedDown = True > > RemoveHandler Me.SelectedIndexChanged, AddressOf [WHAT GOES > HERE?] > > End If > > MyBase.OnEnter(e) > > End Sub > End Class > '-------------------------------------------------- > > -----Original Message----- > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, June 04, 2015 11:55 PM > To: Development in Visual Studio > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > What I meant was test for a condition in that SelectedIndexChanged event > and then either cancel the event or handle it normally. Is there a > condition you could test for in that event so you would know whether to > allow it to continue? > > Charlotte Foust > (916) 206-4336 > > On Wed, Jun 3, 2015 at 2:00 PM, Dan Waters wrote: > > > Hi Charlotte, > > > > I will add the handler back in a few lines of code down. > > > > What do you mean 'branching the code'? > > > > Dan > > > > -----Original Message----- > > From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of > > Charlotte Foust > > Sent: Wednesday, June 03, 2015 3:40 PM > > To: Development in Visual Studio > > Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class > > > > Why remove the handler rather than branching the code in it? > > > > Charlotte Foust > > (916) 206-4336 > > > > On Wed, Jun 3, 2015 at 8:09 AM, Dan Waters > wrote: > > > > > I have a combobox base class (a custom control) which will cause the > > > combobox to drop down when the control is entered and the > > > selectedindex = > > > -1 > > > (it's empty). This is a convenience for users. > > > > > > > > > > > > However, I recently discovered that when the combobox is dropped > > > down, its SelectedIndexChanged event also fires, which I want to > > > prevent. In the code behind the form, I can just use > > > > > > > > > > > > RemoveHandler cboName.SelectedIndexChanged, AddressOf > > > cboName_SelectedIndexChanged > > > > > > > > > > > > But in the base class, I don't know how to specify what the address > > > is for the combobox on the form. > > > > > > > > > > > > This is where I'm stuck: > > > > > > RemoveHandler, Me.SelectedIndexChanged, AddressOf [What is the > > > address?] > > > > > > > > > > > > How can this be done? > > > > > > > > > > > > Thanks! > > > > > > Dan > > > > > > > > > > > > _______________________________________________ > > > dba-VS mailing list > > > dba-VS at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > > http://www.databaseadvisors.com > > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-VS mailing list > > dba-VS at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vs > > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > > _______________________________________________ > dba-VS mailing list > dba-VS at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vs > http://www.databaseadvisors.com > _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From df.waters at outlook.com Tue Jun 9 12:24:46 2015 From: df.waters at outlook.com (Dan Waters) Date: Tue, 9 Jun 2015 12:24:46 -0500 Subject: [dba-VS] Using RemoveHandler in a Combobox Base Class In-Reply-To: <1433602024.395622796@f374.i.mail.ru> References: <1433602024.395622796@f374.i.mail.ru> Message-ID: Hi Shamil, Thanks for your code! I translated to VB and I'm using VS 2013. In my class for a custom control, InitializeComponent() would not convert. I do have MyBase.New() in the Sub New procedure for each control. I have moved my code MyBase.OnEnter(e) from the last line in the procedure to the first line. I set up a test form with a custom textbox and custom combobox. When I tabbed into the combobox the SelectedIndexChanged event did NOT fire. However, when I set a breakpoint or a Stop command in the OnEnter procedure in the custom combobox class, the SelectedIndexChanged event in the combobox control in my test form DID fire. Removing the breakpoint and Stop command resulted in the SelectedIndexChanged event NOT firing. I got the same results in my other forms as well. So, I don't know if this rises to the level of a bug, but there is an easy solution - stop debugging in the custom control (but it's a lousy solution). Thanks for your help! Dan -----Original Message----- From: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Saturday, June 06, 2015 9:47 AM To: Development in Visual Studio Subject: Re: [dba-VS] Using RemoveHandler in a Combobox Base Class Hi Dan -- I have checked with VS2012 and C#: using System; namespace WindowsForms.TestApp { public partial class MyDropDownUserControl1 : System.Windows.Forms.ComboBox { public MyDropDownUserControl1() { InitializeComponent(); } protected override void OnEnter(EventArgs e) { base.OnEnter(e); if (this.SelectedIndex == -1) this.DroppedDown = true; } } } it doesn't fire SelectedIndexChanged event. Thank you. -- Shamil From mcp2004 at mail.ru Fri Jun 12 19:35:19 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sat, 13 Jun 2015 03:35:19 +0300 Subject: [dba-VS] =?utf-8?q?TypeScript?= In-Reply-To: References: <729103350.72635917.1431456781403.JavaMail.root@shaw.ca> Message-ID: <1434155719.491067272@f286.i.mail.ru> Hi Gustav et al -- I have just finished the revised TypeScript EdX course. I have been working through it on MS Windows 8.1 but I have been using just sublime and gulp. Thank you Gustav for your pointing on this course! It was a fun :) Waiting for 'Advanced TypeScript' course... -- Shamil Monday, June 1, 2015 6:24 PM UTC from Gustav Brock : >Hi all > >It is on-line again, now slightly revised: > >???? https://www.edx.org/course/introduction-typescript-microsoft-dev201x-0 > >/gustav > >________________________________________ >Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Jim Lawrence < accessd at shaw.ca > >Sendt: 12. maj 2015 20:53 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Hi Gustav: > >Congratulations! :-) > >Jim > >----- Original Message ----- >From: "Gustav Brock" < gustav at cactus.dk > >To: "Development in Visual Studio" < dba-vs at databaseadvisors.com > >Sent: Tuesday, May 12, 2015 4:17:00 AM >Subject: Re: [dba-VS] TypeScript > >Hi Arthur et al > >I managed to pass the course. It was a bit more difficult than expected because the instructors and the homework insist on a rigid use of interfaces even for the tiniest purpose - they call them baby interfaces -like: > >????interface IArtStyle { >????????name: string; >????} > >Thus you get a tiny class like: > >????class ArtStyle implements IArtStyle { >????????name: string; >????????constructor(artStyle: IArtStyle) { >????????????this.name = artStyle.name; >????????} >????} > >Effectively, as you can see, this holds nothing more than a string. >But it demonstrates the power of strong typing. > >Also the option for classes, inheritance, and modules (namespaces) really turns Javascript into a low-level language compared to TypeScript. > >It took me many hours to create the final piece of code - until I found out that the provided JSON file was buggy. But, hey, isn't that real life? Never trust an unknown data source. > >/gustav > >-----Oprindelig meddelelse----- >Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Arthur Fuller >Sendt: 28. april 2015 16:34 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Gustav, > >I too am taking the course. And thanks for the link to SublimeText. I just installed it on two physical boxes, running Windows 8.1 and Debian 14 on the other, plus one VM running Ubuntu. and VoltDB. > >I haven't completed the course yet, but am sure liking what I've seen so far. > >/Arthur > >On Tue, Apr 28, 2015 at 7:33 AM, Gustav Brock < gustav at cactus.dk > wrote: > >> Hi all >> >> Apropos: >> >> There is a free course at 6 x 3-4 hours on TypeScript on-line at edX >> by the two highly qualified instructors Dan Wahlin and Anders >> Hejlsberg (lead architect of C# and core developer on TypeScript in case you are not aware): > >_______________________________________________ >dba-VS mailing list >dba-VS at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vs >http://www.databaseadvisors.com From gustav at cactus.dk Sat Jun 13 03:02:33 2015 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Jun 2015 08:02:33 +0000 Subject: [dba-VS] TypeScript In-Reply-To: <1434155719.491067272@f286.i.mail.ru> References: <729103350.72635917.1431456781403.JavaMail.root@shaw.ca> , <1434155719.491067272@f286.i.mail.ru> Message-ID: Hi Shamil Congratulations! And you had your troubles with gulp worked out, I presume. I have seen no follow-up course yet, but edX sends me mails about all kinds of courses, so I'm sure they will tell. /gustav ________________________________________ Fra: dba-VS p? vegne af Salakhetdinov Shamil Sendt: 13. juni 2015 02:35 Til: Development in Visual Studio Emne: Re: [dba-VS] TypeScript Hi Gustav et al -- I have just finished the revised TypeScript EdX course. I have been working through it on MS Windows 8.1 but I have been using just sublime and gulp. Thank you Gustav for your pointing on this course! It was a fun :) Waiting for 'Advanced TypeScript' course... -- Shamil Monday, June 1, 2015 6:24 PM UTC from Gustav Brock : >Hi all > >It is on-line again, now slightly revised: > >???? https://www.edx.org/course/introduction-typescript-microsoft-dev201x-0 > >/gustav > >________________________________________ >Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Jim Lawrence < accessd at shaw.ca > >Sendt: 12. maj 2015 20:53 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >Hi Gustav: > >Congratulations! :-) > >Jim > >----- Original Message ----- >From: "Gustav Brock" < gustav at cactus.dk > >To: "Development in Visual Studio" < dba-vs at databaseadvisors.com > >Sent: Tuesday, May 12, 2015 4:17:00 AM >Subject: Re: [dba-VS] TypeScript > >Hi Arthur et al > >I managed to pass the course. It was a bit more difficult than expected because the instructors and the homework insist on a rigid use of interfaces even for the tiniest purpose - they call them baby interfaces -like: > >????interface IArtStyle { >????????name: string; >????} > >Thus you get a tiny class like: > >????class ArtStyle implements IArtStyle { >????????name: string; >????????constructor(artStyle: IArtStyle) { >????????????this.name = artStyle.name; >????????} >????} > >Effectively, as you can see, this holds nothing more than a string. >But it demonstrates the power of strong typing. > >Also the option for classes, inheritance, and modules (namespaces) really turns Javascript into a low-level language compared to TypeScript. > >It took me many hours to create the final piece of code - until I found out that the provided JSON file was buggy. But, hey, isn't that real life? Never trust an unknown data source. > >/gustav From mcp2004 at mail.ru Sat Jun 13 05:46:14 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sat, 13 Jun 2015 13:46:14 +0300 Subject: [dba-VS] =?utf-8?q?TypeScript?= In-Reply-To: References: <1434155719.491067272@f286.i.mail.ru> Message-ID: <1434192374.811234282@f369.i.mail.ru> Hi Gustav -- Thank you! Yes, by using just sublime and gulp I have taken a 'minimalist approach'. It was troublesome sometimes and "slow-to-go" but when one manages to build modern web apps with a minimal set of devtools that makes them really mighty developers :) I don't plan to ignore VS, just waiting for VS2015 to get released. After that I plan to use Sublime/Gulp and VS2015 and WebStorm (I have got purchased it to but not used yet) interchangeably. It's a pity EdX does not have an advanced TypeScript course, I have searched the Web and it looks like PluralSight has one: "Using TypeScript for Large AngularJS Applications (3h 7m, 01 Jan 2015)" http://www.pluralsight.com/courses/using-typescript-large-angularjs-apps It's bound to AngularJS but I anyway planned to learn AngularJS so I will probably take it sometime in the future. There is another one, AngularJS related which looks interesting. "AngularJS Line of Business Applications by Deborah Kurata (5h 36 m, 26 Sep 2014, Intermediate)" http://www.pluralsight.com/courses/angularjs-line-of-business-applications Pluralsight courses are not free. And the price for their Plus subscription is rather high (USD50/month). One have to plan their learning route really well to effectively use that subscription: I have taken it a while (year +) ago, and it was more paying for subscription that learning as current work and private life often "eats all the time". There is also a free AngularJS course from Google: "Learn to build an application using Angular.js" http://campus.codeschool.com/courses/shaping-up-with-angular-js/intro I will probably try to take it first. Thank you. -- Shamil Saturday, June 13, 2015 8:02 AM UTC from Gustav Brock : >Hi Shamil > >Congratulations! And you had your troubles with gulp worked out, I presume. > >I have seen no follow-up course yet, but edX sends me mails about all kinds of courses, so I'm sure they will tell. > >/gustav > >________________________________________ >Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Salakhetdinov Shamil < mcp2004 at mail.ru > >Sendt: 13. juni 2015 02:35 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >?Hi Gustav et al -- > >I have just finished the revised TypeScript EdX course. >I have been working through it on MS Windows 8.1 but I have been using just sublime and gulp. > >Thank you Gustav for your pointing on this course! >It was a fun :) > >Waiting for 'Advanced TypeScript' course... > >-- Shamil <<< skipped >>> > From gustav at cactus.dk Sat Jun 13 11:01:33 2015 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Jun 2015 16:01:33 +0000 Subject: [dba-VS] TypeScript In-Reply-To: <1434192374.811234282@f369.i.mail.ru> References: <1434155719.491067272@f286.i.mail.ru> , <1434192374.811234282@f369.i.mail.ru> Message-ID: Hi Shamil Yes, planning time is difficult. I have never attended a paid course for the same reason. You never know what shows up, and I also try to have a life. Also, at MVA there are so many courses, that if you one day sit and don't know what to do, just browse for a minute. But if you find something useful dealing with TypeScript, please drop a note. /gustav ________________________________________ Fra: dba-VS p? vegne af Salakhetdinov Shamil Sendt: 13. juni 2015 12:46 Til: Development in Visual Studio Emne: Re: [dba-VS] TypeScript Hi Gustav -- Thank you! Yes, by using just sublime and gulp I have taken a 'minimalist approach'. It was troublesome sometimes and "slow-to-go" but when one manages to build modern web apps with a minimal set of devtools that makes them really mighty developers :) I don't plan to ignore VS, just waiting for VS2015 to get released. After that I plan to use Sublime/Gulp and VS2015 and WebStorm (I have got purchased it to but not used yet) interchangeably. It's a pity EdX does not have an advanced TypeScript course, I have searched the Web and it looks like PluralSight has one: "Using TypeScript for Large AngularJS Applications (3h 7m, 01 Jan 2015)" http://www.pluralsight.com/courses/using-typescript-large-angularjs-apps It's bound to AngularJS but I anyway planned to learn AngularJS so I will probably take it sometime in the future. There is another one, AngularJS related which looks interesting. "AngularJS Line of Business Applications by Deborah Kurata (5h 36 m, 26 Sep 2014, Intermediate)" http://www.pluralsight.com/courses/angularjs-line-of-business-applications Pluralsight courses are not free. And the price for their Plus subscription is rather high (USD50/month). One have to plan their learning route really well to effectively use that subscription: I have taken it a while (year +) ago, and it was more paying for subscription that learning as current work and private life often "eats all the time". There is also a free AngularJS course from Google: "Learn to build an application using Angular.js" http://campus.codeschool.com/courses/shaping-up-with-angular-js/intro I will probably try to take it first. Thank you. -- Shamil Saturday, June 13, 2015 8:02 AM UTC from Gustav Brock : >Hi Shamil > >Congratulations! And you had your troubles with gulp worked out, I presume. > >I have seen no follow-up course yet, but edX sends me mails about all kinds of courses, so I'm sure they will tell. > >/gustav > >________________________________________ >Fra: dba-VS < dba-vs-bounces at databaseadvisors.com > p? vegne af Salakhetdinov Shamil < mcp2004 at mail.ru > >Sendt: 13. juni 2015 02:35 >Til: Development in Visual Studio >Emne: Re: [dba-VS] TypeScript > >?Hi Gustav et al -- > >I have just finished the revised TypeScript EdX course. >I have been working through it on MS Windows 8.1 but I have been using just sublime and gulp. > >Thank you Gustav for your pointing on this course! >It was a fun :) > >Waiting for 'Advanced TypeScript' course... > >-- Shamil