Here's my current .cs code:
PHP Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace DChat
{
public partial class DChat : Form
{
public DChat()
{
InitializeComponent();
}
private void ServerTextBox(object sender, EventArgs e)
{
}
private void SendButton(object sender, EventArgs e)
{
}
private void ServerTextField(object sender, EventArgs e)
{
}
public static void main()
{
new DChat();
}
}
}
It seems like much easier to design GUI in C# than Java lol.. well, that's probably I didn't use any software designer for it, but yeah, I'm trying to create a networking application with C#. I'm still not sure what to use to add ActionListener (in java) for C#...
I got this error for my current code:
Error 1 Program 'C:\Documents and Settings\HelloWorld\My Documents\Visual Studio 2005\Projects\DChat\DChat\obj\Debug\DChat.exe' does not contain a static 'Main' method suitable for an entry point DChat