View Single Post
  #1 (permalink)  
Old 08-06-2007, 12:57 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon13 Help with C# GUI and ActionListener

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 senderEventArgs e)
        {

        }

        
private void SendButton(object senderEventArgs e)
        {
           
        }

        
private void ServerTextField(object senderEventArgs 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

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote