Custom
i have a panel with 26 buttons, and i have used this panel in multiple forms by copy pasting the entire code for the panel, is there anyway to not repeat myself by keeping this code somewhere else and importing it
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Sep 10, 2011, 4:08 AM EDT
call them nowadays:
http://msdn.microsoft.com/en-us/library/a6h7e207.aspx
Vilas GiteRank #951 · 2.1K reputationPosted Sep 10, 2011, 4:57 AM EDT
Hi Kiran!
As per said Vulpes, we can create user defined control and used it in application wherever it's usable in Win Forms. For example - Numeric TextBox. See how to create with step by steps. http://www.c-sharpcorner.com/UploadFile/73ba73/7202/
Thanks!
----------------------------------------------------------------------
If this reply helps your post…then check "This is correct answer"