text like marque

3 views
Skip to first unread message

pari

unread,
Jun 14, 2008, 11:57:30 AM6/14/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
hi
please help me out for this
how to make text moving left to right and from right to left like
marque in web
but i want to apply in window based application like say C#.Net...
reply soon.....

sallushan

unread,
Jun 15, 2008, 11:42:10 PM6/15/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
You can use simple control cordinates or GDI+ ,

Example:
private void ScrollLabel()
{
this.Label1.Text = "I am Scrolling";
for (x = 500; x >= 0; x--) {
this.Label1.Left = x;
Application.DoEvents();
}
}

As you can see the above code will move the Label1 from 500 to 0
(horizontally)

But above code is just to give you the idea, DO NOT USE AS IT IS.

Implement Threading OR at least Timer. You may notice the Flickering
using movement, which can be resolved by using GDI+

Regards,
Arsalan Tamiz
http://arsalantamiz.blogspot.com (Visual Basic Development Issues/Tips/
Tricks/How To)
http://vbshortprojects.blogspot.com

Anil Srivastava

unread,
Jun 18, 2008, 2:34:26 AM6/18/08
to DotNetDe...@googlegroups.com
Hi Salu...
But Label1 does not have a property like Left

Glenn

unread,
Jun 18, 2008, 6:53:38 AM6/18/08
to DotNetDe...@googlegroups.com
Yes it does.  There is also Top, Width and Height.
 
...Glenn

 

sallushan

unread,
Jun 18, 2008, 5:01:02 AM6/18/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
But the label I have, has a Left property :)

Which platform you are using?

I was talking about Label Control in Visual C# 2005, Windows Forms
Application.

Regards,
Arsalan Tamiz
http://arsalantamiz.blogspot.com (Visual Basic Development Issues/Tips/
Tricks/How To)
http://vbshortprojects.blogspot.com
http://vbshortprojects.blogspot.com/2008/06/urdu-text-editor.html
(Urdu Text Editor)


On Jun 18, 11:34 am, "Anil Srivastava" <anilsri...@gmail.com> wrote:
> Hi Salu...
> But  Label1 does not have a property like Left
>
> On 6/16/08, sallushan <sallus...@gmail.com> wrote:
>
>
>
>
>
> > You can use simple control cordinates or GDI+ ,
>
> > Example:
> > private void ScrollLabel()
> > {
> >     this.Label1.Text = "I am Scrolling";
> >     for (x = 500; x >= 0; x--) {
> >         this.Label1.Left = x;
> >         Application.DoEvents();
> >     }
> > }
>
> > As you can see the above code will move the Label1 from 500 to 0
> > (horizontally)
>
> > But above code is just to give you the idea, DO NOT USE AS IT IS.
>
> > Implement Threading OR at least Timer. You may notice the Flickering
> > using movement, which can be resolved by using GDI+
>
> > Regards,
> > Arsalan Tamiz
> >http://arsalantamiz.blogspot.com(Visual Basic Development Issues/Tips/
> > Tricks/How To)
> >http://vbshortprojects.blogspot.com
>
> > On Jun 14, 8:57 pm, pari <casper.prash...@gmail.com> wrote:
> >> hi
> >> please help me out for this
> >> how to make text moving left to right and from right to left like
> >> marque in web
> >> but i want to apply in window based application like say C#.Net...
> >> reply soon.....- Hide quoted text -
>
> - Show quoted text -

Glenn

unread,
Jun 18, 2008, 8:45:03 AM6/18/08
to DotNetDe...@googlegroups.com
The OP stated C# in a Windows application, so that would lead us to believe the same control that you are referring to.  I suspect he/she is just not looking in the right place.
 
...Glenn

 

Cerebrus

unread,
Jun 18, 2008, 12:30:03 PM6/18/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Maybe that property got "left" out in his particular installation.

On Jun 18, 5:45 pm, Glenn <ke4ktza...@gmail.com> wrote:
> The OP stated C# in a Windows application, so that would lead us to believe
> the same control that you are referring to. I suspect he/she is just not
> looking in the right place.
>
> ...Glenn
>
> On 6/18/08, sallushan <sallus...@gmail.com> wrote:
>
>
>
> > But the label I have, has a Left property :)
>
> > Which platform you are using?
>
> > I was talking about Label Control in Visual C# 2005, Windows Forms
> > Application.
>
> > Regards,
> > Arsalan Tamiz
> >http://arsalantamiz.blogspot.com(Visual Basic Development Issues/Tips/

Glenn

unread,
Jun 18, 2008, 12:35:15 PM6/18/08
to DotNetDe...@googlegroups.com
Or, maybe it just up and "left" him.

Jamie Fraser

unread,
Jun 18, 2008, 1:29:38 PM6/18/08
to DotNetDe...@googlegroups.com
I can't think of any jokes. I feel a bit Left out....

sallushan

unread,
Jun 18, 2008, 1:51:29 PM6/18/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
By the way he/she is "HE" :)

On Jun 18, 5:45 pm, Glenn <ke4ktza...@gmail.com> wrote:
> The OP stated C# in a Windows application, so that would lead us to believe
> the same control that you are referring to.  I suspect he/she is just not
> looking in the right place.
>
> ...Glenn
>
> On 6/18/08, sallushan <sallus...@gmail.com> wrote:
>
>
>
>
>
> > But the label I have, has a Left property :)
>
> > Which platform you are using?
>
> > I was talking about Label Control in Visual C# 2005, Windows Forms
> > Application.
>
> > Regards,
> > Arsalan Tamiz
> >http://arsalantamiz.blogspot.com(Visual Basic Development Issues/Tips/
> > (Urdu Text Editor)- Hide quoted text -

Glenn

unread,
Jun 18, 2008, 2:12:50 PM6/18/08
to DotNetDe...@googlegroups.com
Sorry, if we would have known you were coming, we would have Left you something to work with!

Glenn

unread,
Jun 18, 2008, 2:13:41 PM6/18/08
to DotNetDe...@googlegroups.com
Thanks.  I didn't want to "assume" the correct gender.
 
...Glenn

 
On 6/18/08, sallushan <sall...@gmail.com> wrote:

Anil Srivastava

unread,
Jun 19, 2008, 9:45:47 AM6/19/08
to DotNetDe...@googlegroups.com
Thanking You sallushan
You are Right
Yaar ye Lallu aur bevkuf aadmi tumhaare naam ka bhi matlab nahin jante hai .

main web application ki baat kar raha thaa csharp for web application 2005.

Cerebrus

unread,
Jun 19, 2008, 12:16:20 PM6/19/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
We were talking about you, not sallushan. So who's the dumb idiot
now ?

P.S.: This is an English language group. If you want to communicate in
Hindi, please find some other mode of communication.

On Jun 19, 6:45 pm, "Anil Srivastava" <anilsri...@gmail.com> wrote:
> Thanking You sallushan
> You are Right
> Yaar ye Lallu aur bevkuf aadmi tumhaare naam ka bhi matlab nahin jante hai .
>
> main web application ki baat kar raha thaa csharp for web application 2005.
>
> On 6/18/08, Glenn <ke4ktza...@gmail.com> wrote:
>
>
>
> > Thanks. I didn't want to "assume" the correct gender.
>
> > ...Glenn
>

Glenn

unread,
Jun 19, 2008, 12:19:26 PM6/19/08
to DotNetDe...@googlegroups.com
Care to translate what he said?
 
...Glenn

 
On 6/19/08, Cerebrus <zor...@sify.com> wrote:

We were talking about you, not sallushan. So who's the dumb idiot
now ?

P.S.: This is an English language group. If you want to communicate in
Hindi, please find some other mode of communication.



--
------------------------------------------------------
http://onefryshort.org/
http://blog.onefryshort.org/
------------------------------------------------------

Cerebrus

unread,
Jun 19, 2008, 12:27:29 PM6/19/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Sure thing, bud !
---
"These dumb idiots don't even understand the meaning of your name.
I was talking about Web applications C# for Web apps 2005."
---
BTW, I have no idea what sallushan means. Must be a nick.

:-)

On Jun 19, 9:19 pm, Glenn <ke4ktza...@gmail.com> wrote:
> Care to translate what he said?
>
> ...Glenn
>

Michael (blog.crisatunity.com)

unread,
Jun 19, 2008, 12:29:35 PM6/19/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
It is absolutely acceptable English usage to use "he" as a genderless
pronoun (although the political correctness crowd will disagree) when
gender is unknown, reasonably understood to be unknown (as it was for
you) or overwhelmingly likely to be male (as this forum is).

The PC crowd has not eliminated this multi-century practice (yet),
although they are doing a great job at it. Alternatively (and mostly
acceptable) is using the plurals, they or their, in singular contexts
to conceal gender.

Cerebrus

unread,
Jun 19, 2008, 12:34:04 PM6/19/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Yeah, I often lament the severe scarcity of women in our group... and
the ones that are here (lurkers included) aren't feminists
thankfully !

My sis is a big proponent of Women's lib and it already drives me up
the wall. :-)

On Jun 19, 9:29 pm, "Michael (blog.crisatunity.com)"

Glenn

unread,
Jun 19, 2008, 12:44:23 PM6/19/08
to DotNetDe...@googlegroups.com
I've been called worse!!
 
I do think it is rude to call someone an idiot who doesn't understand the meaning of words in a language that is not their native tongue.
 
The OP was talking about a C# Windows app, not a web app.  So, who's the idiot now? :))
 
...Glenn

 
On 6/19/08, Cerebrus <zor...@sify.com> wrote:

Sure thing, bud !
---
"These dumb idiots don't even understand the meaning of your name.
I was talking about Web applications C# for Web apps 2005."
---
BTW, I have no idea what sallushan means. Must be a nick.

:-)

Glenn

unread,
Jun 19, 2008, 12:46:18 PM6/19/08
to DotNetDe...@googlegroups.com
I know, I was just trying to be polite!  I know the languages I have studied are the same way, but I'm not up on my Indian protocols.
 
...Glenn

 
On 6/19/08, Michael (blog.crisatunity.com) <mic...@crisatunity.com> wrote:

It is absolutely acceptable English usage to use "he" as a genderless
pronoun (although the political correctness crowd will disagree) when
gender is unknown, reasonably understood to be unknown (as it was for
you) or overwhelmingly likely to be male (as this forum is).

The PC crowd has not eliminated this multi-century practice (yet),
although they are doing a great job at it.  Alternatively (and mostly
acceptable) is using the plurals, they or their, in singular contexts
to conceal gender.



sallushan

unread,
Jun 19, 2008, 11:47:44 PM6/19/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Good so you (Cerebus) can understand Urdu I think that was almost NOT
Hindi

And "sallu" is nick which didnt mean anything and "shan" <- Urdu Word
= blaze

The one who asked the question, didnt reply all the way... :)
> > ------------------------------------------------------- Hide quoted text -

Anil Srivastava

unread,
Jun 21, 2008, 7:21:49 AM6/21/08
to DotNetDe...@googlegroups.com
finally--- you all agreed that I am "He".
my name simply suggests that  I am "He" this is common sense.
I love all the members of the group 

Jamie Fraser

unread,
Jun 21, 2008, 1:38:32 PM6/21/08
to DotNetDe...@googlegroups.com
To a Westerner, the name Anil isn't obviously male. Much like my name,
which can be used by both men and women :(

Michael (blog.crisatunity.com)

unread,
Jun 21, 2008, 8:46:34 PM6/21/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
You mean you aren't a chick? I'm having a "Crying Game" moment right
now. ;)

prashant gupta

unread,
Jun 22, 2008, 9:27:06 PM6/22/08
to DotNetDe...@googlegroups.com
thanks budy it solve my problem

sumit bide

unread,
Jun 23, 2008, 3:20:25 AM6/23/08
to DotNetDe...@googlegroups.com
Hi,
 Only  U have to write few lines ------
take a label and change it's name to some text that u have to move e.g. "Sumit"
then take a one Timer on ur form & one Button
 
on button_click Event write
 
Timer1.Enabled=true;
 
and on timer_tick event of timer write
 
label1.left=label1.left+20;
 
this will start Ur text Moving from left to right
 
ok Bye..........

Anil Srivastava

unread,
Jun 25, 2008, 10:37:26 AM6/25/08
to DotNetDe...@googlegroups.com
Thanking you Jamie.
From the very beginning I was always thinking that you are a great programmer.
In both ways you are acceptable.

Cerebrus

unread,
Jun 25, 2008, 1:57:45 PM6/25/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Lol ! TMML.

On Jun 25, 7:37 pm, "Anil Srivastava" <anilsri...@gmail.com> wrote:
> Thanking you Jamie.
> From the very beginning I was always thinking that you are a great
> programmer.
> In both ways you are acceptable.
>
> On Sat, Jun 21, 2008 at 5:38 AM, Jamie Fraser <jamie.fra...@gmail.com>
> wrote:
>
>
>
> > To a Westerner, the name Anil isn't obviously male. Much like my name,
> > which can be used by both men and women :(
>
> > On Sat, Jun 21, 2008 at 12:21 PM, Anil Srivastava <anilsri...@gmail.com>
> > wrote:
> > > finally--- you all agreed that I am "He".
> > > my name simply suggests that I am "He" this is common sense.
> > > I love all the members of the group
>

vb.dude

unread,
Jun 25, 2008, 8:14:38 AM6/25/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I'd say have a timer for the .Left property, and tell it to reset the
move amount when it gets to 0 or the desired amount.
Then you can just enable/disable it when you need it.
Reply all
Reply to author
Forward
0 new messages