Convert C# code to Visual Basic,Python and Back.

Some of you .NET programmers may some day find some sample code written in Visual Basic, or C#, but need it in another .NET language. SharpDevelop, a free .NET IDE, has a tool built in that will convert C# into Visual Basic and Python, or Visual Basic into C#, Python and any variation. This video [...]

Will web developers adopt Silverlight without a Linux plug-in?

Will web developers adopt Silverlight without a Linux plug-in?

As many of you may already know Microsoft if trying to edge their way into the embedded Web tools department. With Adobe holding a huge market share on web objects, Microsoft decided to compete with their own product called Silverlight. Unlike Flash, Silverlight delivers a familiar and intuitive development environment similar to Visual Studio and [...]

Implement an RSS reader into your .NET program.

If you’re looking for RSS support in your .NET application head over to RSSdotnet.com and download the latest RSS.NET library. They provide all the source code and API documents you need to add RSS into your program. I haven’t thoroughly reviewed the code but it does work pretty code and seems stable. I’m currently using [...]

3D Terrain movement with DarkGDK and Visual C++ 2008.

Well I’ve been off and reading all about the DarkGSK development environment for Visual C++ 2008. So far I’ve gone through the first four tutorials which cover the basics of the DarkGDK API. It’s amazing how with just a few lines of code you can have a pretty nifty 3D program up and running. I [...]

Using proxy servers in your C# applications.

This code snippet will show you how to use a proxy server in conjunction with the WebClient class. I’m pretty sure the WebClient class automatically uses your IE configuration (correct me if I’m wrong). This is helpful for those that are developing C# in Linux, but are behind an annoying corporate proxy server.

[...]

Uploading a file with .NET and PHP.

Do you need to upload a file to your php web server from a .Net application? I did, and I found that it was actually pretty easy. Basically the upload.php file works that same way as if you were uploading via a php/html form.

How to write a C# TCP/IP client server library.

Below is example code written in C# for a TCP/IP client and server. The TCP server uses what is called a Listener object, which listens for incoming connections. On the client side, the code is written to connect to a specific IP address at which point the server side makes a connection and both [...]

Making a simple ListBox with GTK and Glade3.

Adding a simple ListBox widget in your GTK application is easier than you think. This tutorial will show you how to create ListBox-like functionality in GTK using Glade3. GTK uses the TreeView control as their do-all list control. You can create simple lists, tree-like lists and all sorts of various list views. What is really [...]

Read More »

Glade 3 + GtkBuilder + Anjuta Example.

Today I whipped up a simple GTK application using the Anjuta IDE, Glade 3, and the new GtkBuilder system. As some of you know, Glade 3 and GTK changed things up. First Glade stopped using generated code which required you to use libglade. Now the GTK developers created their own interface interpretor called GtkBuilder. [...]

Read More »

Get Windows Service info in C#.

This code will show you how to search for Windows Services. The ServiceController class handles almost everything service related. You can also check if services are running by checking the service.Status property and you can search for installed services using the sample code below. The services we are talking about are the services that run [...]

Read More »

Visual Basic comes to Linux.

Visual Basic for Linux is here, sort of. In my search for the perfect RAD environment for Linux I came across a project called Gambas. Gambas is a Visual Basic like development environment for Linux which is very much like Microsoft’s drag and drop Visual Basic but it is not a clone. For an Open [...]

Read More »

Add background color to PNG files in C#.

This code snippet will let you force a background color into a PNG file with C#. When working with PNG files in Visual Studio sometimes you’ll run into situations where the background of a PNG shows up as grey or even blue. This is because of the PNG files transparency and Windows can sometimes [...]

Read More »

C#: A multi-threaded UDP server with BackgroundWorker.

The following code shows you how to build a UDP server in C# using the UUdpClient class for the networking and BackgroundWorker class for reporting data back to the application. This particular UDP server class is designed to be used with a Windows Forms or GUI. When using the UDP server you pass a BackgroundWorker [...]

Read More »