473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Form size - in terms of code

I don't mean to be too wordy but if you will indulge me a moment I need to
get something clear in my mind. I am concerned about the size of my forms.
I am concerned that if I put too much code in them they may run slow. These
are winforms, nothing to do with the net. In the enviroment I came from
(PowerBuilder) if your form got too big because of code, you just shuffled
off some of it into what VS thinks of as a module. I will do the same in VS
if need be but on the other hand, I don't want to create needless work for
myself. For example.

I just devised some code for a form that allows me to lookup information
using a slide out and a TreeView. The code really helps the navigational
issues for this form but, after all the code was written for
AfterSelectEvent, sub routines to find what node you are on, DoubleClick
events, fill this or that events etc. etc., it took up three pages (when
printed). I know already that this particular form is going to be big when
I add additional functionality because it is going to contain numerous tabs
and 1:m tables with a lot of error checking etc.

With the code I just mentioned, I could probably shuffle off about half or
maybe even two thirds of the code into a module. If this will help my
design I will do it but of course it takes more time, especially when you
have to pass various "sender" and "e" arguments etc. The thought occurs to
me that maybe VS doesn't think like my old tool in this respect. Maybe the
size of the form (in terms of the amount of code it contains) is not as big
a deal.

I don't know if I have explained myself well enough for someone to give a
general opinion but if someone would take a stab at it I would appreciate
it. How concerned should I be about form size and passing off code to a
module? This particular form is already at about 260 KB when you look at it
in Windows Explorer and contains about 3500 lines of code when you include
all the Windows form Designer generated code.

Nov 19 '05 #1
4 1908
>Are you saying that you have actually noticed a slow down from having a
large ammount of code in a form?


No, but I wonder if I will given all that I said in my earlier message.

Thanks for your reply.
Nov 19 '05 #2
Nak
> No, but I wonder if I will given all that I said in my earlier message.

If you are not actually experiencing any "slow-down" so to speak then I
wouldn't worry about it. I wouldn't expect it to slow down unless it has
got allot to do, not just allot of code, the IDE might very well slow down,
but that isn't particularly hard for it (Need 512mb for good speed in the
IDE as I have just found out).

Nick.
Nov 19 '05 #3
I have a gig of memory on the machine that I design with. My concern has
more to do with what end users will experience.
"Nak" <a@a.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
No, but I wonder if I will given all that I said in my earlier message.
If you are not actually experiencing any "slow-down" so to speak then I
wouldn't worry about it. I wouldn't expect it to slow down unless it has
got allot to do, not just allot of code, the IDE might very well slow

down, but that isn't particularly hard for it (Need 512mb for good speed in the
IDE as I have just found out).

Nick.

Nov 19 '05 #4
Hello,

"Woody Splawn" <wo***@splawns.com> schrieb:
I have a gig of memory on the machine that I design with. My concern has
more to do with what end users will experience.


Do you use a lot of controls on the form?

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Danny Anderson | last post by:
Hola, PHP folk! I have a php page that contains a self-processing form. The form holds search results. The search terms originally came from the previous page, but the user can repeatedly...
8
by: Franck | last post by:
Hi, I'm having problems with css2/xhtml based form. I didn't find examples to see what can be done, especially textarea. How to define cols="45" rows="4" in css?
8
by: CJack | last post by:
hy, I have an mdi application, i create a child form and I want to know when a button is pressed while that child form is loaded. I have this code: private void frmTestBaby_KeyUp(object sender,...
45
by: charles.lobo | last post by:
Hi, I have recently begun using templates in C++ and have found it to be quite useful. However, hearing stories of code bloat and assorted problems I decided to write a couple of small programs...
16
by: Head In A Pan | last post by:
OK... I am now heading into day 3 of attempting to populate a database through my flash form!! I figure I need some help before I crack! I just can't get it to work at all... I am able to get...
12
deephill
by: deephill | last post by:
hi i need form dependency. Can u check below code? <p>1. Are you married?</p> <p>
9
by: Jensen Somers | last post by:
Hi, Is it possible to change the stack size of a DLL from within the source code? When using threads you can specify the size of the stack you want the thread to use, but since my application...
2
by: ravisuguna | last post by:
Hi, I have a php page which has some checkboxes ,textfields and values.If I select a checkbox ,a particular value will be displayed in a textfield.I have a "go"button in the same page.I want the...
4
by: John Smith | last post by:
One of the rows in a table is twice as high as others. I trace the problem to the following code. If I remove everything between <formand </form>, the row would have a regular height. If I put...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.