[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

StatusStrip message in VB.NET 2008

Posted on 2009-05-19
6
Medium Priority
?
345 Views
Last Modified: 2013-12-26
This is driving me crazy!  I cannot get my statusstrip/statuslabel to show any text.  I have put the control on the form, created the status label with the text property set to ready, and hit F5 and nothin'.  What the hell am I missing here?

Thanks,
Cheese
0
Comment
Question by:cheesebugah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 24425526
It's working fine for me...can you explain more what you're doing?

Public Class Form1
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ToolStripStatusLabel1.Text = "Hello World!"
    End Sub
 
End Class

Open in new window

StatusStrip-Before-.jpg
StatusStrip-After-.jpg
0
 

Author Comment

by:cheesebugah
ID: 24425652
Sure, I added the statusstrip to a form that has some other controls on it, created the status label and gave it the text property of Ready.  I created a sub routine shown here:

'  sets status message
   Public Sub statusMessage(ByVal strMessage As String)

      Debug.WriteLine(strMessage)
      staMessage.Text = strMessage
      Me.Refresh()

   End Sub ' statusMessage

Under the form load event I have this:

statusMessage("Ready")

Now, I have this same setup in a previous program and it works beautifully throughout the program.  I do not know why upon form load, I get nothing being displayed.  It's almost like its disabled or something.  I even tried enabling it before statusMessage("Ready"), but nothin'.
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 1000 total points
ID: 24425707
Check the Visible() Property of "staMessage".  It might be false...allowing it only to be seen on the form at design-time.  Other than that I'm not sure...try creating a new project and see if the problem persists.  That would at least tell us if the problem is isolated to that particular project.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:cheesebugah
ID: 24425804
Idle_Mind,

Yeah, I already checked that.  The default is "Visible."  It's really weird, if I just say staMessage.text = "Ready" I still get nothing.  I swear there's something we're missing here.

Thanks,
Cheese
0
 

Author Comment

by:cheesebugah
ID: 24425846
Idle_Mind,

Okay, I created a new project and bam, it works like a charm.  So, I deleted the one off of the current project and recreated it and bam it works like a charm.  Bizarre!  Anyway, thanks for the advice.  Good luck to you pal.

Thaanks,
Cheese
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 24425936
Glad you got it fixed!  =)

(Unfortunately, Visual Studio isn't a perfect product...sometimes forms/projects get "corrupt")
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question