Thread: Borland Builder questions

  1. #1
    unreg
    Guest

    Borland Builder questions

    I'm using Borland Builder 5 and I (being the newbie that I am) don't know how to do some things (well many things, but...)

    Question #1
    I have two forms the main form and a form which I want to be opened through a button on the main form. How would I open this 2nd form in the button's click property?

    Question #2
    I have a list box on my Main form, I can add files to this list using the add dialog, but now I want to be able to add files by dragging from the explorer. How would I go about doing this? (I could not find on the help files how to accept files from outside)

    Thanks

  2. #2
    Registered User MathFan's Avatar
    Join Date
    Apr 2002
    Posts
    190
    OK, here we go:

    Question 1:
    Say, you have MainForm and Form1. You want a button called MainForm->Button1 to open Form1. Then choose MainForm.cpp, Go File-->Include Hdr, then choose Form1.h. Make MainForm visible, then doubleclick on the Button1. MainForm.cpp appears (you can see that a new function is added to the code and the cursor focused on it). Then write:

    Form1->Show();

    Save and compile...

    Question 2:
    I'm not sure about that... It's long time since I used BCB, but isn't there any property like EnableFileDrop or something? If you find something similar just turn it on (set it to true). Otherwise I don't know.
    The OS requirements were Windows Vista Ultimate or better, so we used Linux.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM