Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

k thanx,

Can i hit you with some more questions?

i'm goint to port some vb.net program to c#(atleast i hope)

1. How do i make it start from somting simular to sub main? and then load a form or a trayicon?

2.I presume textstreams work the same?

3.Is controling the gui the smae like cmd1.hide()? but with a ending ;??

 

Thanx agen

  • *Experts*
Posted

The language concepts are almost all the same. And all C# programs start in sub main -- notice that in your main form, you probably have something like this:

 

static void Main() {
 Application.Run(new Form1());
}

You can put anything you want in there before the application really starts.

  • *Experts*
Posted
Many of the common namespaces are imported by default, but anything you're going to be using in your class alot, import it. You don't *have* to import anything, it just saves typing and readability.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...