BrowseDialog Question


Author
Message
fparker
fparker
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 31, Visits: 199
I'd like to present users of my application with a warning message if the search criteria entered into a browse dialog returns the maximum number of records (so that they will know that there may be more records than they can see).  The TextChanged event of the label in the status bar on the BrowseDialogWindow seems like a good place to do this check as it gets fired when the search ends.  I tried sinking this event from a class derived from the BrowseDialogInformationPanel class but the problem is that I can't determine what the maximum number of records allowed is.  There doesn't seem to be a way to get back to the BrowseDialog object on the calling form.  So, I created a new class derived from the BrowseDialog class.  I intended to have it pass the maximum number of allowed records on to the information panel.  But I seem to be having trouble inheriting from the BrowseDialog class.  As a test, I created a class defined as follows:

public class Class1 : MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog

{

        public Class1()

           : base()

       {

       }

       public Class1(System.ComponentModel.IContainer Container)

            : base(Container)

      {

      }

}

It compiles without a problem and I can paint it onto a form but changes made to the BrowseResultsLayout and SearchFields properties are not persisted.  Of course, this makes it useless.  Do you guys have any idea what I am doing wrong? Or do you have any better suggestions for accomplishing the original goal?  Thanks for your help.

Fran Parker


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
fparker - 17 Years Ago
Trent L. Taylor - 17 Years Ago
fparker - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Sam Tenney - 13 Years Ago
                         Hi Sam. I guess you could start building your Base BrowseDialog so...
Ivan George Borges - 13 Years Ago
                             Hi Ivan, I would really like to begin creating my own base class...
Sam Tenney - 13 Years Ago
                                 Hi Sam. No problem, here we go: Add a new Item to your project....
Ivan George Borges - 13 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search