Re: Dynamically binding a linq query to a linqdatasource

2012-03-29 Thread Michael Minutillo
Because LINQ is lazily evaluated you can build up a query and never go to the database (until you enumerate it anyway). So you can probably do something like this: var products = db.Products; if(!showDiscontinued) { products = products.Where(x => x.IsDiscontinued == false); } // many more cl

RE: WinForms - button text from sender object

2012-03-29 Thread Keir Nathan
If you were expecting various types to hit that event then you'd just need to check the type before casting it... If TypeOf sender Is Button Then MessageBox.Show(CType(sender, Button).Text) ElseIf TypeOf sender Is TextBox Then MessageBox.Show(CType(sender,

RE: WinForms - button text from sender object

2012-03-29 Thread Ian Thomas
Yes, that works - CType(sender, Button).Text) in VB.NET - for a Button. - but I thought there was something more general, though the .Text property isn't going to be uniform across controls. I'll go for that solution. thx _ Ian Thomas Victoria Park, Western Australia _ From:

RE: Dynamically binding a linq query to a linqdatasource

2012-03-29 Thread Peter Maddin
Looks like the linqdatasource generates the linq for you. You just have to use the properties like select and where, before you bind the linqdatasource to your viewgrid. I feel like this sorts of defeats learning linq to some degree. Regards Peter Maddin Applications Development Officer Pat

Re: WinForms - button text from sender object

2012-03-29 Thread Wallace Turner
C# ((TextBox)sender).Text ? On 30/03/2012 2:01 PM, Ian Thomas wrote: Hello folks I've forgotten how to get the text from a button click that handles multiple buttons -- PrivateSub Buttons_Click(ByVal sender As Object, ByVal e As EventArgs) _ Handles Button1.Click, Button2.Click, B

WinForms - button text from sender object

2012-03-29 Thread Ian Thomas
Hello folks I've forgotten how to get the text from a button click that handles multiple buttons - Private Sub Buttons_Click(ByVal sender As Object, ByVal e As EventArgs) _ Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click (VB.NET above) sender.ToString gives me the

Dynamically binding a linq query to a linqdatasource

2012-03-29 Thread Peter Maddin
I want to use linqtosql to do crud. I want to bind a viewgrid to a linqdatasource which is bound to a datacontext. If you want to do this for every row in the table that is easy. I want to dynamically build a linq query to return a subset of rows that I can manipulate and update within the

RE: Win 8 Tablet

2012-03-29 Thread Ken Schaefer
That works with Wacom digitizers only. I've for one as well, and it doesn't work with nTrig digitizers (which seems to be the majority of Win tablets these days) or capacitive tablets (iPads). From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Andrew Coates (

RE: Win 8 Tablet

2012-03-29 Thread Andrew Coates (DPE AUSTRALIA)
I have one of these: http://www.amazon.com/Wacom-Cross-Executive-Pen-UPCROSS2/dp/B0002FHEWA Looks smart and worked a treat on my WinXP, Vista and Win7 Tablets. I don't have a Win8 machine with active digitiser as yet (but I expect I will). I love pen input. I'm a bit concerned that as a society

RE: Win 8 Tablet

2012-03-29 Thread Keir Nathan
OneNote is my main use too. Syncing between tablet, desktop and WP7 phone. Works very nicely. Though I would use it for more if it had more power. Regards, Nathan Keir Systems Analyst John Deere Financial Limited A.C.N. 078 714 646 Australian Credit Licence Number 391484 Incorporated in Queen

RE: Win 8 Tablet

2012-03-29 Thread Ken Schaefer
I only use OneNote and Outlook on mine. That may be why I find it fine for day-to-day use, yet others find it underpowered (probably the same goes with the Dell Slate). Everything I do in OneNote is synced back to my regular PCs I also have SharePoint Workspace running on it, to have an offline

Re: Win 8 Tablet

2012-03-29 Thread Stephen Price
I often wonder why more people are not raving about how the porn looks on their tablets. I mean it's most likely the number one use Sent from my iPhone On 30/03/2012, at 8:58 AM, Peter Maddin wrote: Thanks >> hadn't noticed any annoying hand smudging. Kleenex and Windex will solve that prob

RE: Win 8 Tablet

2012-03-29 Thread Peter Maddin
Thanks >> hadn't noticed any annoying hand smudging. Kleenex and Windex will solve that problem Regards Peter Maddin Applications Development Officer PathWest Laboratory Medicine WA Phone : +618 6396 4285 (Monday, Wednesday,Friday) Phone : +618 9346 4372 (Tuesday, Thursday) Mobile: 0423 5

Re: Win 8 Tablet

2012-03-29 Thread Stephen Price
No battery. The pen that comes with it is quite cheap feeling. I bought a pen from Wacom but only the pen enabled ones will work, there are a few different types. I emailed Wacom and they told me the type that would work. Sent from my iPhone On 30/03/2012, at 8:30 AM, Keir Nathan wrote: Does th

RE: Win 8 Tablet

2012-03-29 Thread Keir Nathan
Does the pen on that one require batteries, and have a nib that has to press in to activate it, and have a right mouse button on it? I've got the HP Slate 500 which I find rather underpowered. Regards, Nathan Keir Systems Analyst John Deere Financial Limited A.C.N. 078 714 646 Australian Credi

Re: Win 8 Tablet

2012-03-29 Thread Stephen Price
I think it was the Express build so I could build Metro apps. Don't recall having an option but it was the ISO version if that helps. Oh, and we tested it the other night. The pen does turn off the touch when its in proximity of the screen so no risk of drawing stuff with your hand while using the

Re: Win 8 Tablet

2012-03-29 Thread Stephen Price
Worst of both worlds as opposed to the best... I've noticed the Windows tablets always seem double the price of the Androids/iOs ones. I found the soon to be released ASUS Transformer Infinity so may well get one of those. Unless someone pulls a Windows device out of the hat that does bring the be

Re: Win 8 Tablet

2012-03-29 Thread David Connors
All the PC winslabs are pretty dear. We have a couple of them and Win8 really does need a bit of grunt to run. I can thoroughly NOT recommend the Dell Latitude ST (Atom + GMA600) as it runs like arse (and cost $1300) - complete waste of money that is an painful to use and an embarrassment to be se

RE: In praise of slsvcutil.exe

2012-03-29 Thread Greg Keogh
Slsvcutil.exe is just a command-line wrapper around the same APIs that Add Service Reference calls. What's the 'corrupt' service references that you were hitting? Sure, but I reckon it's much neater than adding a project ref which produces an opaque clump of files under the Service References f

RE: In praise of slsvcutil.exe

2012-03-29 Thread David Kean
Slsvcutil.exe is just a command-line wrapper around the same APIs that Add Service Reference calls. What's the 'corrupt' service references that you were hitting? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Thursday, March 29, 2012 1:

Re: Win 8 Tablet

2012-03-29 Thread Michael Minutillo
Is it twice as good as my Acer Iconia Android tablet because the price-tag seems to think so? On Thu, Mar 29, 2012 at 8:48 PM, Peter Maddin wrote: > Hi Stephen > > ** ** > > Was reasonably impressed with your eee Asus EP121 64GB tablet > > ** ** > > Have purchased one from Hardly Normal f

Win 8 Tablet

2012-03-29 Thread Peter Maddin
Hi Stephen Was reasonably impressed with your eee Asus EP121 64GB tablet Have purchased one from Hardly Normal for $998 pick up which is not bad. I thinks it's a bit entry level, but enough to get started. I presume you installed the Win 8 Consumer Preview http://windows.microsoft.c

In praise of slsvcutil.exe

2012-03-29 Thread Greg Keogh
Folks, Thanks to a hint by Brendan in the Silverlight forum I was led to find this utility (on my machine): "%ProgramFiles(x86)%\Microsoft SDKs\Silverlight\v4.0\Tools\slsvcutil .exe" Thank heavens for this, as it means I c