Tag: How to
SQL Server 2014 Tutorial – Assign TCP/IP Port to Database Engine
Problem Statement You need to change the SQL Server 2014 port number from 1433 to a different port number. Solution By default , SQL Server runs on the port number 1433. You can change it to different port number by following the below steps. 1. Open SQL Server 2014 Configuration Manager from the Windows Start menu. 2. In the left side bar of the Sql…
C Program to display Inverted half-pyramid using numbers
Problem Write a program in C to print Inverted half-pyramid using numbers as shown below.The program should take the number of rows as input. 1 2 3 4 1 2 3 1 2 1 How to create and display Inverted half-pyramid pattern in C using numbers ? Output Abundantcode.com Coding samples Enter number of rows: 4 1 2 3 4 1 2 3 1 2 …
Different Tabs in the Package Manifest file in Universal App
The package manifest file in the Windows Store App and Windows Phone app (universal app) lets the developers to describe some of the key information about the application like the name , necessary device capabilities that the app can use and the requirements for the device to install the app etc. The name of the file would generally be Package.appxmanifest. Different Tabs in the Package…
How to return Binary File from a Action Method in ASP.NET Web API ?
There are times when you might want to serve binary files from your controller’s action method in ASP.NET MVC Web API. You can do this easily by setting the octet-stream content for the HttpResponseMessage as shown in the code snippet. How to return Binary File from a Action Method in ASP.NET Web API ?
How to Create a ShellToast(ToastPrompt) in Windows Phone 8 ?
Do you want to create a ShellToast from your Windows Phone 8 app ? . The Coding4fun toolkit provides some additional controls which can be used create a ShellToast in Windows Phone 8 app. How to Create a ShellToast(ToastPrompt) in Windows Phone 8 ? Below is a sample code snippet demonstrating how to achieve it using the ToastPrompt control from Coding4Fun.
C++ Program to add two integers
Problem Write a program in C++ to add two integers and display the result on the screen. C++ Program to add two integers Output Enter first number : 8 Enter second number : 2 8 + 2 = 10
GOTO Label in SQL Server
There are times when you want to jump to a specific section (Label) in the code when a condition satisfies. You can create a label and then use the GOTO statement to branch directly to the code. To create a label , simply specify the label name followed by the colon. Label1: Here’s a query demonstrating the usage of the Label named “RecordExistsLabel” and GOTO…
How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ?
Are you looking forward to change the background color of the status bar or system tray in Windows Phone 8 ? Below is a sample code snippet that demonstrates how to do it . How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ? In the below code snippet , the background color of the SystemTray is…
Creating Namespace in WinJS for Windows Store App ?
When developing Windows Store App using WinJS library , there are times when you want to create a namespace . You can use the WinJS.Namespace.define() method to create a namespace. Below is a sample code snippet demonstrating how to create a namespace in WinJS for Windows Store App using WinJS. Creating Namespace in WinJS for Windows Store App ?
Java – How to use Packages to organize code ?
Problem Statement You need to use packages in java to organize your code. Solution Your Java program might the following Classes Interfaces Enums Other types There are times when your program might grow larger including th number of java classes used. You might want to organize these source files to that it is easier to maintain and avoid other issues like class name conflicts. Inorder…
How to compare two Byte Arrays in C#?
Are you looking to compare two array of bytes in C#? Below is a sample code snippet that demonstrates how to do it. How to compare two Byte Arrays in C#?
How to allow only numbers in a textbox in C# Windows Application ?
Want to allow the user to enter only numbers or integer values in a textbox in a C# Winforms Application ? . Below is a sample code snippet that demonstrates how to do it . How to allow only numbers in a textbox in C# Windows Application ? Assume that the text box name is “actxt” , we can map the Key Press event of…