Tag: How to
How to Derive a Class (Inheritance) in Javascript (WinJS) ?
If you want to derive a class from another class in Javascript when developing a Windows store app using WinJS library , you can use the WinJS.Class.derive method to do it. How to Derive a Class (Inheritance) in Javascript (WinJS) ? Below is a sample code snippet demonstrating how to derive a class in WinJS.
How to Set the Windows Phone 8 icons in Visual Studio 2012?
You can set the icons for your Windows Phone 8 app in Visual Studio 2012 using the WMAppManifest.xml manifest file. The Visual Studio 2012 includes a GUI editor for editing WMAppManifest.xml manifest file. How to Set the Windows Phone 8 icons in Visual Studio 2012? You can find the WMAppManifest.xml, under the properties node of the project in the Visual Studio solution explorer. Just double…
How to Declare Array of Objects in C# ?
Do you want to declare an array of objects in your C# application ? . Below is a sample code snippet that demonstrates how to declare an integer array in C#. How to Declare Array of Objects in C# ?
How to Enable All Constraints back in the Database in SQL Server ?
In one of the articles , we explained How to Disable All Constraints in the Database temporarily in SQL Server ? , let’s look at the option of how to enable back the constraints in the SQL Server Database. How to Enable All Constraints back in the Database in SQL Server ? Below is a sample query that enables all the constraints back to the…
using IN clause to provide a list of values for Search Criteria
In SQL Server , you can use the IN clause to providing the list of values for a search criteria. For example , you want to display the employee records who’s job title is one of the following : ‘Design Engineer’,’Tool Designer’. The above query uses the IN clause to filter the employee records using the arbitrary list of values. Alternatively , you can also…
How to Create ApplicationBar in Windows Phone using XAML ?
In one of the previous articles , we discussed how to create ApplicationBar programmatically during runtime using C# . This article will demonstrate how to create ApplicationBar using XAML. How to Create ApplicationBar in Windows Phone using XAML ? Below is a sample XAML code snippet which creates an ApplicationBar with one Menu Item and two ApplicationBarIconButton <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItem IsEnabled=”True” Text=”ABundantCode”/> </shell:ApplicationBar.MenuItems> <shell:ApplicationBarIconButton…
How to Add Comment in XAML and Silverlight?
You can add comment in XAML using the following format <!– Your Comment –> How to Add Comment in XAML and Silverlight? Sample code snippet demonstrating the inclusion of the comments in XAML page. <!–This Section is a Grid Layout–> <Grid x:Name=”LayoutRoot” Background=”White”> <Canvas x:Name=”ACCanvas” xmlns=”http://schemas.microsoft.com/client/2007″ xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Background=”Green” Width=”400″ Height=”300″ > <Ellipse x:Name=”ACEllipse” Fill=”Red” Stroke=”Pink” Width=”200″ Height=”200″/> </Canvas> </Grid>
How to Get the Dictionary Key by value in C# ?
If you want to get the Key of a dictionary based on the value in C# , you can use the LINQ’s where clause o FirstOrDefault method. How to Get the Dictionary Key by value in C# ?
How to Connect PC to internet through Windows Phone’s device internet?
There are times when you want to connect your laptop / PC to internet via the Phone’s internet connection (GPRS/3G/4G). This may be needed especially when you are travelling a lot. You can use the internet connection of your Windows Phone 8(HTC Windows Phone 8X) to connect on your PC. How to Connect PC to internet through Windows Phone’s device internet? Launch the Settings App…
Can Mail be sent in Background in Windows Phone 8 using Launcher?
In one of the previous article, we explained about sending email in Windows Phone 8 using EmailComposeTask which invokes the UI for the user with the content of the email. When the user taps on the send button , the email is sent to the user. Can Mail be sent in Background in Windows Phone 8 using Launcher? Currently , the Windows Phone 8 SDK…
C Program to print a Half Pyramid using *
Problem Write a program in C to print Half pyramid using * as shown. * * * * * * * * * * * * * * * How to create and display Half Pyramid pattern in C ? Output Abundantcode.com Coding samples Enter the total number of rows: 5 * * * * * * * * * * * * * *…
Types of Strings in F# Triple Quoted , Verbatim , Normal
There are 3 different types of Strings available in F# Types of Strings in F# 1. Normal String 2. Verbatim String @ 3. Triple Quoted String Below is a sample code demonstrating these 3 different types of strings in F#