问题描述
我的表单上有一堆数据绑定控件。我也有一个modifiedbytextbox。如果用户更改了记录中的任何内容,
modifiedbytextbox.text = s_username。
哪个控制&事件我可以放置那些代码吗?
我试过将它放入......
bindingsource_currentchanged - > nope
bindingsource_currentitemchanged - > nope
bindingsource_listchanged - > nope
i have a bunch of databound controls on my form. and i have a modifiedbytextbox also. if a user changes anything in the record,
modifiedbytextbox.text = s_username.
which control & event can i place that code?
i tried placing it in...
bindingsource_currentchanged --> nope
bindingsource_currentitemchanged --> nope
bindingsource_listchanged --> nope
推荐答案
感谢您的回复。我知道我可以在我的表单上的每个boundtextbox上使用textchanged。但我想知道是否有类似的东西...
如果bindingsource.isedited那么
''日志修改为
结束如果
thank you for replying. i know i can use the textchanged on every boundtextboxes i have on my form. but i was wondering if there is something like...
if bindingsource.isedited then
''log modified by
end if
这篇关于我怎么知道用户修改记录的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!