Results 1 to 5 of 5

Thread: Solved - managing About form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Location
    india
    Posts
    88

    Question Solved - managing About form

    I am using About form and its link is through menu item as About.
    how do I call it by menu item click?
    I want to freeze main form existing below it while it displayed.
    on clicking Ok button in About form it shall close and the form freezed to be active.
    Last edited by santosh66; Oct 19th, 2004 at 10:32 PM.

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    VB Code:
    1. frmAbout.Show vbModal








    Edit People below! Don't you have ANYTHING better to do?
    Last edited by Merri; Sep 30th, 2004 at 11:50 PM.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    VB Code:
    1. 'Call the about form from the menu About click event
    2. 'Use vbModal to lock the main form so all focus on the about
    3. 'form until closed.
    4. Private Sub mnuAbout_Click()
    5.     frmAbout.Show vbModal, Me
    6. End Sub
    7.  
    8. 'Behind the about form code
    9. Private Sub cmdClose_Click()
    10.     Unload Me
    11. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    In the Form1 menus code block:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub mnuAbout_Click()
    4.     frmAbout.Show vbModal, Me
    5. End Sub


    This will open the About Form (frmAbout) and display it Modaly so
    it will retain the focus until closed (can't click on Form1).

    Bruce.

  5. #5
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Bugger

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width