Tag: How to
How to Launch the Cellular Settings App using URI Scheme in Windows Phone 8?
Below is a sample code snippet demonstrating how launch the Cellular Settings app via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. How to Launch the Cellular Settings App using URI Scheme in Windows Phone 8?
How to Get the Computer Name using VB.NET?
Below is a sample code snippet that demonstrates how to get the current computer name using VB.NET? How to Get the Computer Name using VB.NET?
F# Program to display "Hello, World!"
Problem Write a program in F# to display “Hello, World!” on the screen. F# Program to display “Hello, World!” in Console Window. This is a simple F# program that displays “Hello, World!” on the console window. Output Hello, World!
How to Enable JavaScript in Windows Phone 8 WebBrowser Control?
If you are using the WebBrowser control in your Windows Phone project, there are times when you want to enable JavaScript in it to achieve various things. How to Enable JavaScript in Windows Phone 8 WebBrowser Control? This is pretty simple. The WebBrowser Control in Windows Phone SDK has a property IsScriptEnabled, Just set this property to true. <phone:WebBrowser x:Name=”BrowserControl1″ IsScriptEnabled=”True” /> You are done….
How to generate a random number in C# and .NET?
If you want to generate a random number in your .NET application using C#, you can use the random class to generate one. How to generate a random number in C# and .NET? Below is a sample code snippet on how to generate random numbers in C#. Try to keep the instance of the Random class and reuse it Incase you are generating more than…
How to add Items to ListBox control in Xaml ?
You can add the Items to a List Box control in Xaml using the Items property . The Items property is an ItemCollection which implements IList. How to add Items to ListBox control in Xaml ? Below is a sample code snippet demonstrating the adding of the Items to ListBox in Xaml of a Windows 10 UWP App. The above showed how to add items…
How to get all the column names of a table in SQL Server ?
If you have a scenario where you need to get all the column names of a table in SQL Server , you can query the database’s INFORMATION_SCHEMA.Columns table by specifying the table name. How to get all the column names of a table in SQL Server ? Here’s a query to demonstrate how to achieve this. This would display all the columns of the table…
How to Create a Text File within the Application in Windows Phone 8.1 ?
Below is a sample code that lets you to create a text file within the application local folder in Windows Phone 8.1. How to Create a Text File within the Application in Windows Phone 8.1 ?
How to Write a string to a Text File in C# ?
Below is a sample code snippet that demonstrates how to write a string to a text file in C# . How to Write a string to a Text File in C# ?
How to Use Split Function in VB.NET?
The Split function in VB.NET (Visual Basic.NET) lets the developers to split the string based on the delimiter and return one – dimensional array that contains the substring. How to Use Split Function in VB.NET? Below is a sample code snippet that demonstrates how to use the Split function in VB.NET. Output of Split Function
How to Convert a string in JSON.NET to XML in C# ?
You can use the JsonConvert.DeserializeXmlNode method of JSON.NET to convert from the json string to Xmldocument as shown below. How to Convert a string in JSON.NET to XML in C# ?
How to find the duplicate records on certain fields in SQL Server ?
You can use the group by and having clause in your T-SQL query to find out the duplicate records from the table. How to find the duplicate records on certain fields in SQL Server ? Lets have a look at the query that uses the group by and having clause on the Person table in the AdventureWorks database. The firstname column is used as the…