•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 373,564 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,820 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
•
•
•
•
•
•
•
•
SelectTopFrom method gets the top rows from dataview or datatable (View Snippet)
by using the code below you can bind your enums to your dropdown lists
Serkan Şendur (View Snippet)
A short C# code snippet to get the US Naval Observatory Master Clock Time from:
http://tycho.usno.navy.mil/cgi-bin/timer.pl
The snippet displays the raw HTML code with the time infomation and then extracts one specific US time zone. (View Snippet)
Just a quick look at the way C# writes and reads text files. (View Snippet)
A closer look at some string methods, just having a learning experience and fun with this C# class. This program uses a simple MessageBox to display the results. (View Snippet)
I could not resist to put this little utility into a GUI dress. The code shows you that the C# StringBuilder is nicely suited to create the binary string. Also included is a check to assure that the input is an all digit numeric string. (View Snippet)
A quick look at finding a substring in a string and giving the position of the substring, if found. The string method IndexOf() has a number of options to explore. (View Snippet)
C# has two types of strings, one is immutable and the other, the class StringBuilder, is mutable (dynamic). I just wanted to hang a short code snippet out there to show you some of the typical operations. (View Snippet)
I followed Lardmeister's smart hints about creating templates with VC# 2003 and using SnippetCompiler.exe to write and test the rest of the program. It also allows you to build the executable (only 7k in size). The algorithm is from one of my Python snippets I wrote a long time ago. It only took... (View Snippet)
Here I made a GUI template with a Form, Button and Listbox using MS VCS 2003. MS VCS 2003 still produces a single file usable as a templet, whereas MS VCS 2005 smears files all over the map. Must be some marketing persons idea of market dominance.
I took the source file, removed all the usual... (View Snippet)