Forum: C# Jul 16th, 2007 |
| Replies: 1 Views: 4,628 Needs to be moved to csharp snippets. |
Forum: C# Jun 9th, 2007 |
| Replies: 9 Views: 20,111 A prime number is ...
any natural number greater than 1 that has the two divisors 1 and itself
(defined in: http://en.wikipedia.org/wiki/Prime_number)
Your algorithm is pretty bad, take a look... |
Forum: C# Apr 19th, 2007 |
| Replies: 2 Views: 9,099 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... |
Forum: C# Apr 19th, 2007 |
| Replies: 4 Views: 4,563 Take a look at the C# Scripting Engine project, it's open source.
http://www.members.optusnet.com.au/~olegshilo/index.html |
Forum: C# Apr 16th, 2007 |
| Replies: 2 Views: 45,776 Just a quick look at the way C# writes and reads text files. |
Forum: C# Apr 11th, 2007 |
| Replies: 0 Views: 5,303 Did you know C# has its own scripting language based on Lisp, here is an example ...
;;; Scripting a 'C#'' GUI with Lsharp, free from www.lsharp.org (http://www.lsharp.org)
(reference... |
Forum: C# Apr 4th, 2007 |
| Replies: 2 Views: 16,269 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... |
Forum: C# Apr 3rd, 2007 |
| Replies: 1 Views: 10,912 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... |
Forum: C# Apr 3rd, 2007 |
| Replies: 1 Views: 9,403 Lardmeister,
very nice advice. I still had VC# 2003 on one of my old machines. You are right, it makes great GUI templates. I will be converting my Python mortgage calculator programs from a... |
Forum: C# Mar 31st, 2007 |
| Replies: 2 Views: 9,173 A real nice example of a C# GUI program. Thanks for the comment on running it simply from the c# compiler csc.exe that seems to come with most Windows installations. |
Forum: C# Mar 31st, 2007 |
| Replies: 2 Views: 3,756 Lardmeister, nice of you to point out the C# programs don't necessarily need Visual C# to run. I can run your code from my ConText general programming IDE, just have to tell it where csc.exe is... |
Forum: C# Nov 28th, 2005 |
| Replies: 7 Views: 2,599 Here is one book I would not recommend:
"C# How To Program" by Deitel
I wasted $85 on this thing. It is uninformative and the index is written by a 4 year old! |
Forum: C# Apr 15th, 2005 |
| Replies: 13 Views: 5,506 I have to admit that VCS.NET 2003 is a very good product. You used to be able to get it from Amazon.com and other places for around $100. As of right now it's pretty well sold out. So the academic... |
Forum: C# Mar 16th, 2005 |
| Replies: 0 Views: 10,096 Remember the Spirograph? It used geared circles to create some rather artistic geometric designs. This program uses triangles to follow in the Spirograph's foot steps. The math is rather simple,... |
Forum: C# Feb 9th, 2005 |
| Replies: 3 Views: 164,037 Is it Mother Date and Father Time? Any way, getting all the different date and time displays working can be imperturbably perplexing at times. You take a look at it in this Windows Console... |
Forum: C# Feb 9th, 2005 |
| Replies: 5 Views: 3,741 This is a blurb from Microsoft, the software is a free download from them. Should give you a clue about the import question. |
Forum: C# Feb 8th, 2005 |
| Replies: 0 Views: 15,091 Many moons ago I wrote a Delphi program that could tell the exact character in a ListBox, as you clicked on it with a mouse. I found a little info on the NET that lets you get at least the item in a... |
Forum: C# Feb 3rd, 2005 |
| Replies: 4 Views: 55,225 Tested it on VC#, which required that the MainForm class be first, so I had to rearrange the order a little. |
Forum: C# Jan 27th, 2005 |
| Replies: 0 Views: 41,130 Shows a basic way to create a form with a wallpaper image on it. Also shows how to add a transparent label to blend in with the wallpaper. Getting the label to be transparent wasn't all that... |
Forum: C# Jan 16th, 2005 |
| Replies: 24 Views: 6,007 I like C# in Windows Applications, and find the flow of the code much easier to follow than that of the corresponding C++ code . Some folks say that C# is a mix of Java and C++. I think of it as... |
Forum: C# Jan 12th, 2005 |
| Replies: 3 Views: 51,138 Sorry, just figured out that DrawEllipse() and the Ellipse() function from the WinApi are not exactly the same. It's corrected now. |
Forum: C# Jan 4th, 2005 |
| Replies: 4 Views: 55,225 Mental block here!
Anders Hejlsberg, the chief designer for C# was also the chief designer for Borland's Delphi! Correct me if in error! No wonder the many similarities. |
Forum: C# Jan 4th, 2005 |
| Replies: 3 Views: 38,254 Sorry, finally got it right
4 + 14*16 = 228 |
Forum: C# Jan 2nd, 2005 |
| Replies: 4 Views: 78,524 Just a note: What you get from SharpDevelop is actually the IDE written in C# that uses the compiler from the .NET Framework Version 1.1 Redistributable Package called dotnetfx.exe from Microsoft. ... |
Forum: C# Dec 30th, 2004 |
| Replies: 3 Views: 38,254 This short piece of code shows you how to display text in color in a C# windows console program. The corresponding WIN32 API functions are in the kernel32.dll and are imported and declared external.... |
Forum: C# Dec 28th, 2004 |
| Replies: 4 Views: 55,225 Approaching C# from C, C++ and Delphi is plain old fun. I like the fact that your code isn't smeared all over your disk in a zillion little files, what you see here is all you need to create this... |
Forum: C# Dec 28th, 2004 |
| Replies: 4 Views: 55,225 A small Windows Application to show you how to play a wave (.wav) sound file. I am using the C# IDE from SharpDevelop and the runtime dotnetfx 1.1 from Microsoft, both free downloads. This forms a... |
Forum: C# Dec 20th, 2004 |
| Replies: 4 Views: 78,524 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... |
Forum: C# Dec 20th, 2004 |
| Replies: 3 Views: 51,138 Sooner or later a Csharp snippet had to appear. This one builds a form containing a set of buttons. A bitmap drawing area is used to draw a series of circles with random color, radius and center... |