.NET Framework 4.0 offers a set of new features focused on Observable/Observer design pattern. Actually, such pattern is a subset of Publish/Subscribe design pattern. Such kind of patterns aim to provide a mechanism for push-based notifications. My friend and colleague José Miguel Torres has written the best post I’ve never read about it: Take a … Continue reading »
How to: Check if current user is member of ‘domain admins’
The scenario Sometimes in business applications it’s interesting checking if current user is member of the ‘domain administrators’ role. For example I am used to checking if current user has administrative privileges in order to showing some advanced configuration options (changing the application’s connection string, or allow creating new users). IsInRole To acomplish this we … Continue reading »
How to: Retrieve all controls in a form, using generics (II) – Linq at rescue!
Hi again, In my previous post, I created a recursive function to retrieve all controls inside a form and its containers. Today, my colleague and friend Eduard Tomàs (software architect @ RAONA) has posted another solution to the same topic based on Linq. It’s quite simply and really, really pretty: A new approach: Before starting, we … Continue reading »
How to: Retrieve all controls in a form, using generics (I)
Note: This is a very common question in MSDN forums. For this reason I decided to write this post, and use it for reference in future questions. The typical question: How to clear the content of all the textboxes in a form? Answer: Using generics it’s really easy… First of all, let’s create an extensor … Continue reading »
Windows 8: Microsoft’s full ARM tablet demo
Microsoft introduced a number of tablet concepts during a partner preview event earlier this week. The software giant held a technical demonstration at Computex on Thursday to demonstrate Windows 8 to hardware partners. Mike Angiulo, corporate vice president of Windows Planning, Hardware and PC Ecosystem at Microsoft, demonstrated Windows 8 on a variety of tablets. … Continue reading »
Windows 8 first ‘official’ preview
REDMOND, Wash. – June 1, 2011 – Today, at the D9 Conference, we demonstrated the next generation of Windows, internally code-named “Windows 8,” for the first time. Windows 8 is a reimagining of Windows, from the chip to the interface. A Windows 8-based PC is really a new kind of device, one that scales from … Continue reading »
Using ASP.NET Membership in SQL Azure
The scenario: Sometimes we forget SQL Azure is not SQL Server. This morning in the project I’m working, we needed to create a small ASP.NET membership database in SQL Azure. It seems easy! Would you expect troubles with this? Nope? Ok, me neither… until I tried to execute aspnet_regsql to create the database: An error … Continue reading »
Macbook Pro – Series 3400 series chipset usb problems?
After a long time… here we go again! Today a quick post, just a note: If you bought a MacBook Pro and you would like running Windows 7, it could be possible experiment some chipset problems. In my particular case with USB and bluetooth devices (Wireless Notebook Presenter 8000), and a couple of window-freezed. Also, in … Continue reading »
How to: Grouping groups
Today I would like to show a tip for grouping active directory groups using LINQ to objects. Suppose this scenario: You wanna retrieve all the roles a user belongs, grouping them by their domain name, as shows: Groups under: – Group name: All – Group name: LOCAL Groups under: BUILTIN – Group name: Users – … Continue reading »
HelloWorld();
Hi there! I’m Lluís Franco, Microsoft MVP, developer, geek, and also family guy. In this blog I will post about .NET development, SQL, architecture… and maybe some translations Spanish-to-English of the most popular posts from my other blogs. Namaste!