|
-
Apr 6th, 2007, 01:40 AM
#1
Thread Starter
Hyperactive Member
status bar
Hi
How can i display the message in status bar like marquee
thanks
asm
-
Apr 6th, 2007, 01:49 AM
#2
Re: status bar
You'd just have to keep changing the text and adding and/or removing spaces and/or other characters.
-
Apr 6th, 2007, 01:51 AM
#3
Thread Starter
Hyperactive Member
Re: status bar
i want to get the text from textbox and display in mdi form status bar
-
Apr 6th, 2007, 01:54 AM
#4
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.
-
Apr 9th, 2007, 01:18 AM
#5
Thread Starter
Hyperactive Member
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,,,
-
Apr 9th, 2007, 04:08 AM
#6
Addicted Member
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
-
Apr 9th, 2007, 05:40 AM
#7
Thread Starter
Hyperactive Member
Re: status bar
yes moving the text but in status bar strip of mdi parent form
-
Apr 9th, 2007, 07:16 AM
#8
Addicted Member
Re: status bar
Use a timer as I did above but put the text in a label of the status bar.
-
Apr 9th, 2007, 07:21 AM
#9
Thread Starter
Hyperactive Member
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
-
Apr 9th, 2007, 08:10 AM
#10
Addicted Member
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.
-
Apr 10th, 2007, 12:26 AM
#11
Thread Starter
Hyperactive Member
Re: status bar
No, I am putting the label over the status bar...
-
Apr 10th, 2007, 12:36 AM
#12
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.
-
Apr 10th, 2007, 05:03 AM
#13
Thread Starter
Hyperactive Member
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
-
Apr 10th, 2007, 05:22 AM
#14
Re: status bar
 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
-
Apr 10th, 2007, 05:23 AM
#15
Re: status bar
And you are actually adding a Label control to your form and placing it over the StatusBar, correct?
-
Apr 10th, 2007, 07:20 AM
#16
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|