I've Inherited System.Windows.Forms.TextBoxinherited System.Windows.Forms.TextBox and added a few properties to help me out in creating forms that generate SQL statements.
I use to create a large function that would check for changes in the TextBoxTextBox compared to a string. Then it would take text and concatenate it to a SQL statement. Now it's simple and easier to use.
SQLTextBox.vbSQLTextBox.vb
Let me know what you think of this. I'm not sure if it's really anything someone could use, but it's been very useful to me.
Edit: So, I've pulled an excerpt from my code. It's not much, but here is the new textbox vs the old one.
In the SQL text, iI have something like ""Material Type"" in('INSERTTEXT').
SQLTextBox.ModifiedSQLTextBox.Modified gets set when the user leaves the textbox (set to false b default).
I went from 200 lines of code to 6, with a minor change. That does not include the lines spent setting up the default text or the.
Let me know what you think of this. I'm not sure if it's really anything someone could use, but it's been very useful to me.