• 0

[VB.NET] Child form use Parent form toolbar


Question

9 answers to this question

Recommended Posts

  • 0

I think I did not say properly.

What I need is:

Base.vb - With the toolbar and a few buttons

Form1.vb - The one, Main.

Form2.vb - When I click a button on a toolbar it opens this. With this open, i wans this to take over anything than is pressed on the toolbar.

I'm starting to get into this MDI stuff, and looked all over for some demo. :(

  • 0

Errrr ok, well under the click event for the particular toolbar button, to show the Form2.vb

you instantiate a new instance and call Show or ShowDialog (for modal).

Dim frm2 as new Form2

frm.Show()

I have no idea what you mean by "i wans this to take over anything than is pressed on the toolbar."

Either you're too adopted to internet shortform, or you can't express yourself too well, maybe try showing us a screenshot with arrows pointing to what you want things to do.

  • 0

post-10656-1107013244_thumb.jpg

Above you see the main form (as a mdi container) and it inherit the toolbar buttons from base.

post-10656-1107013253_thumb.jpg

Now I open up Customer (form.show with mdiparent set to main) with the toolbar still there. Can I now click the forward button to change the text of textbox1?

  • 0

Found someone that speaks better english.

http://windowsforms.net/Forums/ShowPost.as...41&PostID=20548

What he said. One instance of toolbar shared across all childform. Parent form inherits the toolbar from Base

EDIT: http://windowsforms.net/Forums/ShowPost.as...41&PostID=19168

Another unfinish biusness.

Edited by Alvin
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.