Posts Tagged C#

Visual Studio: Visual Studio Project Renamer (Prototype)

CAUTION:This information is outdated. Information about the VisualStudioProjectRenamer can now be found on the info page. The latest releases can be found and downloaded from the download page.
If you ever have tried to rename a project from within Visual Studio, you may have noticed that the renaming process doesn`t really do what you think [...]

Tags: , , , , , , , ,

IronPython: How to install IronPythonStudio

Playing and testing around with IronPython for a while now using a shell I decided to try get an IDE up. The guys over at the IronPython website offer a tool called IronPythonStudio.
IronPython Studio is a free full IDE (Integrated Development Environment) for the Python programming language. It is based on the existing IronPython example [...]

Tags: , , , ,

C# Visual Studio: Change the default icon of your .exe file.

If you want to change the icon of your exe file you have to select your project in your solution:

Right click on the project to bring up the context menu. Now select “Properties”.
In the projects property window select “Application”. There is one entry that says “Icon and manifest”. Right beside the textbox for the Icon [...]

Tags: , , , ,

C# How to place your application into the SystemTray using NotifyIcon.

First of all you need a icon. For starters you can use the Favicon Generator. Just generate a random icon. Its not important how it looks, its just important that you get a icon. You always can replace it with something that is more fancy looking later. I placed the icon in the debug and [...]

Tags: , , , ,

C# AutoStarter Preview 2.0

If you sneaked in the AutoStarter Preview post you may want to check on this update.
The AutoStarter tool now supports profiles :

Access the profiles from the combobox :

Next feature to add is the possibility to launch the programs with parameters. If you would like to test the tool download Autostarter v.1.0. Feedback will be appreciated. [...]

Tags:

AutoStarter version 1.0 Preview

Actually I am working on this AutoStarter application. You can pick your everyday random applications, place them in a “List” and start them all from within a form with just one button click. The Tool is maybe about 20 – 30 % finished but the main functionality is there. The last bits are just some [...]

Tags: ,

C# Class CountLines. Return the amount of lines in a text file

I wrote a class that returns the amount of lines in a text files :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace CountLines
{
class CountLines
{
string filepath;
int i;

[...]

Tags:

C# Application.ExecutablePath;

Problem :
On first run of the program I need to generate a text file dynamically to runtime and the file should go into the install directory of the program.
So I needed to figure out how to get the applications install directory. Since I read and write to that text file a lot, I created [...]

Tags:

C# Delegates and anonymous methods

Here a bit of script to show the difference :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyDelegates
{
//Declare delegate MyDel
//==================================================
public delegate string MyDel(string n);
class Program
{
static void Main(string[] args)
[...]

Tags:

C# The Random Class

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RandomNumbers
{
class Program
{
// RANDOM -> Next, NextDouble, NextBytes
static void Main(string[] args)
{
[...]

Tags:

C# Sort arrays or Array.Sort();

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SortArrays
{
class Program
{
static void Main(string[] args)
{
int[] num = new int[100];
[...]

Tags:

C# Find objects in arrays or Array.BinarySearch();

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FindValueInArrays
{
class Program
{
static void Main(string[] args)
{
int[] num = new int[10];

[...]

Tags: