• 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.
  • Posts

    • Because Apple has never discontinued Mac models before now?
    • I recall reading that they intend to synchronize the version numbers between iOS, tvOS and macOS, so we will also be getting macOS 26 up next.
    • every time.... why can't I install windows 11 on my 8088?
    • No word on how much of an ewaste apocalypse this will cause.
    • The list of Mac devices rumored to get macOS 26 by Hamid Ganji Apple will announce macOS 26 or macOS Tahoe at its Monday Worldwide Developers Conference. As has been reported multiple times over the past weeks, all Apple operating systems will receive a UI overhaul, a touch of AI, and new names at this year's WWDC. The logic behind the "26" in the new macOS version is that Apple aims to align its naming schedule with its 2025-2026 release cycle. The same version number will also appear across iOS, iPadOS, watchOS, and tvOS. While skipping multiple software versions raises many questions, it might help maintain consistency in the Apple ecosystem. With just two days away from the WWDC kick-off, many Mac owners might wonder if the upcoming macOS 26 is compatible with their devices. Here's the rumored list of compatible Mac devices with the macOS 26: MacBook Air (M1 and later) MacBook Pro (2019 and later) iMac (2020 and later) Mac Mini (M1 and later) Mac Studio (all models) Mac Pro (2019 and later) This report comes from MacRumors, which cites a private account on X as the source. However, the interesting thing about this list is that, according to the leaker, Apple might end software support for the MacBook Pro 13-inch (2020 model, two Thunderbolt 3 ports). For now, we should take this claim with a pinch of salt. The 2020 MacBook Pro 13-inch launched with both Intel and Apple Silicon M1 processors. It also comes with two port configurations. Apple is expected to end support for more Intel-based Mac devices this year, and this specific MacBook Pro variant might also be on Apple's kill list. WWDC 2025 kicks off on June 9, and Apple will unveil the latest version of its operating systems with an overhauled UI and a slew of AI-related features. So far, we know what Apple Watch models might get watchOS 26. Apple will announce the compatibility list of various devices at Monday's event.
  • Recent Achievements

    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
    • One Year In
      Mido gaber earned a badge
      One Year In
    • One Year In
      Vladimir Migunov earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      490
    2. 2
      +FloatingFatMan
      258
    3. 3
      snowy owl
      249
    4. 4
      ATLien_0
      223
    5. 5
      +Edouard
      190
  • Tell a friend

    Love Neowin? Tell a friend!