473,320 Members | 1,978 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,320 software developers and data experts.

Bear with me!

In C# I can easily produce a dialog box to amass a slew of input data from
the user but how should I convey this data to my Application? Should I
declare it as static data in the Form1 class, even though it has nothing to
do with Form1, and try to access it from code elsewhere, or should I create
a structure argument with everything in it and pass it around, or what?

Ray Reeves
Feb 16 '07 #1
1 1308
1. Design the classes of your application. Some of these will have member
data that originate from the dialog.

2. Have your Form1 invoke some constructor on these classes to make
instance(s) using the data retrieved via the dialog.

3. Then the Form1 should invoke member function(s) on each instance to
continue your application logic.

"rayreeves re****@verizon.net>" <ray<mondwrote in message
news:IkpBh.371$SR.284@trndny06...
In C# I can easily produce a dialog box to amass a slew of input data from
the user but how should I convey this data to my Application? Should I
declare it as static data in the Form1 class, even though it has nothing
to do with Form1, and try to access it from code elsewhere, or should I
create a structure argument with everything in it and pass it around, or
what?

Ray Reeves


Feb 16 '07 #2

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

Similar topics

2
by: Enric | last post by:
Dear gurus, I am just a .Net newbie. I would like to install .Net in my workstation.In terms of space no problem at all or I don't think so: I have got 11 gb free. Well, my fear is easy to...
24
by: invitro81 | last post by:
Hello I've recently learnt python and I do love it! I congratulate all those geeks who produce this nice language; well, because I could be called a nearby newbee I've decided to improve my...
5
by: ChuckB | last post by:
Ok, heres the code i've come up with #include <iostream> using namespace std; bool bear (int); void main( ) { bear(250); // is true bear(42); // is true
2
by: squirrelrancher | last post by:
I have what seems to me to be a very simple question. 1) how do i successfully email a MS Access file so that it can be used and viewed from another location. I have tried to accomplish it...
2
by: ChuckB | last post by:
Ok, I'm working on this program to do recursive backtracking, however it's not working for all cases. Any help would be apprietiated. (all 4 should be true, but 168 is coming up false) Heres the...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
0
by: blond bear gay | last post by:
<a href='http://quadvision.com/img/doors/adult-toys/1048575.html#Sex and erotic'>Sex and erotic</aczrzsr, ltbx, wuyiont. Gyv <a href='http://quadvision.com/img/doors/adult-toys/1048575.html#sex and...
6
by: desertavataraz | last post by:
This is Visual Basic 2008: I have an application where I have the main textbox on the main form, and the search window on a seperate form, and whenever someone clicks the mouse in the main forms...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.