VS Question - finding event in C# version


Author
Message
Rafe Kemmis
Rafe Kemmis
StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)
Group: Forum Members
Posts: 8, Visits: 27
Hi,



I am evaluating your framework and have run into a problem during the Populating the Business Object as the Form Loads

section of the winforms tutorial. This step has you place code inside the ParentFormLoading event of the SF Form. My issue is that in Visual Studio the interface is different when coding in C#. When I view code of the form I don't get the same information in the two drop-down boxes above the code.



What I'd like to figure out is where to go in in visual studio to access the ParentFormLoading event of the SF Form. It doesn't seem to be listed as an event on the Properties panel...



Thank you in advance for you help.
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Where is the correct place to put this event code?

It depends on what you are trying to do.  For example, if you want to handle the ParentFormLoading event and perform the same function of code every time for that business object, then you would want to place your handler code in the BO source file.  However, if this is a one time thing, then you would want to add your handle and code on the form, form example.  So it really depends on what you are trying to accomplish.

Due to the nature of events, we are actually planning on having a section in our May training class dedicated to the understanding of how events work and how to interact with events in an application development environment.  Events, as you know, are a great tool but many times are misunderstood and not used to the best advantage of the developer many times.  So we have added this to our schedule so that some of these questions can be answered.

Rafe Kemmis
Rafe Kemmis
StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)StrataFrame Beginner (8 reputation)
Group: Forum Members
Posts: 8, Visits: 27
Trent L. Taylor (04/20/2007)
Where is the correct place to put this event code?




It depends on what you are trying to do. For example, if you want to handle the ParentFormLoading event and perform the same function of code every time for that business object, then you would want to place your handler code in the BO source file. However, if this is a one time thing, then you would want to add your handle and code on the form, form example. So it really depends on what you are trying to accomplish.



Due to the nature of events, we are actually planning on having a section in our May training class dedicated to the understanding of how events work and how to interact with events in an application development environment. Events, as you know, are a great tool but many times are misunderstood and not used to the best advantage of the developer many times. So we have added this to our schedule so that some of thesequestions can be answered.




Doh, If I would have waited until the Configuring Business Object Properties section, I could have answered my own questionHehe
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