问题描述
我想要一个停车场预订系统,我把picbox让用户点击,我的问题是如何使用picbox连接到sql 2014,我的意思是我需要知道用户点击了哪个picbox,它会自动记录到sql 2014.
我尝试过:
私有子PictureBox10_Click(发件人为对象,e为EventArgs)
如果CType(发件人,PictureBox).Image可用,则说明
CType(发件人,PictureBox).Image = provisionalIcon
ElseIf CType(发件人,PictureBox).Image是provisionalIcon然后
CType(发件人,PictureBox).Image = availableIcon
结束如果
结束Sub
i want to a car park booking system, and i put picbox to let user click, my questions is how to use picbox to connect to sql 2014, i means i need to know which picbox the user have clicked, and it will auto record to sql 2014.
What I have tried:
Private Sub PictureBox10_Click(sender As Object, e As EventArgs)
If CType(sender, PictureBox).Image Is availableIcon Then
CType(sender, PictureBox).Image = provisionalIcon
ElseIf CType(sender, PictureBox).Image Is provisionalIcon Then
CType(sender, PictureBox).Image = availableIcon
End If
End Sub
推荐答案
这篇关于我想要一个停车场预订系统,我把picbox让用户点击,我的问题是如何使用picbox连接到SQL 2014的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!