.Net Basic

This blogs gives introduction to C#.NET programming for beginners. This blogs assumes that you have no programming experience whatsoever. It's a lot easier than you think, and can be a very rewarding hobby!after Refer this blog

26 June 2009

Marquee in c#.net windows Application

Note:
Make Use of timer control and write this below function in Timer control Ticker Events and also Set timer Enabled = true
private void TmrPPT_Tick(object sender, EventArgs e)
{

string strScrollText= " Welcome to .Netbasic";
if (!(intPosition <= strScrollText.Length))
{
intPosition = 0;
}
LblScrollingText.Text = strScrollText.Substring(intPosition);
intPosition = intPosition + 1;

}

Labels: ,

2 Comments:

At May 27, 2012 at 4:00 AM , Anonymous Anonymous said...

POOR CODING.. NO DEPTH

 
At July 24, 2012 at 3:00 PM , Blogger Unknown said...

Thanks Mr.Mohan


int intPosition = 0;
private void timer1_Tick(object sender, EventArgs e)
{
string strScrollText = "^ Welcome to Scrolling Text Process ^";
string strScroll2 = "^ Welcome to Scrolling Text Process ^";
if (!(intPosition <= strScrollText.Length))
{
intPosition = 0;
}
label1.Text = strScrollText.Substring(intPosition) + strScroll2.Substring(0, intPosition);
intPosition = intPosition + 1;
}

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home