Results 1 to 4 of 4

Thread: How to do reference in a console application???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70

    How to do reference in a console application???

    Hi,

    How to do reference in console application. I am not using IDE. Can I Still use the GDI. I was including using System.Windows.Forms.
    But it says it needs to be referenced. I am new to C# programming world so I need ur help guyz.

    Thanx a lot

    Here is my application
    VB Code:
    1. using System;
    2. using System.Drawing;
    3. using System.Collections;
    4. using System.Window.Forms;
    5. using System.Data;
    6.  
    7. public class loops : System.Windows.Forms.Form{
    8.     public static void Main()
    9.     {
    10.         MessageBox.Show(output,"Hello", MessageButtons.OK, MessageBoxIcon.Information);
    11.     }
    12. }

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Yeah, but when you compile your code, you'll need to set a reference to the assembly using one of the switches (can't rember the correct switch off the top of my head).

  3. #3
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Here's a helpful link

    C# Compiler Options
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70
    Thanx a lot guyz....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width