Welcome To Snipplr


Everyone's Recent C# Snippets



« Prev 1 2 3 4 5 ... 16
  1. FAV

    [c#] [directory] compter les dossiers et les sous-dossiers d'un répertoire

    count the folders and subfolders of a directory
    C# 50 views posted 6 months ago by martinbrait
  2. FAV

    For loop using foreach on a string value

    Using foreach to loop over each character letter in a string. Microsoft Official Reference: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/foreach-in Explanations from other websites: https://www.dotnetperls.com/loop-...
    C# 18 views posted 2 years ago by clinaq
  3. FAV

    C# - Convert decimal value of integer type to binary value of string type

    Microsoft Official Documentation: https://msdn.microsoft.com/en-us/library/8s62fh68(v=vs.110).aspx
    C# 29 views posted 2 years ago by clinaq
  4. FAV

    Convert object array TO or FROM CSV text

    The Export function will convert an array of objects into a single CSV string. The Import function will read from a TextReader that has CSV data and convert one data row to an array of strings. Each time this is called, it will convert another data...
    C# 12 views posted 3 years ago by danh955
  5. FAV

    How to Set Line Spacing of a Paragraph in an Excel Shape or Textbox inside .NET Apps

    This technical tip shows how to Set Line Spacing of the Paragraph in a Shape or Textbox in .NET applications. You can set the line space of the paragraph, its space before and space after using the TextParagraph.LineSpace, TextParagraph.SpaceBefore a...
    C# 26 views posted 3 years ago by sherazam
  6. FAV

    How to Add Rectangle or Line Object to An Existing PDF File using .NET

    This technical tip shows how .NET developers can add line object to an Existing PDF File inside their .NET applications. Aspose.Pdf for .NET supports the feature to add graph objects (for example graph, line, rectangle etc.) to PDF documents. You als...
    C# 19 views posted 3 years ago by sherazam
  7. FAV

    How to Render an Image of 3D Model from the Camera inside .NET Application

    This Technical tip explains how .NET developers can render an image of 3D model from the camera inside their .NET applications. Using Aspose.3D for .NET, developers can render an image to view a realistic image of 3D model, with or without the enhanc...
    C# 16 views posted 3 years ago by sherazam
  8. FAV

    How to Crop EMF Image using Shifts or Rectangle Approaches in .NET Applications

    This technical tip explains how .NET developers can Crop an EMF Image inside their .NET applications. Image cropping usually refers to the removal of the outer parts of an image to help improve the framing. Cropping may also be used to cut out some p...
    C# 14 views posted 3 years ago by sherazam
  9. FAV

    How to Convert PDF Pages to TIFF Image inside .NET Applications

    This technical tip shows how to convert PDF pages to TIFF image inside .NET Applications. The TiffDevice class allows you to convert PDF pages to TIFF images. This class provides a method named Process which allows you to convert all the pages in a...
    C# 17 views posted 3 years ago by sherazam
  10. FAV

    How to Copy Message from One Mailbox Folder to Another in .NET Apps

    This technical tip explains how .NET developers can Copy Message from one Mailbox folder to another. Aspose.Email API provides the capability to copy message from one mailbox folder to another. It allows copying a single as well as multiple messages...
    C# 11 views posted 3 years ago by sherazam
  11. FAV

    Clean metadata from documents created by a particular author

    This source code uses public classes and interfaces exposed by GroupDocs.Metadata for .NET to clean metadata from the documents created by a particular author in some directory. Steps include: 1) Scan all documents from an author in a directory (i...
    C# 12 views posted 3 years ago by muhammadsabir
  12. FAV

    How to Retrieve Email Messages from Server with Paging Support inside .NET Apps

    This technical tip explains how to .NET developers can list email messages with paging support inside their .NET Applications. In scenarios, where the email server contains a large number of messages in mailbox, it is often desired to list or retriev...
    C# 13 views posted 3 years ago by sherazam
  13. FAV

    Cognex Vpro Image Record

    Simple record that the content is a Image.
    C# 19 views posted 4 years ago by gofast505
  14. FAV

    Cognex Vpro Save Image

    Simple script to save Cognex Image using ImageFile.
    C# 19 views posted 4 years ago by gofast505
  15. FAV

    GPS MODEM CONFIG.

    Configure program for CalAmp lmu-800 and skypatrol nitro gps avl , (works with every device who support AT Command)
    C# 10 views posted 4 years ago by hidroxido
  16. FAV

    How to draw and clear a border around a cell or range of cells from C#

    remove border in excel from C#
    C# 26 views posted 4 years ago by billi8324
  17. FAV

    C# motion detection source code: How to achieve tripwire with a USB webcam

    Tripwire is a special part of motion detection that can be used to monitor and alert on specific changes. More specifically: tripwire means the detection of intrusion. This code snippet presents how to create a C# software by using prewritten comp...
    C# 17 views posted 4 years ago by chewie-wookiee
  18. FAV

    How to achieve auto answer for SIP telephony in C#

    I had a go at softphone development some months ago. It isn’t secret that I want to build a powerful IVR system to make the current call centers much more effective. Yes, there are many similar software available on the market for this purpose, but...
    C# 12 views posted 4 years ago by sacha-manji
  19. FAV

    How to achieve auto answer for SIP telephony in C#

    I had a go at softphone development some months ago. It isn’t secret that I want to build a powerful IVR system to make the current call centers much more effective. Yes, there are many similar software available on the market for this purpose, but...
    C# 13 views posted 4 years ago by sacha-manji
  20. FAV

    How to implement conference calling for a SIP softphone in C#?

    A conference call is a meeting, conducted over the phone using audio, between two or more people and usually for the purposes of discussing a particular topic. In my former snippets I dealt with text-to-speech and speech-to-text functionalities. So t...
    C# 16 views posted 4 years ago by warnerBro19
  21. FAV

    How to add text-to-speech and speech-to-text features to your SIP software by using Microsoft Speech Platform in C#?

    In my previous snippet I have written about converting text to speech using C#. This code snippet can be used not just for allowing your computer to read txt aloud, but also for speech recognition. To implement this functionality I used Microsoft Sp...
    C# 19 views posted 4 years ago by warnerBro19
  22. FAV

    How to implement text-to-speech during a SIP voice call in C#?

    I have heard about this solution on the Facebook, and I thought it is worth to share my source code to help other developers interested in converting text to speech using C#. Text-to-speech refers to the ability of computers to read txt aloud. This f...
    C# saved by 16 people 13 views posted 5 years ago by warnerBro19
  23. FAV

    (C# tutorial) How to create edge detection function

    I am really interested in Computer Vision technology, so I started to dig deeper in this topic. This is how I found the code below for edge detection, a method belonging to object detection. If you are interested in implementing edge detection in C#...
    C# 14 views posted 5 years ago by DaniBarros
  24. FAV

    How to implement corner detection (C#)

    You can find the full source code for corner detection here. I found this solution on www.camera-sdk.com and it worked for me fine. I created a Visual C# WPF application in Visual Studio, and added two .dll files (VOIPSDK.dll and NVA.dll) to the refe...
    C# 15 views posted 5 years ago by MahendraGadhavi
  25. FAV

    How to capture frames from a camera in C#

    If you wish to make your home, office or warehouse more secure, taking frame captures can be a very useful solution for you. And I can tell you this because I’ve already implemented this function at my office. Now I am sharing the prewritten source...
    C# 16 views posted 5 years ago by AdrianVasilyev
  26. FAV

    IP Address (ipv6) Lookup in Bulk Using C# and MySQL Database

    Use the code below to lookup IP address in bulk using C-Sharp programming languages and IP2Location MySQL database. In this tutorial, we use the IP2Location LITE database to lookup country of origin from the visitor's IP address. Free databases are a...
    C# 17 views posted 5 years ago by Hexahow
  27. FAV

    How to make SIP video calls in C#

    While searching on the Internet on how to make SIP video calls using C#, I recognised that there aren’t any brief and straightforward tutorial in this topic. I found multi-page articles (sorry, but some of them are full of bullsh*t) and neverending...
    C# 20 views posted 5 years ago by sacha-manji
  28. FAV

    Bookmark editing (filter links)

    This is a simple example to quickly and easily produce a set of links for a given site in your bookmarks from Firefox..
    C# 15 views posted 5 years ago by xXxPizzaBreakfastxXx
  29. FAV

    Convert IPv6 Address to IP numbers (C#)

    Use the code below to convert the IP address of your web visitors and lookup for their geographical location, e.g. country, state, city, latitude/longitude, ZIPs, timezone and so on. Free database can be downloaded at http://lite.ip2location.com.
    C# 30 views posted 5 years ago by Hexahow
  30. FAV

    C#/C++ Shared enum

    If you are using c++/cli or UnmanagedExports, this is a useful way to share enum int values between c++ and c# code/DLLs without worrying about duplicated code going out of date.
    C# 15 views posted 5 years ago by xXxPizzaBreakfastxXx
« Prev 1 2 3 4 5 ... 16