| | |
Can any one help
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
use timer and label.
try this following code :
Ok. Hope This Helps...
try this following code :
VB.NET Syntax (Toggle Plain Text)
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick lbl1.Text = Microsoft.VisualBasic.Right _ (lbl1.Text, 1) & Microsoft.VisualBasic.Left _ (lbl1.Text, Len(lbl1.Text) - 1) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Timer1.Enabled = True Me.lbl1.Text = " WELCOME -- " Me.Timer1.Interval = 200 End Sub
Ok. Hope This Helps...
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Jan 2008
Posts: 9
Reputation:
Solved Threads: 0
•
•
•
•
use timer and label.
try this following code :
VB.NET Syntax (Toggle Plain Text)
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick lbl1.Text = Microsoft.VisualBasic.Right _ (lbl1.Text, 1) & Microsoft.VisualBasic.Left _ (lbl1.Text, Len(lbl1.Text) - 1) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Timer1.Enabled = True Me.lbl1.Text = " WELCOME -- " Me.Timer1.Interval = 200 End Sub
Ok. Hope This Helps...
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 *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Jan 2008
Posts: 13
Reputation:
Solved Threads: 2
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
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.
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: How To Upload Image In Vb.net
- Next Thread: a list of items
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net .net2008 2008 access advanced application array basic beginner browser button buttons center click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function html images input lib listview map mobile module monitor msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search serial settings shutdown socket sorting sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol validation vb vb.net vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms winsock wpf wrapingcode xml year






