Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie learning implements statement
Message
From
12/09/2006 12:14:38
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Newbie learning implements statement
Environment versions
Environment:
VB 8.0
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01153073
Message ID:
01153073
Views:
51
Dear Expert,

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?

Please help..

Thanks & Regards
Winanjaya


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
Next
Reply
Map
View

Click here to load this message in the networking platform