Can any one help

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 9
Reputation: jagdish.ind is an unknown quantity at this point 
Solved Threads: 0
jagdish.ind jagdish.ind is offline Offline
Newbie Poster

Can any one help

 
0
  #1
Jan 9th, 2008
Can i display the text scrolling in bottom of my form in vb.net. if can then plz anyone suggest me how to do. i want to display some texts scrolling at the bottom of my form when i load it. how can i do it in vb.net
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Can any one help

 
0
  #2
Jan 9th, 2008
use timer and label.
try this following code :
  1. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  2. lbl1.Text = Microsoft.VisualBasic.Right _
  3. (lbl1.Text, 1) & Microsoft.VisualBasic.Left _
  4. (lbl1.Text, Len(lbl1.Text) - 1)
  5. End Sub
  6.  
  7. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  8. Me.Timer1.Enabled = True
  9. Me.lbl1.Text = " WELCOME -- "
  10. Me.Timer1.Interval = 200
  11. End Sub

Ok. Hope This Helps...
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 9
Reputation: jagdish.ind is an unknown quantity at this point 
Solved Threads: 0
jagdish.ind jagdish.ind is offline Offline
Newbie Poster

Re: Can any one help

 
0
  #3
Jan 9th, 2008
Originally Posted by Jx_Man View Post
use timer and label.
try this following code :
  1. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  2. lbl1.Text = Microsoft.VisualBasic.Right _
  3. (lbl1.Text, 1) & Microsoft.VisualBasic.Left _
  4. (lbl1.Text, Len(lbl1.Text) - 1)
  5. End Sub
  6.  
  7. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  8. Me.Timer1.Enabled = True
  9. Me.lbl1.Text = " WELCOME -- "
  10. Me.Timer1.Interval = 200
  11. End Sub

Ok. Hope This Helps...
Thanks a lot. i got it but my problem is that the text should scroll at the bottom of the form from right side of the screen to the left side of the screen. the solution you said is scrolling the text at a particular location. i want the text to scroll at the bottom of form from rightmost end of the screen to leftmost end of the screen. hope you can help me in doing so. thanks a lot once again
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: Can any one help

 
0
  #4
Jan 9th, 2008
Dock your label to the bottom of the form.
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Can any one help

 
0
  #5
Jan 10th, 2008
as wayne said dock the label to the bottom of the form. set the label background to transparant on web tab.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 9
Reputation: jagdish.ind is an unknown quantity at this point 
Solved Threads: 0
jagdish.ind jagdish.ind is offline Offline
Newbie Poster

Re: Can any one help

 
0
  #6
Jan 18th, 2008
Thnx a lot for the help. but i m unable to get wht i m trying. hope u can help me more.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 13
Reputation: bector is an unknown quantity at this point 
Solved Threads: 2
bector bector is offline Offline
Newbie Poster

Re: Can any one help

 
0
  #7
Jan 22nd, 2008
i am try to solve your problem with image scroll

This is very simple. In particular, the application receives only filenames and directory names. You can drop a folder onto the viewer or individual files. The current implementation does recurse into sub-folders.

When a drag operation is completed, the application calls GetFiles which parses the DragEventArgs data and adds only files of "jpg", "png", or "bmp" extension. (There isn't any error checking to make sure that those files are actually real image files.)
Collapse

protected ArrayList GetFiles(DragEventArgs e)
{
ArrayList files=new ArrayList();

if ( (e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy)
{
Array data=((IDataObject)e.Data).GetData("FileDrop") as Array;
if (data != null)
{
foreach(string fn in data)
{
string ext=Path.GetExtension(fn).ToLower();
if ( (ext==".jpg") || (ext==".png") || (ext==".bmp") )
{
files.Add(fn);
}
else
{
string[] dirFiles=Directory.GetFiles(fn);
foreach(string fn2 in dirFiles)
{
ext=Path.GetExtension(fn2).ToLower();
if ( (ext==".jpg") || (ext==".png") || (ext==".bmp") )
{
files.Add(fn2);
}
}
}
}
}
}
return files;
}


for any web design you can vist http://webdesigningcompany.net
Last edited by bector; Jan 22nd, 2008 at 3:54 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC