Results 1 to 16 of 16

Thread: status bar

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    status bar

    Hi

    How can i display the message in status bar like marquee

    thanks

    asm

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: status bar

    You'd just have to keep changing the text and adding and/or removing spaces and/or other characters.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: status bar

    i want to get the text from textbox and display in mdi form status bar

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: status bar

    So are you saying, without actually saying, that you want to get the text from a TextBox on a child form and display it in a StatusStrip in the MDI parent form? The character limit is quite high so don't be afraid to explain yourself fully.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: status bar

    Firstly i thnink that the message should be display on os status bar..
    But later i relise that that would be not a good because i want to display the message like marque ...
    So now i create a status bar strip on my mdi form and want to display the message in that like marque..

    Can have a suggestion on that .. how to achive the result,,,

  6. #6
    Addicted Member
    Join Date
    Jan 2002
    Location
    West Virginia
    Posts
    193

    Re: status bar

    Do you mean a scrolling text like this. Put it in a timer.
    Code:
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            lblMarque.Text = str
            str = str.Substring(str.Length - 1) & str.Substring(0, str.Length - 1)
        End Sub

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: status bar

    yes moving the text but in status bar strip of mdi parent form

  8. #8
    Addicted Member
    Join Date
    Jan 2002
    Location
    West Virginia
    Posts
    193

    Re: status bar

    Use a timer as I did above but put the text in a label of the status bar.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: status bar

    but when the application run the form has resize according to system resolution and but the label .. which i put on status bar .. move to actual location as on design time .. but status bar is resize according to form resize.. it alway in bottom...
    So tell how can i fix the label whould move according to status bar

  10. #10
    Addicted Member
    Join Date
    Jan 2002
    Location
    West Virginia
    Posts
    193

    Re: status bar

    Am I reading you right? Are you putting a label over the status bar or are you using a label inside the status bar? The label inside the status bar will change resolutions as the status bar does.

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: status bar

    No, I am putting the label over the status bar...

  12. #12
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: status bar

    Please always specify your version when posting. Are you using a StatusStrip in VB 2005 or a StatusBar in an earlier version. Once we know that we can tell you the proper way to go about this.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: status bar

    I am using vb.net 2003 and the text is moving from left to right but i want it from right to left

  14. #14
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: status bar

    Quote Originally Posted by asm
    I am using vb.net 2003 and the text is moving from left to right but i want it from right to left
    Hi,

    Here's an example how to scroll text from right to left:

    Code:
     Const SCROLL_AMOUNT As Integer = 10
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If Me.lblscroll.Right <= 0 Then
                'Innemen van de tekst aan de rechterzijde.
                Me.lblscroll.Left = Me.Panel1.Width
            Else
                'Tekst van rechts naar links laten lopen.
                Me.lblscroll.Left -= SCROLL_AMOUNT
            End If
    
        End Sub
    I'v used a panel1 and put a label on it.

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  15. #15
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: status bar

    And you are actually adding a Label control to your form and placing it over the StatusBar, correct?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  16. #16
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: status bar

    Which statusbar? He talks about the OS StatusBar at one point:
    'Firstly i thnink that the message should be display on os status bar.. '

    Do you mean a statusBar that is in your project, or the actual Start/TaskBar?
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width