Login Password

snippets

Last 10 category snippets

0
favorites
0
comments
Avatar Image

MD5 Encryption (Method Extension)

This snippet will allow you to simply branch any string type within the same namepsace with the static class's name to return a web-safe (familiar) MD5 string. ...
posted by Anthony Steiner 2 years, 5 months ago
0
favorites
1
comment
Avatar Image

Send Mail

Code to send a simple mail. ...
posted by EdwinCruces 2 years, 7 months ago
0
favorites
1
comment
Avatar Image

Generic Database Handling with .NET

Sometimes I like to factorize code, especially code that perform database operations. That's why I wrote this generic ExecuteCommand that could work with either a OleDB, SQLClient, Oracle or any ADO.NET providers. The ExecuteReader and ExecuteScalar functions are provided to show an example of specific use of ExecuteCommand using OleDb ADO.NET provider. ...
posted by ControlBreak 2 years, 10 months ago
0
favorites
1
comment
Avatar Image

GetPagedQuery

Cette fonction retourne une requête SQL agencée avec des TOP et des NOT IN destinée à renvoyer une page parmi un jeu limité de résultat, pour les vieux moteurs SQL ne disposant pas d'instructions puissantes. Utile pour extraire rapidement 100 records à partir du 400ème, dans une table qui en contient des millions. Par exemple : GetPagedQuery("MyTable", "MyPrimaryKey", "MyOrderField", 400, 100); Il y'a mieux de nos jours... Mais ça m'a bien servi à l'époque de MS SQL 2000. ...
posted by ControlBreak 2 years, 10 months ago
0
favorites
3
comments
Avatar Image

C# Text to Speech (and Speech to Text) in a few lines of code

this is always fun to play with... create a new form, 2 buttons (btnSpeak and btnListen) and a text box (textBox1)... add the following code and start converting Text to Speech and Speech to Text... comes standard with Visual Studio... ...
posted by Conrad Programmer 3 years, 1 month ago
0
favorites
1
comment
Avatar Image

C# Use User Controls for page navigation (instead of MDI)

from the main for (Form1.cs) add a split container, buttons on the left container and panel1 (Dock - Filled) on the right container. Use the buttons to load user controls that act as a form... quick and easy navigation... ...
posted by Conrad Programmer 3 years, 1 month ago
0
favorites
1
comment
Avatar Image

C# Sort ListView Contents

A class to sort contents of a specified column within a ListView control. Example on how to use it included. ...
posted by Nate Shoffner 3 years, 1 month ago
0
favorites
1
comment
Avatar Image

C# Fill ComboBox from Database table

This simple function loads all the records from a database table into a ComboBox ...
posted by Conrad Programmer 3 years, 1 month ago
0
favorites
2
comments
Avatar Image

.Net

Taskbar notification in C#. ...
posted by santosh kumar 3 years, 2 months ago
bettercodes.org is released as free software without warranties under GNU Affero GPL v3