CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    is this possible

    hi
    i have to do this any how.
    i got an mdi(parent) form and 7 mdi(child) forms
    i got buttons on mdi(parrent) for adding,printing,previous record,next record,etc..........
    now i want is which ever mdi(child) is active (cause more than 1 mdi(child) can loaded) then those button should work on the recordset of the active form.
    is this possible??????????
    any help will b a gr8 help
    thanx
    sarfaraz.........


  2. #2
    Join Date
    Sep 2001
    Location
    Little Rock, Arkansas
    Posts
    40

    Re: is this possible

    Try something like the following and see if it works:

    In each form have a set of Public subs to MoveFirst, MoveLast, AddNew, etc. Each sub would be named the same on each form.

    Whenever the button is pushed in the mdi parent you could run code like:
    ActiveForm.MoveFirstRecord
    ActiveForm.AddNewRecord
    etc.

    In reverse, each time a form was activated, it would be up to the active form to have logic to disable and enable buttons when appropriate.


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

Featured