Home All Groups Group Topic Archive Search About

Dang, trivial problem!

Author
20 Jun 2006 1:17 PM
Water Cooler v2
Dang, my status bar text doesn't update. It's got just one panel and it
always shows the text I set at design time. ("Ready").

All I am doing is:


Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnOK.Click

            'Do stuff

            sbr.Panels(0).Text = "The update has been saved."

        End Sub

Author
20 Jun 2006 1:44 PM
Ahmed
Hi,

Did you set the "showPanels" property to true?

Ahmed

Water Cooler v2 wrote:
Show quoteHide quote
> Dang, my status bar text doesn't update. It's got just one panel and it
> always shows the text I set at design time. ("Ready").
>
> All I am doing is:
>
>
> Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnOK.Click
>
>             'Do stuff
>
>             sbr.Panels(0).Text = "The update has been saved."
>
>         End Sub
Author
20 Jun 2006 2:29 PM
chanmm
This is VB.NET code and not C# basically. But create an project and insert
all these files and play with it.

chanmm

Show quoteHide quote
"Water Cooler v2" <wtr_***@yahoo.com> wrote in message
news:1150809467.076798.184540@y41g2000cwy.googlegroups.com...
> Dang, my status bar text doesn't update. It's got just one panel and it
> always shows the text I set at design time. ("Ready").
>
> All I am doing is:
>
>
> Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnOK.Click
>
>            'Do stuff
>
>            sbr.Panels(0).Text = "The update has been saved."
>
>        End Sub
>

[attached file: Form1.resx]
[attached file: Form1.cs]
[attached file: Form1.Designer.cs]
Author
20 Jun 2006 5:01 PM
Nicholas Paldino [.NET/C# MVP]
I'd check to see if an exception is thrown.  If one is thrown, the
control is going to swallow it up.  My guess is that you don't have a panel
set up correctly.


--
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com

Show quoteHide quote
"Water Cooler v2" <wtr_***@yahoo.com> wrote in message
news:1150809467.076798.184540@y41g2000cwy.googlegroups.com...
> Dang, my status bar text doesn't update. It's got just one panel and it
> always shows the text I set at design time. ("Ready").
>
> All I am doing is:
>
>
> Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnOK.Click
>
>            'Do stuff
>
>            sbr.Panels(0).Text = "The update has been saved."
>
>        End Sub
>