You have to use the KeyDown event because the KeyPress event only registers keys that represent characters.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
Could you post the code you use to actually do the changing?
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
You are going to need to modify your connection string. This is done most easily by modifying the " Windows Form Designer generated code " - you know, the stuff you're not supposed to change. 1. Search for "ConnectionString" in the hidden text. 2. In that mighty long string, find "Data Source=". This will give you the full absolute path. I think you can just change out the full path to your relative one. Otherwise you can set the path to 'Application.StartupPath & "\Database\GradientDB.mdb"' To not know is bad. To not wish to know is worse.
Since all data types in NET derive ultimatelly from the Object data type and the GetType(), Equals(), GetHashCode(), ToString() are members of Object, these methods can not be hidden:(, they can only be overriden. In your case, it would be interesting to override the ToString() method to display a custom text representation of your struct.