Hi
How can i display the message in status bar like marquee
thanks
asm
Printable View
Hi
How can i display the message in status bar like marquee
thanks
asm
You'd just have to keep changing the text and adding and/or removing spaces and/or other characters.
i want to get the text from textbox and display in mdi form 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.
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,,,
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
yes moving the text but in status bar strip of mdi parent form
Use a timer as I did above but put the text in a label of the 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
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.
No, I am putting the label over the 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.
I am using vb.net 2003 and the text is moving from left to right but i want it from right to left
Hi,Quote:
Originally Posted by asm
Here's an example how to scroll text from right to left:
I'v used a panel1 and put a label on it.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
Wkr,
sparrow1
And you are actually adding a Label control to your form and placing it over the StatusBar, correct?
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?