Abundant Code

  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • F#
  • JavaScript
  • ASP.NET
  • C
  • Java
  • SQL Server
  • Assembly Lang
Home » C#

How to get last four characters from a string in C#?

November 27, 2020 by AbundantCode Leave a Comment

This post will provide a simple tip showing how you can get the last 4 characters from a string in C#. How to get last four characters from a string in C#? Assume that you have a string that contains the value “CodersEditor.com” and you wish to get .com from the string and display it. […]

Filed Under: C# Tagged With: C#, string

How to Skip Iteration of a foreach loop in C# ?

November 26, 2020 by AbundantCode Leave a Comment

When using C# programming language , there are times when you might want to skip over the iteration based on some condition and jump over to the next iteration. How to Skip Iteration of a foreach loop in C# ? continue keyword comes to your rescue for this use case. When you want to skip […]

Filed Under: C# Tagged With: C#, loop

How to Allow only numeric input in a Textbox in WPF ?

November 21, 2020 by AbundantCode Leave a Comment

If you are looking at ways to accept only digits and decimal points (numeric input) for a textbox in WPF , you could do it by following the below steps. How to Allow only numeric input in a Textbox in WPF ? Add the Event PreviewTextInput for the Textbox in the XAML. In the Xaml.cs […]

Filed Under: XAML Tagged With: C#, WPF, XAML

How to Calculate MD5 checksum for a file in C# ?

November 21, 2020 by AbundantCode Leave a Comment

There are times when you want to calculate MD5 checksum for a file in C# and you can easily do that using System.Security.Cryptography.MD5 You can use the ComputeHash method of the MD5 instance by passing the stream. You can later it to Hex using the BitConverter so that you can represent it as string for […]

Filed Under: C# Tagged With: C#, MD5

How to Check Status of Current Thread in C# ?

August 21, 2020 by AbundantCode Leave a Comment

This blog post will provide a simple tip on how you can find the status of the current thread in C# program. How to Check Status of Current Thread in C# ? The isAlive property can be used to check the current thread status in C#. First , get the instance of the current thread […]

Filed Under: C# Tagged With: C#, Threads

C Program to convert lower case string to upper case

September 13, 2017 by AbundantCode Leave a Comment

Problem Statement Write a program in C to convert the given string from lower case to upper case. How to convert a lower case string to upper case string in C ?

Filed Under: C Tagged With: C#, Lab programs

How to decode a base64 string in C#?

March 11, 2017 by AbundantCode Leave a Comment

Here’s a sample code snippet demonstrating how you can easily decode a base64 encoded string in C#. How to decode a base64 string in C#?

Filed Under: C# Tagged With: base64, C#, Decode, How to

How to disable editing of items in a combo box in c#?

March 11, 2017 by AbundantCode Leave a Comment

When working in Win forms using C# and especially when you use the combo box , you would have noticed that by default the user can edit the values inside during the runtime. How to disable editing of items in a combo box in c# (win forms) ? Assuming that the combobox name is combobox1 […]

Filed Under: C# Tagged With: C#, How to, Winforms

C# Program to find the ASCII Value of a Character

March 5, 2017 by AbundantCode Leave a Comment

Problem Write a program in Visual C# to find the ASCII value of the input character. How to find the ASCII value of a character in C# ? Output Abundantcode.com coding sample Enter a character : A 65

Filed Under: C# Tagged With: C#, examples, tutorials

How to download a file from a URL using C#?

February 16, 2017 by AbundantCode Leave a Comment

You can use the WebClient class in C# to download a file. How to download a file from a URL using C#? Here’s a code snippet demonstrating how you can download a file using the instance of the WebClient class in C#.

Filed Under: C# Tagged With: C#, download, WebClient

  • 1
  • 2
  • 3
  • …
  • 29
  • Next Page »
RSS
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval

Categories

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML

Blog Stats

  • 8,732,667 hits

Archives

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • System Software - SIC/XE Program to clear 20 byte string to empty
  • System Software - SIC program to set 100 elements of array to Zero
  • System Software – SIC/XE Program to arrange an array of 100 words in ascending order
  • C Program to display half-pyramid using alphabets
  • Top 10 Open source Full Text Search libraries
  • How to compare two Byte Arrays in C#?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • How to Extract number from a string using C# ?

Categories

  • Android
  • Angular 2
  • ASP.NET
  • Assembly Language
  • C
  • C#
  • C++
  • Elastic Search
  • Entity Framework
  • Excel
  • F#
  • HTML
  • Interview Questions
  • Java
  • JavaScript
  • jQuery
  • Microsoft Office
  • MySQL
  • NETWORK
  • News
  • PHP
  • popular
  • PowerShell
  • Python
  • Ruby
  • SharePoint
  • SQL Server
  • SQL Server
  • Unix
  • VB.NET
  • Visual Studio
  • WebAPI
  • Windows
  • Windows Azure
  • Windows Forms
  • XAML

Top Posts & Pages

  • C Program to Multiply Two Matrices Using Multi-dimensional Arrays
  • How to open display settings from command line in Windows 10 ?
  • System Software - SIC/XE Program to clear 20 byte string to empty
  • System Software - SIC program to set 100 elements of array to Zero
  • System Software – SIC/XE Program to arrange an array of 100 words in ascending order
  • C Program to display half-pyramid using alphabets
  • Top 10 Open source Full Text Search libraries
  • How to compare two Byte Arrays in C#?
  • How to Convert a Stream to Byte Array in C# 4.0 ?
  • How to Extract number from a string using C# ?

Recent Posts

  • Collapsible links for subcategories in Docusaurus Sidebar
  • Python Program to Print Fibonacci Series
  • Python Program to Generate Multiplication Table
  • Python Program to Find the Factorial of a Number
  • Python Program to Print Prime Numbers in a Given Interval
  • Python Program to Check Prime Number
  • Python Program to Find the Largest Value Among Three Numbers
  • Python Program to Check If a Given Year is Leap Year
  • Python Program to Check if a Number is Odd or Even
  • Python Program to Check if a Number is Positive, Negative or Zero

Tags

.NET App Array ASP.NET ASP.NET MVC Assembly Language C# C# programs c lab programs Collection convert C program csharp database Example F# guide How to How to in Java integer Java Javascript Lab programs Lambda LINQ List Python lab programs Python programs SIC/XE SQL Server string tips tricks tutorial tutorials UWP visual studio 2015 Windows Windows 8 Windows 10 Windows Phone Windows Phone 8 Windows Phone 8.1 wp8 XAML