From mcp2004 at mail.ru Tue Jan 13 06:45:15 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Tue, 13 Jan 2015 15:45:15 +0300 Subject: [dba-VB] =?utf-8?q?Rectangular_Coding_Style_=3A=29?= Message-ID: <1421153115.865852945@f370.i.mail.ru> Hi All -- Here is an interesting coding exercise. Source code is borrowed from? http://codegolf.stackexchange.com/questions/26782/fast-cheap-and-good-choose-any-two . It didn't work "out-of-the-copy-paste-box" so I have made some corrections: using System.Windows.Forms; using System.Linq;class P: CheckBox{static void Main() {var p=new Form{Text= "SELECT ANY TWO"};P[]a=null; a="FAST CHEAP GOOD".Split(). Select((x,i)=>{var c=new P{ Top=i*50,Text=x};c.Click+=( s,e) =>{if (a.Count(b=>b. Checked) >1){a.First(b=>!b. Checked).Enabled=1<0;}else? a.All(b=>b.Enabled=0<1);};p. Controls.Add(c);return c;}). ToArray();Application.Run(p) ;}} Enjoy! ;) -- ???????????? ?????? From accessd at shaw.ca Mon Jan 19 15:48:56 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 19 Jan 2015 14:48:56 -0700 (MST) Subject: [dba-VB] Rectangular Coding Style :) In-Reply-To: <1421153115.865852945@f370.i.mail.ru> Message-ID: <679505570.101065396.1421704136636.JavaMail.root@cds018> Hi Shamil: Now that is very interesting challenge. How did you rate you code challenge? There are two more points to consider when selecting which solution is best. I would choose JQuery as a rule because: 1. JQuery is so designed as to run on all browsers without additional coding. 2. As the goal is to run a display, JQuery does not have to make a round trip to a BE server so if the BE was ever under load or the internet was running slow, JQuery would be uninfected as it just uses the resources of local browser webkit API. Additionally, JQuery uses the browser engine components to do a direct page display and requires no extra remote calls. Great piece of code. I am totally impressed. Jim ----- Original Message ----- From: "Salakhetdinov Shamil" To: "Discussion concerning Visual Basic and related programming issues." Sent: Tuesday, January 13, 2015 4:45:15 AM Subject: [dba-VB] Rectangular Coding Style :) Hi All -- Here is an interesting coding exercise. Source code is borrowed from? http://codegolf.stackexchange.com/questions/26782/fast-cheap-and-good-choose-any-two . It didn't work "out-of-the-copy-paste-box" so I have made some corrections: using System.Windows.Forms; using System.Linq;class P: CheckBox{static void Main() {var p=new Form{Text= "SELECT ANY TWO"};P[]a=null; a="FAST CHEAP GOOD".Split(). Select((x,i)=>{var c=new P{ Top=i*50,Text=x};c.Click+=( s,e) =>{if (a.Count(b=>b. Checked) >1){a.First(b=>!b. Checked).Enabled=1<0;}else? a.All(b=>b.Enabled=0<1);};p. Controls.Add(c);return c;}). ToArray();Application.Run(p) ;}} Enjoy! ;) -- ???????????? ?????? _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Thu Jan 29 04:20:18 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Thu, 29 Jan 2015 13:20:18 +0300 Subject: [dba-VB] =?utf-8?q?Connecting_to_a_IIS_8_web_site_programmaticall?= =?utf-8?q?y_using_C=23?= Message-ID: <1422526818.266962790@f53.i.mail.ru> Hi All -- When using IIS 8 Manager program I can connect to a remote site (IIS: FIle -> Connect to a Site...) specifying: - Server Name (say 134.211.115.7) and ?? - Site Name ? ? ?(say MyTestSite.hosting.web.biz) in the first dialog window "Connect to SIte: Specify Site Connection Details". ?Then clicking [Next] button and providing credentials - User name and - Password in the second dialog window. Question: How to implement a similar IIS 7/8 site connection procedure by using C#/VB.NET code? FYI: while googling for the subject I have found a lot of C# samples on how to Automate IIS management but none of them provided a working code for managing remote web sites. Thank you. -- ???????????? ?????? From gustav at cactus.dk Fri Jan 30 02:04:54 2015 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Jan 2015 08:04:54 +0000 Subject: [dba-VB] Syncfusion free offer Message-ID: Hi all As Microsoft did for Visusal Studio, Syncfusion has released their Essential Studio in a community edition: https://www.syncfusion.com/products/communitylicense It's normally priced at 10K and is a collection of 650 controls of top quality aimed at both mobile, desktop, and web applications. I haven't used it because of the steep pricing, but they also offer for free a comprehensive collection of icons for Metro/Modern design: https://www.syncfusion.com/downloads/metrostudio /gustav From accessd at shaw.ca Fri Jan 30 14:08:22 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 30 Jan 2015 13:08:22 -0700 (MST) Subject: [dba-VB] Syncfusion free offer In-Reply-To: Message-ID: <73287092.111504001.1422648502493.JavaMail.root@cds018> Hi Gustav: Thanks for posting...will definitely download that set of icons. Jim ----- Original Message ----- From: "Gustav Brock" To: "Discussion concerning Visual Basic and related programming issues. (dba-vb at databaseadvisors.com)" Sent: Friday, 30 January, 2015 12:04:54 AM Subject: [dba-VB] Syncfusion free offer Hi all As Microsoft did for Visusal Studio, Syncfusion has released their Essential Studio in a community edition: https://www.syncfusion.com/products/communitylicense It's normally priced at 10K and is a collection of 650 controls of top quality aimed at both mobile, desktop, and web applications. I haven't used it because of the steep pricing, but they also offer for free a comprehensive collection of icons for Metro/Modern design: https://www.syncfusion.com/downloads/metrostudio /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com