CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Help!

  1. #1
    Join Date
    Oct 2001
    Location
    VT, USA
    Posts
    3

    Help!

    I have a Main form with a subform, and when my users copy a record they are only pasting the record from the main form and not the subform. Can anyone help me??


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Help!

    >I have a Main form with a subform
    Do you mean a Mdi application?

    >and when my users copy a record
    using Ado? from textbox via clipboard? From a grid via variables?

    >they are only pasting the record from the main form and not the subform
    pasting where?




    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Oct 2001
    Location
    VT, USA
    Posts
    3

    Re: Help!

    What is Mdi?

    copy the displaying record and paste using the clipboard to a new record in the same form.


  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Help!

    Mdi is "Multiple Document Interface", which means to build app similar to word (where you have a Main form and a lot of Children forms) as opposed to Sdi ("Single Document Interface") which is represented by Notepad (all in a single form).
    >copy the displaying record and paste using the clipboard to a new record in the same form.
    You should add some more detail: in your form there is a grid (or flexgrid)? Are you copying from a richtexbox?...In any case, if you are able to put data in clipboard and to paste from it, I think your matter (in main and not in subform or viceversa) is only a matter of focus: before pasting, put focus on the correct form (ie: Form1.setfocus).
    Hope this may help.

    Cesare Imperiali



    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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