여기 덕분에 반복적으로 내 winform의 모든 컨트롤을 반복하고 내 하위 클래스 컨트롤을 찾을 수 있지만 사용자 정의 속성 _key 및 _value를 업데이트하려고 할 때 감사합니다. 객체 Ctrl 키를 노출하지 않습니다 :(내가 ctrlContainer을 사용하고 를 아래이winforms 컨트롤에서 새로운 하위 클래스 속성을 찾을 수 없습니다.
foreach (Control ctrl in ctrlContainer.Controls)
{
// code to find my specific sub classed textBox
// found my control
// now update my new property _key
ctrl._key does not exist :(
I know the ctrl exists and is valid because ctrl.Text = "I've just added this text" works.
_key is visible when looking at the control in the form designer.
}
내가 잘못 어떤 사람이 나에게에 대한 힌트를 줄 수 있습니까? 감사로 전달 호출하는 형태입니다.
이 사람이 나를 위해 일 . – Hunt