Results 1 to 3 of 3

Thread: Couple of Problems...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Unhappy Couple of Problems...

    1) In Menu Editor how do i give a horizontal line between two items

    login
    ------
    logout

    2) When A person Logout's in the prog all the currently loaded should close.. someone said unload all : now that does not work gives error.. how to unload all MDI child forms

    3) If someone can help me in generating Reports.. Please look at via Data environment or Crystal Reports 11.. Please help me..

    http://www.vbforums.com/showthread.php?t=447266

    Other problems will be posted as they occur

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Couple of Problems...

    Quote Originally Posted by khandu
    1) In Menu Editor how do i give a horizontal line between two items

    login
    ------
    logout
    For the caption of the menu just put a single dash -

    Quote Originally Posted by khandu
    2) When A person Logout's in the prog all the currently loaded should close.. someone said unload all : now that does not work gives error.. how to unload all MDI child forms
    You can try this:

    VB Code:
    1. Public Sub UnloadMDI()
    2.     Dim objForm As MDIForm
    3.    
    4.     For Each objForm In Forms
    5.         Unload objForm
    6.     Next
    7.    
    8.     Set objForm = Nothing
    9. End Sub

    If that doesn't work (it should), then you can try this instead:

    VB Code:
    1. Public Sub UnloadMDI()
    2.     Dim objForm As Form
    3.    
    4.     For Each objForm In Forms
    5.        
    6.         If objForm.MDIChild = True Then
    7.             Unload objForm
    8.         End If
    9.    
    10.     Next
    11.    
    12.     Set objForm = Nothing
    13. End Sub

    Quote Originally Posted by khandu
    3) If someone can help me in generating Reports.. Please look at via Data environment or Crystal Reports 11.. Please help me..

    http://www.vbforums.com/showthread.php?t=447266

    Other problems will be posted as they occur
    Don't have any experience with Crystal Reports, sorry.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Couple of Problems...

    Put a dash in the caption line.

    Typically I will name my separators mnuSepX where X equals the next sequential seperator.

    Also, you have to indent the menu item.

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