Tag: How to
Python Program to display "Hello, World!"
Problem Write a program in Python to display “Hello, World!” on the screen. Python Program to display “Hello, World!” in Console Window. This is a simple Python program that displays “Hello, World!” on the console window. Output Hello, World! The above Python program uses the print() function to display the Hello,World! string to the screen. Note that the strings are enclosed inside the single quotes…
How to Get the Height and Width of the Page on changing orientation in Windows Phone?
Sometimes, you might want to determine the Height and Width of the Page in a Windows Phone app in order to adjust the screen and the UI elements in the Orientation changed event. The actual size of the page will not be modified until the OnOrientationChanged event is called and hence it is necessary to use the Dispatcher which lets you get the current height…
How to Use the Null Coalescing Operator (??) in C# ?
There are times when you simply want to check if the value is null and perform some steps based on the condition . The Null Coalescing Operator (??) can help you achieve this. How to Use the Null Coalescing Operator (??) in C# ? Below is a sample code that uses Null Coalescing Operator (??) in C# to find if the vaklue is null ….
How to get the total number of items in a Enum in C# ?
If you want to get the total number of items that is defined in an enum using C# , you can use the Enum.GetNames static method combined with the Length property. How to get the total number of items in a Enum in C# ? Here’s a code sample demonstrating how to do it. This would display 3 in the console.
Ruby Program to display "Hello, World!"
Problem Write a program in Ruby to display “Hello, World!”. Ruby Program to display “Hello, World!” This is a simple Ruby program that displays “Hello, World!”. Output
How to Make Single Instance Application for VB.NET Application in Visual Studio 2012?
When developing a Windows Application in VB.NET, there are times when you want to make your application as single instance application. You can do that easily with just few steps in your VB.NET project. How to Make Single Instance Application for VB.NET Application in Visual Studio 2012? Launch Visual Studio 2012 and Open your VB.NET Windows Application. Right Click on the project in the Visual…
Sending SMS from a Windows Phone 8.1 App
Do you want to send SMS from your Windows Phone 8.1 App ? . You can use the ChatMessage class in Windows Runtime to do it. Sending SMS from a Windows Phone 8.1 App Here’s a code that demonstrates how to send SMS from a Windows Phone 8.1 App .
How to get the Number of Elements in an MultiDimensional Array in C# ?
In one of the previous articles , we demonstrated the usage of the Length property of the array in C# to get the number of elements in it. In this post , lets have a look at getting the number of elements in the multi-dimentional array in C#. How to get the Number of Elements in an MultiDimensional Array in C# ? If you wanted…
How to Declare and Define an double data type variable in F# ?
How to Declare and Define an double data type variable in F# ?
Commenting Code in PowerShell
This short article will explain in simple steps on how to comment the code in PowerShell. How to Comment Code in PowerShell ? You can use the # symbol to provide a comment in PowerShell. The newer version of PowerShell provides additional options for commenting with the help of <# #> block . This block can be used generally for the help comments. Visit PowerShell…
Deleting all the hidden rows and columns in the active worksheet using VBA
Do you want to delete all the hidden rows and columns in the active worksheet in Microsoft Excel using VBA ?. Here’s the code snippet that helps you to do it. How to delete all the hidden rows and columns in Active Worksheet using VBA in Microsoft Excel ?
How to Group Digits of a Number for Formatting in C# ?
If you want to group the digits of a number for formatting to display in C# , one could use the “N” formatting option . Below is a code snippet demonstrating how to use it. How to Group Digits of a Number for Formatting in C# ?