471,347 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Public Properties

Hello.
I have a mdi parent form, and I want to change the values of its
status bar
from child forms, I tried with public properties, but it only works in
the
mdiparet, not from a child from...
... here is the code
Public Property myStatusBarText() As String
Get
Return sbMain.Panels(1).Text()
' Return textoControl
End Get
Set(ByVal Value As String)
' Only allow Set operation for values less than 10.
sbMain.Panels(1).Text = Value
End Set
End Property

how do I use it from child forms????

Jul 26 '05 #1
2 1086
Please always tell what you mean by "doesn't work"...

What have you tried and what fails ? Could it be a casting problem ? Have
you tried to cast the MdiParent property to the type of this form ?

--
Patrice

"Edinson" <Ed*****@discussions.microsoft.com> a écrit dans le message de
news:38**********************************@microsof t.com...
Hello.
I have a mdi parent form, and I want to change the values of its
status bar
from child forms, I tried with public properties, but it only works in
the
mdiparet, not from a child from...
... here is the code
Public Property myStatusBarText() As String
Get
Return sbMain.Panels(1).Text()
' Return textoControl
End Get
Set(ByVal Value As String)
' Only allow Set operation for values less than 10.
sbMain.Panels(1).Text = Value
End Set
End Property

how do I use it from child forms????

Jul 26 '05 #2

Thanx Patrice.... I have resolvet it... I had not declared my mdi parent in
my sub main. it is working now.

"Patrice" wrote:
Please always tell what you mean by "doesn't work"...

What have you tried and what fails ? Could it be a casting problem ? Have
you tried to cast the MdiParent property to the type of this form ?

--
Patrice

"Edinson" <Ed*****@discussions.microsoft.com> a écrit dans le message de
news:38**********************************@microsof t.com...
Hello.
I have a mdi parent form, and I want to change the values of its
status bar
from child forms, I tried with public properties, but it only works in
the
mdiparet, not from a child from...
... here is the code
Public Property myStatusBarText() As String
Get
Return sbMain.Panels(1).Text()
' Return textoControl
End Get
Set(ByVal Value As String)
' Only allow Set operation for values less than 10.
sbMain.Panels(1).Text = Value
End Set
End Property

how do I use it from child forms????


Jul 26 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Earl Teigrob | last post: by
3 posts views Thread by Joe Fromm | last post: by
2 posts views Thread by pietaster | last post: by
4 posts views Thread by louise raisbeck | last post: by
27 posts views Thread by thomasp | last post: by
5 posts views Thread by Tony Johansson | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.