Organize Code

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
 
C

Cor Ligthert [MVP]

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
 
I

Izzy

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top