Environment versions
Network:
Windows 2000 Server
>I am learning to use implements statement for my VB 2005 application (see below), I am confusing why the messagebox works correctly but the button status (enable/disable) not working.. am I missing something?
>
>Public Interface IMyTest
>Sub Test1()
>Sub Test2()
>End Interface
>
>Public Class MyTest
>Implements IMyTest
>
>Public Sub Test1() Implements IMyTest.Test1
>MessageBox.show("Hello TEST1 !!!") 'This messagebox shown correctly
>button1.enabled = false ' this button's enable status not working
>End Sub
>
>Public Sub Test2() Implements IMyTest.Test2
>MessageBox.show("Hello TEST2 !!!") 'This messagebox shown correctly
>button1.enabled = true ' this button's enable status not working
>End Sub
>
>End Class
What's button1? You've no such animal in the MyText class....
Regards,
Viv
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only