Click here to Skip to main content
15,899,634 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: very large data app Pin
Paul Conrad18-Jul-08 4:22
professionalPaul Conrad18-Jul-08 4:22 
GeneralRe: very large data app Pin
led mike18-Jul-08 5:33
led mike18-Jul-08 5:33 
GeneralRe: very large data app Pin
Paul Conrad18-Jul-08 5:39
professionalPaul Conrad18-Jul-08 5:39 
GeneralRe: very large data app Pin
led mike18-Jul-08 5:31
led mike18-Jul-08 5:31 
GeneralRe: very large data app Pin
bfis10813718-Jul-08 0:18
bfis10813718-Jul-08 0:18 
GeneralRe: very large data app Pin
darkelv18-Jul-08 4:53
darkelv18-Jul-08 4:53 
GeneralRe: very large data app Pin
bfis10813718-Jul-08 5:26
bfis10813718-Jul-08 5:26 
GeneralRe: very large data app Pin
Luc Pattyn18-Jul-08 6:17
sitebuilderLuc Pattyn18-Jul-08 6:17 
Hi,

if a database-driven or table-driven approach seems too complex, I suggest you do the following:
- create a separate Form for each question, any way you choose (say Visual Designer);
give them all the same Size, and probably no border at all, no Close/Minimize/Maximize/SystemBox.
- create a main Form, which holds:
- a Panel (say questionPanel) with the same size as your question Forms;
- a "Previous" and a "Next" Button;
- whatever else you deem necessary.
- provide a Form variable, lets call it currentQuestionForm, initially null.

Now to show a question, this is what your code should do:
- remove the previous question (i.e. undo what follows for the old question); this includes:
- assuming currentQuestionForm is not null:
- removing it from the questionPanel.Controls collection
- set currentQuestionForm=null;
- add the new question by showing newQyestionForm:
- set currentQuestionForm=newQyestionForm
- setting its currentQuestionForm.TopLevel property false
- setting its Location to (0,0)
- adding it to the questionPanel.Controls collection

This way, your question forms live independently, and never get loaded at the same time, keeping
performance OK.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


GeneralRe: very large data app Pin
darkelv18-Jul-08 7:21
darkelv18-Jul-08 7:21 
GeneralRe: very large data app Pin
bfis10813719-Jul-08 8:23
bfis10813719-Jul-08 8:23 
GeneralRe: very large data app Pin
Luc Pattyn19-Jul-08 8:55
sitebuilderLuc Pattyn19-Jul-08 8:55 
GeneralRe: very large data app Pin
bfis10813719-Jul-08 8:44
bfis10813719-Jul-08 8:44 
GeneralRe: very large data app Pin
Luc Pattyn19-Jul-08 9:01
sitebuilderLuc Pattyn19-Jul-08 9:01 
QuestionThe look and feel of the GUI in the application changes when executing is from an MSI file created by Windows Install Pin
Katalin2117-Jul-08 5:09
Katalin2117-Jul-08 5:09 
AnswerRe: The look and feel of the GUI in the application changes when executing is from an MSI file created by Windows Install Pin
led mike17-Jul-08 6:45
led mike17-Jul-08 6:45 
GeneralRe: The look and feel of the GUI in the application changes when executing is from an MSI file created by Windows Install Pin
Katalin2117-Jul-08 7:00
Katalin2117-Jul-08 7:00 
GeneralRe: The look and feel of the GUI in the application changes when executing is from an MSI file created by Windows Install Pin
led mike17-Jul-08 7:31
led mike17-Jul-08 7:31 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
Katalin2117-Jul-08 8:55
Katalin2117-Jul-08 8:55 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
led mike17-Jul-08 10:48
led mike17-Jul-08 10:48 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
Katalin2118-Jul-08 0:49
Katalin2118-Jul-08 0:49 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
led mike18-Jul-08 6:05
led mike18-Jul-08 6:05 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
Katalin2121-Jul-08 22:36
Katalin2121-Jul-08 22:36 
GeneralRe: The look and feel of the GUI in the application changes when executing from an MSI file created by Windows Install Pin
led mike23-Jul-08 5:42
led mike23-Jul-08 5:42 
Questionshow loading message Pin
SamRST17-Jul-08 4:04
SamRST17-Jul-08 4:04 
AnswerRe: show loading message Pin
Thomas Stockwell17-Jul-08 4:41
professionalThomas Stockwell17-Jul-08 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.