AutoStart stuff in Child Form?

  • Thread starter Thread starter Mr. B
  • Start date Start date
M

Mr. B

This may sound like a silly question... but I've not yet found how to do this
'simple' thing...

You've the parent form (form1) and a child form.

Now the Parent form has FORM1_LOAD which you can use to kick things off when
your app starts.

What I want to do, is have 'things' done every time my child form is launched
(child.show). In other words, say I want some calculations done to be
displayed on the Child form.

But yes.. I 'could' do the calc's, etc. on my Parent form and pass the info to
the child form. But I'd like to keep (if possible) certain parts of my code
that are totally related to the Child form with the Child for code.

Alas... the brick wall cometh... (:

Any tips appreciated

Regards,

Bruce
 
Hi Mr B,
It sounds for me if you want to use a class.
My thoughts now as an advice, use the data entry example from Microsoft 101
VB.net samples and look first how the form about is implemented.
But there is more information in that sample from which I think that you can
use.
(And don't forget to open the full code in the AssemblyInvo.vb with the +
signs in front of the text "Helper class to get.......)

http://msdn.microsoft.com/vbasic/downloads/samples/101samples.aspx

I hope this helps you a little bit.
Cor
 
Back
Top