클래스 맨 위에 UserControl private 형식의 변수가 있습니다.VB6 UserControl에 대한 참조
일부 조건에 따라 내 두 UserControl 중 하나가 표시됩니다. 문제는 보이는 UserControl에 대한 UserControl 유형의 전역 개인 변수를 나중에 사용하기 위해 참조가 있도록 설정하려고했기 때문입니다. 나는 항상 Error Type Mismatch가있다.
Private mo_SelectedControl As UserControl
'...
'...Some where in a Sub:
set SelectedControl = myUserControl
나는 myUserControl.object로 시도했지만 둘 다 작동하지 않습니다. 어떤 생각?
개체를 사용할 수도 있습니다. ;) – AnthonyWJones