Need help - How to make event handler
Hello TFP, I'm am looking for some help. The company I work for, among other things, sells some identification software. In the software you can tie card desigs to a database for printing id's. Between these two layers you build a production front end for manipulating data.
We have ordered the SDK for this software. In the software you can add an event button to the production form. You can't make the button have any function without the SDK. I am an amateur programmer mostly familiar with php so I picked c# rather than the alternative .net to write the event handler in. So I have a c compiler ready and the ability to read the code proceduraly, but I don't understand the functions it is calling or how to sort out what they are doing. I've read through the documentation, but I am left feeling like there must be some simple bridge between what I know and how this event handler business works. How do I go about learning to program an event handler/see the bigger picture? I need to see the flow. Button is pushed - ??? - action happens. I can send the SDK documentation to anybody willing to help. I'd love some advice, if even just a better place to pose the question, but I'm always confident there is a TFP'er out there that knows. |
C and C# are VERY diffrent things.
Following assumes C# and windows enviroment. The IDE usually generates code behind the scene for the event handling. Here is what Visual Studio generates for a button on a windows form this.button1 = new System.Windows.Forms.Button(); this.button1.Click += new System.EventHandler(this.Click); Vola!, now the procedure Click in button1 will be fired when the button is clicked. Hope this is of some help Yours Zweiblumen |
Here is a very simple example:
Code:
using System; |
All times are GMT -8. The time now is 04:01 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project