Geeks With Blogs

News


Rodney Vinyard - .NET & SQL Developer When all is said and done, more will be said than done WinForms
Get index of an enum via string
Get index of an enum via string Thanks to by serkan sendur : http://www.daniweb.com/soft... I have a bunch of checkboxes on a Windows form and I put the exact checkbox names in an enum chkSelectedenum I want to collect the checkbox names into a hashset I will pass the hashset to another class that also can see chkSelectedenum So that 1. we do not have to hardcode checkbox names into if..then.else..switch statements 2. another class can work with the hashset & enum ......

Posted On Friday, March 2, 2012 12:09 PM

windows.controls textbox allow control-v, control-c, control-x, control-a
'--------------------------... 'text box class '--------------------------... Option Explicit On Option Strict On Public Class TextBox2 Inherits System.Windows.Forms.TextBox Private Sub txtBarcode_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEve... Handles MyBase.KeyUp '--------------------------... 'allow control-v, control-c, control-x, control-a '--------------------------... ......

Posted On Friday, October 22, 2010 10:04 AM

Allow only one instance of any MDI child form in your MDI application
Original Article: http://weblogs.asp.net/rosh... Problem & Solution: Allow only one instance of any MDI child form in your MDI application One of the things I needed to do at an MDI application I was involved with was the ability to only load a specific form once, and make sure it does not load again. That form could not be modal, but could only have one instance running inside the MDI parent. I came up with a rather elegant solution, if I do say so myself :) ......

Posted On Tuesday, September 5, 2006 10:21 AM

Copyright © Rodney Vinyard | Powered by: GeeksWithBlogs.net