Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change in a field ?

Status
Not open for further replies.

access97to2000

Programmer
Aug 12, 2002
45
US
Hi,
I have a listview and a frame which has some textboxes. To Edit, When a user double clicks a record in the listview, the values of the record are populated in the textboxes. for ex:
cmbCategory.Text = lvwGeneric.SelectedItem.ListSubItems(2)
txtDmentPath.Text= lvwGeneric.SelectedItem.ListSubItems(3)

when the user double click another record, it is populated again.
But now i want to enhance it like this. IF the user double clicks it the fields have to be filled in. IF he makes any changes to the textboxes and without saving it, double clicks on another record , a msg has to pop up saying - do you want to save the changes made to the earlier record ?
how can i do that ?
Tahnks
Rako
 
This is something I did - maybe not that clever but I hope it helps - I put the value into the .Text property AND the .ToolTipText property I'm then able to compare the two values and if there is a difference then I can take some kind of action.

I know it's not what it was designed for, but it worked!!

Hope it helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top