Global Variable to a form


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)
Group: Forum Members
Posts: 153, Visits: 462
Using your SecuritySample in C#. I made a change to have the browse form appear first. The user can search first. If they do not see the customer they want, I added a "NEW" button to a "BrowseInfoPanel" That appears. Currently when the user clicks on the NEW button the logic does a SENDKEYS to actual execute the CANCEL button to make the BROWSE form go away and bring up the CustomerMaintenance form. Certainly at this point the user could click on the NEW button, but I want the NEW button already clicked if the NEW button was already clicked from the BrownInfoPanel. I already know that when the CustomerMaintenance form appears all I need to do is execute the ADD() to activate the ADD mode and a SENDKEYS with a TAB to place the focus on the first field. My 2 questions here are as follows:

1. What method always gets executed when the for is shown? The OnShown only seems to occur the 1st time the CusomerMaintence for is shown.

2. How do I set up a public Boolean variable such as "addMode" that can be set to true if the user clicks NEW on the BrowseInforPanel that can be accesses from the CustomerMaintenance method the is always triggered when the CustomerMaintenance form is displayed.

Hoping not to have to roll my own browse or maintenance for in that I am using the framework to save time. Could you provide some sample code rathyer than provide conceptual theory?

I have searched the complete formum and documentation already for a solution. This is why I am asking you at this point. 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search