Menu ---
  • Home
  • Tutorials
  • Useful codes
  • Nuget Packages
    • Extension Methods
    • Filter Descriptor for Kendo UI
  • Downloads
    • Active Directory Managing Utility DLL
    • SQL connection methods DLL
  • Contact

C# tutorials and useful codes.

Tag: event

Same event for different controls

Tags c#, event, subscribe, textbox, winform247 Views

Some guy asked a question: Is there any other way to use a routine on InitilizeCompent to handle all textboxes? So he wants to get away from typing a lot: no need to write the same event to all our …

Delegates and Events – Part 2.

Tags anonymous method, c#, delegate, event, event handler267 Views

Events Events are always implemented with delegates in C#. Publishing class defines a delegate, the subscribing class first creates a method that matches the delegate signature and then creates an instance of the delegate type encapsulating that method. Everytime an …

Try-Catch blocks

Tags c#, catch, event, exception, try, try catch, unhandled, winform242 Views

I was asked about try-catch blocks if we use them in multilevel methods (one’s calling another that throws exception -> which catch block will catch it, etc.). Here I show you a simple, 3 level try-catch block. We have a …

Custom TextBox with custom NumbersOnly property and event

Tags c#, control, custom, event, property, winform1551 Views

When you’re creating Winform applications, it could be useful if you also create your own controls. In this example I show you how to create custom control, with new custom property and event. Let’s create a new kind of TextBox …

Site Sidebar

Recent Posts

  • How to show enum description in ComboBox?
  • How to serialize and deserialize JSON?
  • Simple login form with remember me and logout function
  • How to create (encode) and decode QR code?
  • How to use generic repository pattern?

Categories

  • ASP.NET
  • C#
  • Entity Framework
  • MVC
  • SQL
  • Tutorials
  • Useful codes

My personal website

Software Development

Site Footer

You can find me on social networks:

Tags

anonymous method asp.net bind binding blackjack bootstrap business logic layer c# cmtrace connectionstring context css csv dal data access layer datatable decoding delegate encoding entity framework enum event excel exception game html ip address listbox log4net mvc n-tier notepad++ remember me repository pattern secure sql sqlconnection subscribe textbox try catch ui unit of work user interface web winform
Created by Attila Török - https://www.crushsoft.eu

Sliding Sidebar

About Me

About Me

In the past years I worked on almost every part of information technology: planning, implementing, managing server infrastructures, supporting desktops for hundreds of end users, planning wired and wireless networks in home offices and large companies, designing and building web sites using CMS mostly, developing softwares to windows based computers, to android equipments and web applications and services, creating video footages and photo shooting.

Tags

anonymous method asp.net bind binding blackjack bootstrap business logic layer c# cmtrace connectionstring context css csv dal data access layer datatable decoding delegate encoding entity framework enum event excel exception game html ip address listbox log4net mvc n-tier notepad++ remember me repository pattern secure sql sqlconnection subscribe textbox try catch ui unit of work user interface web winform