Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie learning implements statement
Message
From
12/09/2006 14:01:30
 
 
To
12/09/2006 12:14:38
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01153073
Message ID:
01153111
Views:
15
>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
Map
View

Click here to load this message in the networking platform