Organize Code

  • Thread starter Thread starter Daniel N
  • Start date Start date
D

Daniel N

I am new to .net and want to organize my code better. I am writing in vb.net
2003
and the code for my main form is nearing 50-60 pages and would like to
create another file like a class, module or code file that SHARE sub
procedures, and declarations as if it were with the rest of the code (So I
can orginize it in 2 or 3 .vb files).

When I create a new class I can;

Inherits Project.MainForm
 
Daniel,

Why are you throwing repeated messages in these newsgroups.

I have seen a bunch of answers on your question at least in this newsgroup,
where you are telling the same as now. The answers were all quiet different
but a direct answer on your question.

Cor
 
You can use: # Region " Name "
To group code and make it easier to read. I group my code based on the
codes function.

Also you mentioned your new to vb.net, that might also be a reason your
main form's code is 50 or 60 pages. Look through your code and try to
write reusable code.
 
Back
Top