Skip to main content

Posts

Showing posts with the label Programming

Create Custom WPF Tab Control Easily

Join me on Google+ Windows Presentation Foundation (or WPF) is a computer-software graphical subsystem for rendering user interfaces in Windows-based applications. WPF, previously known as "Avalon", was initially released as part of .NET Framework 3.0 . Rather than relying on the older GDI subsystem, WPF utilizes DirectX . Creating a Tab Control in WPF is pretty simple. Let's get through the steps one by one. Create a new Project. I am using VB as my language, you may C# if you wish to. :) A WPF Application Project will do fine. I believe in clean coding. I wish to add a couple of controls to this solution. Instead of adding them to the root, I will right click the solution and click "Add Folder", rename as something like say "Cus Tab Controls". Add a WPF custom control, name it whatever you wish. This will be the tabItem header. Here goes the code. I just added a harmless Label, and a Button, which will act as the Close Tab button fo...

Image Carousel with jQuery

jQuery is a wonderful cross browser javascript library. The effects that can be created using it are simply superb and uber cool. And that without using flash. The two major advantages of not using flash is that you can save on bandwidth as embedded flash objects are not bandwidth friendly. Besides flash is not supported on iPads, meaning which on an iPad the webpage will be a complete piece of junk and nothing else with missing components. The polaroid effect is not covered in this article. Some other time! Now there are many jQuery based carousels on the internet. So why need a new one? well, actually you don't. But for example you wish to integrate a carousel in Blogger. The choices become severely restricted and then the customization is often difficult to configure. Most of the carousels available for blogger are simple ones with image transitions and basically nothing more. So I present to you a new form of jQuery carousel which is optimized for blogger . Befor...

Make a gadget

Creating gadgets for Windows is very easy. So easy, in fact a class 8 kid can make them, provided he knows basic stuff like HTML, JavaScript and CSS. Even then there are issues that are faced when you start doing things the first time. So I may just be able to get you started. By the end of it, you will probably say to yourself that this was just sooooo easy. First thing first. You must know HTML, CSS and basic JavaScript, otherwise what I will write here will look like Sumerian to you. So if you wish to take a look and brush up your skills, here are the links to go. I'll wait. www.w3schools.com/js/ www.w3schools.com/html/ www.w3schools.com/css/ Yes I am a particular fan of w3schools, mainly because they have got a code testing playground, invaluable for immediate testing and  experimentation .  Now that you are ready, lets get started. The Bare Layout of a Windows Sidebar Gadget A gadget is simply a webpage with its scripts, style...

Simple Site Building with Webmatrix

Microsoft WebMatrix is intended to serve the website creation, customisation and publication needs of designers and amateurs, and not as a substitute for Visual Studio or other professional development tools. As a professional developer, I can see why it might appeal to its target audience, but I can't stand to use it myself for more than 15 minutes at a time. Rick Grehan's  preview of WebMatrix  in November covered most of the product features well, so I won't repeat his descriptions and analysis. Since then, a few features and gallery items have been added, which I'll discuss as I go along. I've included a handful of screen images at the end of the article. Rick picked on the weakness of the editor and the lack of a debugger, and until I worked with the product myself, I didn't understand how kind he was in the way he phrased his objections. After spending time with WebMatrix, I know otherwise. By choosing the WordPress framework, for example...

Windows 7 New Features in VB.NET & C#

Introduction This is a quick step by step guide to help all .Net developers to take advantage of the new features of Windows 7. What you will Need   Visual Studio 2008 or 2010 Windows API Code Pack for Microsoft .NET Framework Can be downloaded from http://code.msdn.microsoft.com/WindowsAPICodePack Minimum .NET Framework version required is 3.5 SP1. A Windows 7 machine. Getting Ready   You will need to compile the Windows API Code Pack Dlls, after extracting the WindowsAPICodePack.zip file open the WindowsAPICodePack.sln located inside the WindowsAPICodePack folder and Build the solution this will produce the following Dlls * Core * Shell (Note : it depends on the Core project ) you will need to add a Reference to them in your applications. Compatibility with Different Versions of Windows   the application will crash and exit if for example a feature exclusive to windows 7 was called and it was running under a windows vista or a windows XP environment. so to p...