-1
나는 흐름을 코딩하는 방법을 실제로 알 수 없습니다.데이터베이스에서 동적으로 저장된 버튼로드
For Each dtrow In camBtnDtable.Rows
Dim cameraNumber = camBtnDtable.Select("ButtonName =" & " '" & "foo" & "'")(0)("cameraID")
Dim nBtn As New Button
nBtn.Text = "C-" & 'this should be cameraNumber e.g "C-01"
nBtn.Name = 'select from the database, I don't know if this is still important though
nBtn.Location = 'select x and y from database where name is this
AddHandler nBtn.Click, AddressOf nBtn_Click
picture.Controls.Add(nBtn)
Next
이것은 엉망인 코드이지만 일반적으로 액세스 데이터베이스에서 버튼의 속성을로드하는 것이 좋습니다.
'btn'은 serialize 코드에 무엇을 포함합니까? – AdorableVB
그건 실수 였어. 더 긴 대답의 일부가 될거야.하지만 나는 그걸 모두 지우지 않았다. – Plutonix
나는 내 머리가 너무 많이 일하고 있다고 생각한다. 이것은 오히려 간단한 대답입니다. 내 잘못이야. 어쨌든 항상 나를 도와 주셔서 감사합니다. – AdorableVB