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

Q: Newbe quiz. MDI Forms...

Hi!

Before i am going to write my app, i need to ask two questions.

1. Is the MDI about to dissapear? What style of programing should you apply?

2. Did a little experiment with MDI forms. Created a MDI parent with menus
and all (from the template) Created a child. How can i from the child set
text in the statusPanel at the bottom of the MDI parent from the child?

Regards
Martin

Apr 11 '07 #1
2 1681
Martin,

MDI forms are not going anywhere.

As for updating the status on the MDI parent, you should pass to the
constructor (or pass through some method or property) a class which allows
you to set the text. So, in this case, when creating the children, you
would pass a reference to the status bar (or a class that has a method that
will change the statusbar text for you) to your child class. Your child
class would then store that reference and make a call when it wanted to
update the statusbar.

You could also expose an event on your child class which the parent
would hook up to and then update the status bar on its own when the event is
fired.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Martin Arvidsson, Visual Systems AB" <ma**************@vsab.netwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi!

Before i am going to write my app, i need to ask two questions.

1. Is the MDI about to dissapear? What style of programing should you
apply?

2. Did a little experiment with MDI forms. Created a MDI parent with menus
and all (from the template) Created a child. How can i from the child set
text in the statusPanel at the bottom of the MDI parent from the child?

Regards
Martin

Apr 11 '07 #2
Thanx Nicholas!

/Martin

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comskrev i
meddelandet news:e5**************@TK2MSFTNGP02.phx.gbl...
Martin,

MDI forms are not going anywhere.

As for updating the status on the MDI parent, you should pass to the
constructor (or pass through some method or property) a class which allows
you to set the text. So, in this case, when creating the children, you
would pass a reference to the status bar (or a class that has a method
that will change the statusbar text for you) to your child class. Your
child class would then store that reference and make a call when it wanted
to update the statusbar.

You could also expose an event on your child class which the parent
would hook up to and then update the status bar on its own when the event
is fired.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Martin Arvidsson, Visual Systems AB" <ma**************@vsab.netwrote in
message news:%2****************@TK2MSFTNGP04.phx.gbl...
>Hi!

Before i am going to write my app, i need to ask two questions.

1. Is the MDI about to dissapear? What style of programing should you
apply?

2. Did a little experiment with MDI forms. Created a MDI parent with
menus
and all (from the template) Created a child. How can i from the child set
text in the statusPanel at the bottom of the MDI parent from the child?

Regards
Martin


Apr 12 '07 #3

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

Similar topics

2
by: Sketcher | last post by:
Hi, I am trying to create a quiz, Code is as follows: <html> <head> <title>Quiz</title> </head> <BODY> <Center><TABLE cellSpacing=3 cellPadding=0 border=0>
5
by: Vandana Rola | last post by:
Hello Everyone, I am a beginner in Javascript.I want to create fun quiz tool using javascript (no database). The feature of that tool is every question has five choices. The user needs to select...
4
by: DAL | last post by:
I want to build my kid a program that cycles through questions (using a label for the question), and lets him choose one of two radio buttons for the right answer. How do I get every set of...
19
by: AMP | last post by:
I have a simple question. If i have a button on form1 that creates : Form2 newform = new Form2(); newform.Show(); As I click the button a new form shows,but acording to my code each one has...
2
by: kenny | last post by:
I'm making a quiz to be posted on the internet. but I'm facing difficulties in finding a simple timer for the quiz (unlimited timing) which will keep on running regardless to the change of the page...
13
by: Eric_Dexter | last post by:
All I am after realy is to change this reline = re.line.split('instr', '/d$') into something that grabs any line with instr in it take all the numbers and then grab any comment that may or may...
0
NoPeasHear
by: NoPeasHear | last post by:
I don't know what I am doing wrong... I used this tutorial... http://www.permadi.com/tutorial/flashMXQuiz/index.html It works with their quiz.xml file, but when I add an option for multiple...
3
by: Raqueeb Hassan | last post by:
Hello, I was helping one of my friend's school on setting up a online quiz system. They have the AMP systems to host php+mysql. The quiz script/software should have the following features: a....
3
by: empiresolutions | last post by:
I am building a app that creates quizzes. This is how it goes - - Create Quiz - Provide up to 10 different types of Quiz Results - Give up to 50 Questions - Each Question has up to 10 possible...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.