Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
Hahahaaa...
Thanks.paul
I don't mean that... I know, I have to create multiple forms. It is for a free language learning course. So, there are lot of lessons and exercises. I want each lesson and each exercise has to be open in a new form with the same setting as the first lesson has.
First lesson has been designed as you said, but other lessons [on different forms] has to opened on clicking of buttons.
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
Form1 is the main form that shows instructions and introduction to the course. When a user press the learn button or "lesson 1" button, a new form has to be opened up with a new panel at 19,55 and a new picturebox inside that panel.
When a user finish learning the first lesson, he/she has to click on exercise button, then a new form will open again with the same properties, a new panel 19, 55 and a new picturebox inside it.
This is how it works.
I am trying this way, cause I don't know how to use the same form for so many lessons and exercises. Oops, btw, I don't know this way too :P
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
design the lesson form in the designer, then use the code from post #6 to open a new instance of that form. i'm guessing your lesson information will be in the form of a bitmap that you'll display in the picturebox?
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
Hey, I got it...
I am sorry, I was making a mistake... This code has to be written under a label and I was writing it under a button... Sorry again.
But a problem occurs. the picturebox in a new form appear at the left corner of panel. Can I align it at center? How?
Another problem, an "Out of Memory" exception. How can I handle this. I have 4 GB RAM but just to load a background image I am getting Out of Memory. Please help.
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
Originally Posted by Trusted
Hey, I got it...
I am sorry, I was making a mistake... This code has to be written under a label and I was writing it under a button... Sorry again.
But a problem occurs. the picturebox in a new form appear at the left corner of panel. Can I align it at center? How?
Another problem, an "Out of Memory" exception. How can I handle this. I have 4 GB RAM but just to load a background image I am getting Out of Memory. Please help.
Trusted.
Man, I've faced something like your now.
take a look here.
Its my thread, I was trying to always get the same point on the screen even if the screen size changes. I think you can modify it to fit your problem or I'm saying a stupid think!!!
Well, try it. It's free...
hehehe
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
Originally Posted by henriqueshb
Man, I've faced something like your now.
take a look here.
Its my thread, I was trying to always get the same point on the screen even if the screen size changes. I think you can modify it to fit your problem or I'm saying a stupid think!!!
Well, try it. It's free...
hehehe
Hi Henri,
Thanks for your post. But my problem is not similar to yours...
But nice to know that you solved your problem. Great!
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
Hey Paul,
It is working perfectly, but the only problem is, I cannot use only 1 button for all the lessons. When a user finish the lesson 1 he is asked to complete the exercise [i.e., an exam for lesson 1] IF he pass the exam or get the score upto 90-100% then a button will appear on his first lesson result page that will lead him to the second lesson.
Re: [:: A new Form with a new Panel and a new Picturebox on it ::]
ok. you know how to use instances of forms. you could put a next button on your form + set visible = false, then make it visible when the user passes the exam.
do as much as you can, then post here when you have a specific problem