Posted on 1998-01-12
Last Modified: 2010-04-04
I think this should be fairly easy although I am not sure.  I want to have a message dialog box appear everytime two check boxes are checked at the same time that tells the enduser that by doing this they could be restricting there search.  I have the dialog box however it comes up whether they have one, two, three or however many checkboxes checked.  How can I make this only happen when they have more than one checkbox checked at the same time?  Example would be appricated.  If this is more difficult than 25pts I am open to giving more for a good answer.
Question by:aj85

Accepted Solution

mvz121697 earned 50 total points
ID: 1356215
procedure TForm1.Button1Click(Sender: TObject);
var n: integer;
if CheckBox1.checked then Inc(n);
if CheckBox2.checked then Inc(n);
if CheckBox3.checked then Inc(n);
if n>1 then if MessageDlg('Your search is restricted, Continue ?'
  ,mtConfirmation, [mbYes, mbNo], 0) = mrYes then
       // do the search


Author Comment

ID: 1356216
Thank you very much your answer was excellent!  I am increasing your points to 50.


Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now