5 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for skatamatic

When working with TCP client sockets I often find myself frustrated with the lack of event-driven support. I usually end up writing a whole bunch of code to determine disconnects, reconnecting, etc and I figuired it's time to just write my own class for this stuff. I figuired I'd share …

Member Avatar for Alejandro_8
6
9K
Member Avatar for Begginnerdev

After seeing quite a few posts today asking about event handlers for dynamicly created controls, I have decided to give a little example for reference. **Note that you should check [Microsoft's Documentation](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx#inheritanceContinued) ( or research from web ) of any control if you are struggling**

0
509
Member Avatar for TrustyTony
Member Avatar for vegaseat

If you bind a Tkinter widget to an event, normally only the event information is passed to the function responding to the specific event like a mouse click. Python allows you to expand the event handler to include any number of values to be passed on. Here is a typical …

Member Avatar for bvdet
1
1K
Member Avatar for Geekitygeek

How to Handle Events Event handlers make up a large portion of Windows Form Coding. There have been a lot of questions on the C# forum of late that stemmed from people creating Event Handlers incorrectly. First lets look at how an event and its event handler works: Each event …

Member Avatar for Nick Evan
3
932

The End.