User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 402,503 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 2,741 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: Programming Forums
Contribute Code
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)
Just a quick look at the way C# writes and reads text files. (View Snippet)
Easy way to showing messageboxes in asp.net using c# (View Snippet)
Though .Net classes are vast and versatile at time you will have to resort to Win32 API calls for accomplishing certain tasks. The following code shows a simple example of invoking a Win32 api. The best way to use Win32 apis is to encapsulate it in a class module. The namespace for COM... (View Snippet)
Use regular expressions, regex, to create an efficient textbox that only takes in digits as input. (View Snippet)
This function will take a string and convert it into a folder/file friendly name. I use it in conjunction with url rewriting, deriving the filename from the title of an article. (View Snippet)
The following is a simple painting program. It uses Windows Forms and will allow you to draw whatever you want. You can also include code to change the colour or size of the brush via a right click menu by using code such as this: MenuItem mi = new MenuItem("Option"); ... (View Snippet)
This seems to come up every so often, so thought I would add it here so people can have a look if they search the site. Reading and writing to a text file is a very basic thing in C#, most of us have to do it from very early on and several times later. It's not exactly secure (as you can... (View Snippet)
I am afraid, I am starting to like C#, despite the somewhat bloated .Net Framework requirements. Mister Bill's Microsoft is very supportive though. The language has a nice flow compared to GUI programming in C++. Here we are looking at a standard ListBox, add some items, sort them and select... (View Snippet)
Code to empty the windows recycle bin (View Snippet)
Contribute Code
All times are GMT -4. The time now is 5:40 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC