Results 1 to 11 of 11

Thread: calling forms

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163

    calling forms

    How to call a form from another form?
    Purushottam

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Is this a C++ question?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163
    yes in vc++
    Purushottam

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I'm not sure what you mean with Forms.. I think you mean dialogs? and what do you mean with calling them
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    'Forms' is just what they are called in VB, purusingh. In C or C++ or pretty much any other language they're just windows. A form in VB is fundamentally just a specialised type of window with some stuff tacked on.

    What are you trying to do with one window from the other?
    Harry.

    "From one thing, know ten thousand things."

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163
    Actually I want to make a database application.In which there could some forms and according to demand I want to open different form.
    Purushottam

  7. #7
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Please stop talking about forms, they don't exist in C++

    Anyway, to create a new dialog from whatever window use DialogBox api, but you need to be a bit more specific for me to get you some code..
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  8. #8
    amac
    Guest
    I don't remember windows existing in C++ either.

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163
    I know to open dialog. We do

    Dialog a;
    a.DoModal();



    In mfc there are view base on form databaseform ......

    Suppose there are 2 views based on formview.

    Now I want to call the second view form the first one so that both of them are visible.
    Purushottam

  10. #10
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Originally posted by amac
    I don't remember windows existing in C++ either.
    Well, no but the API you use to make GUIs in Windows is window-based.
    Harry.

    "From one thing, know ten thousand things."

  11. #11
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    As I suspected, he's talking about MFC. There are forms in MFC (CFormView).

    You can't "call" the view, what you usually do is create a splitter window with the two views contained. Search the forum on CSplitterWnd, there was a thread a short while ago.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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