#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Posts
    7
    Rep Power
    0

    Borland C++ Edit Box Question


    Hello,

    Im making a simple math game for children for an assignment. The program generates two numbers and the student has to type in the correct answer. I have an edit box for the answer to be typed in and a mark button beside it.

    Is there any way to display an error message if nothing has been entered into the edit box and the mark button clicked?

    Thanx for any help,
    Jason
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Just to be certain, is this Borland C++ or Borland C++ Builder that you're using?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Posts
    7
    Rep Power
    0
    It was C++ Builder m8. I'v managed to sort the problem out know though. Thanx for answering,

    Jason
  6. #4
  7. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95
    have u tried MessageBox() ?? i know that is what i would do but im not using the same compiler as u...the parameters for it are: (HWND, "the message", "title bar", type of messagebox(MB_OK would be for a box with ok button)) hope that helps

IMN logo majestic logo threadwatch logo seochat tools logo