Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 12:48
protectorChristian Graus8-Nov-05 12:48 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 15:12
kourvoisier8-Nov-05 15:12 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 15:16
protectorChristian Graus8-Nov-05 15:16 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 16:55
kourvoisier8-Nov-05 16:55 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 17:13
protectorChristian Graus8-Nov-05 17:13 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 17:21
kourvoisier8-Nov-05 17:21 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 17:35
protectorChristian Graus8-Nov-05 17:35 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 19:18
kourvoisier8-Nov-05 19:18 
Sorry sir

but your code above also gives the same exact blank screen with hour glass mouse over
maybe u should compile and run and see what i mean.




Christian Graus wrote:


class Main : Form
{

private Form1 myForm;

Main()
{
myForm = new Form1();
myForm.Show();
}
}


Now when main us constructed, a member variable is initialised and shown.



I really am trying to understand your concept and whats going on.
here you have created a class called main which implements form -- (dont know why it implements form)

You then create a member variable 'myForm' in the main class which is an instance of the Form1 class which is not shown(this class is the actual form i assume because this is what i meant in my code in earlier post)

Then u created the main class constructor which initializes myForm member variable then u call the
show method which should run the form.


Christian Graus wrote:
Now when main us constructed, a member variable is initialised and shown.


Now where would you call the constructor for the main class to initialize and show the form which is the member variable.


Christian Graus wrote:
I reiterate: your instance of class1 is local to a method, which means it has no persistent lifespan. You have a collection of forms as a member variable inside a class, but you've not made the instance of that class a member.


How do i make the instance of the class a member...i get confused here
(could you send me a visual c# solution source code to show me exactly how u do this
maybe if see the code of all this your saying in action i may be able to understand it better)

if you do this i would highly appreciate it

you can zip it and email to for_now_us@yahoo.com
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus9-Nov-05 10:18
protectorChristian Graus9-Nov-05 10:18 
GeneralRe: Creating Multiple Forms in my application Pin
S. Senthil Kumar8-Nov-05 20:01
S. Senthil Kumar8-Nov-05 20:01 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier9-Nov-05 12:16
kourvoisier9-Nov-05 12:16 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier9-Nov-05 17:36
kourvoisier9-Nov-05 17:36 
QuestionIs there any... Pin
KORCARI8-Nov-05 11:31
KORCARI8-Nov-05 11:31 
QuestionStart up with windows Pin
shdelpiero8-Nov-05 10:20
shdelpiero8-Nov-05 10:20 
AnswerRe: Start up with windows Pin
Jon Rista8-Nov-05 10:29
Jon Rista8-Nov-05 10:29 
QuestionHelp ,Please. Pin
shdelpiero8-Nov-05 10:13
shdelpiero8-Nov-05 10:13 
AnswerRe: Help ,Please. Pin
MoustafaS8-Nov-05 13:28
MoustafaS8-Nov-05 13:28 
QuestionDetecting Controls Under Mouse Cursor With Click and Drag Pin
redfish348-Nov-05 8:59
redfish348-Nov-05 8:59 
AnswerRe: Detecting Controls Under Mouse Cursor With Click and Drag Pin
Jon Rista8-Nov-05 10:25
Jon Rista8-Nov-05 10:25 
GeneralRe: Detecting Controls Under Mouse Cursor With Click and Drag Pin
redfish3410-Nov-05 11:10
redfish3410-Nov-05 11:10 
QuestionPassing data from WORD to a Web Page Pin
DenMelton8-Nov-05 8:34
DenMelton8-Nov-05 8:34 
AnswerRe: Passing data from WORD to a Web Page Pin
K edar V18-Oct-06 20:11
K edar V18-Oct-06 20:11 
QuestionTEXTBOX HELP!!! Pin
dgap8-Nov-05 8:07
dgap8-Nov-05 8:07 
AnswerRe: TEXTBOX HELP!!! (REDO) Pin
dgap8-Nov-05 8:09
dgap8-Nov-05 8:09 
GeneralRe: TEXTBOX HELP!!! (REDO) Pin
Susan Hernandez9-Nov-05 14:52
Susan Hernandez9-Nov-05 14:52 

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.