Mike Mattys
mmattys at rochester.rr.com
Fri Apr 3 15:49:49 CDT 2009
Hi Shamil, I'll read it and try to put into practice. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Salakhetdinov Shamil" <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Sent: Friday, April 03, 2009 4:43 PM Subject: Re: [dba-VB]SCRUM: 27 controls' OnClick event > Hi Mike, > > Got your new version of form here via SVN - it looks and works fine. > > Would you like you try to make 'Alphabetical List of Products' report or > you pkan to read on MS eportViewer Control first (over weekend)? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: "Mike Mattys" <mmattys at rochester.rr.com> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Fri, 3 Apr 2009 11:29:57 -0400 > Subject: Re: [dba-VB] SCRUM: 27 controls' OnClick event > >> Thanks, Gustav, excellent point. >> >> I will add that one should not change code and then try to run >> the project in the debugger without using Rebuild All first - the errors! >> ugh! >> >> - >> Michael R Mattys >> MapPoint and Database Dev >> www.mattysconsulting.com >> - >> ----- Original Message ----- >> From: "Gustav Brock" <Gustav at cactus.dk> >> To: "<Discussion concerning Visual Basic and related programmingissues." >> <dba-vb at databaseadvisors.com> >> Sent: Friday, April 03, 2009 11:20 AM >> Subject: Re: [dba-VB] SCRUM: 27 controls' OnClick event >> >> >> > Hi Mike >> > >> > Just a comment, that this will not reduce code in total, just let VS >> > create these line automatically in the .design.cs file in >> > InitializeComponents. >> > That is often very convenient, but if it is preferable, I think, is a >> > matter of taste. For example, I've found that debugging may be easier >> > if >> > the code is in the .cs file. >> > >> > /gustav >> > >> > >> >>>> Salakhetdinov Shamil <mcp2004 at mail.ru> 03-04-2009 15:34 >>> >> > Hi Mike, >> > >> > I must add that instead of this manual coding: >> > >> > ... >> > aLabel.Click += new EventHandler(letterLabel_Click); >> > bLabel.Click += new EventHandler(letterLabel_Click); >> > cLabel.Click += new EventHandler(letterLabel_Click); >> > ... >> > >> > you can use properties window to declaratively set letterLabel_Click as >> > event procedure for click event for every Label: in fact it's >> > preferrable >> > to do it that way to have as little as possible custom coding. >> >> _______________________________________________ >> 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 >