Login
...or Sign up
Home
Search
Search Code Snippets
Search People
Soporte para acceder a un formulario desde otro
#Region "Soporte para que se pueda acceder a este formulario desde otro" Private Shared m_vb6FormDefInstance As CLASEGLOBAL Private Shared m_InitializingDefInstance As Boolean Public Shared Property DefInstance() As CLASEGLOBAL Get If m_vb6FormDefInstance Is Nothing Then m_InitializingDefInstance = True m_vb6FormDefInstance = New CLASEGLOBAL m_InitializingDefInstance = False End If DefInstance = m_vb6FormDefInstance End Get Set(ByVal Value As CLASEGLOBAL) m_vb6FormDefInstance = Value End Set End Property #End Region
Con la propiedad DefInstance() podemos acceder a un formulario desde otro. Este código iría en una clase global que crearemos y llamaremos por ejemplo CLASEGLOBAL.
Score: 0/10
Would you like to comment?
Sign up
for a free account or
sign in
(if you are already a member).
URL:
Embed:
Uploaded on 7/4/2008 1:16:44 PM
by
Brujit0
Programming Language:
visualbasic.net
Tags:
clases
formularios
propiedad
Viewed 394 times
Help
Help by email
What is Naslu?
|
About Naslu
|
Contact
|
Terms of Use
|
Downloads
|
Webprogramacion.com
|
Blog
|
Top
Links
Select language:
Español
|
English
© 2009 naslu.com