Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: sqlconnection :S :S Pin
Greeky27-Apr-06 8:25
Greeky27-Apr-06 8:25 
AnswerRe: sqlconnection :S :S Pin
Rob Philpott27-Apr-06 5:42
Rob Philpott27-Apr-06 5:42 
Questioncreating shortcutkey Pin
dayakar_dn26-Apr-06 23:46
dayakar_dn26-Apr-06 23:46 
AnswerRe: creating shortcutkey Pin
Robert Rohde27-Apr-06 0:57
Robert Rohde27-Apr-06 0:57 
Questionhow to display an image one by one Pin
tjpraveen2326-Apr-06 23:09
tjpraveen2326-Apr-06 23:09 
AnswerRe: how to display an image one by one Pin
Ed.Poore26-Apr-06 23:46
Ed.Poore26-Apr-06 23:46 
GeneralRe: how to display an image one by one Pin
tjpraveen2327-Apr-06 1:15
tjpraveen2327-Apr-06 1:15 
GeneralRe: how to display an image one by one Pin
Ed.Poore27-Apr-06 1:26
Ed.Poore27-Apr-06 1:26 
All you need for a simple solution is a PictureBox for displaying the picture, a timer for changing the pictures that's it.

If you create an array of strings to hold the filenames and another variable to hold the index of the picture that's currently being displayed then the code in the timer's Tick event can be something like this:
private void timer_Tick(object sender, EventArgs e)
{
	// Increment the index pointer
	this.index = ((this.index++) % (this.images.Count));
	// Display the picture
	this.pictureBox.Image = Image.FromFile(this.images[this.index]);
}


Et voila!

Of course this is a quick and dirty solution, you should be able to expand on it.


You know you're a Land Rover owner when the best route from point A to point B is through the mud.

Ed
Questioncreating backup and restoring Pin
jinup26-Apr-06 22:11
jinup26-Apr-06 22:11 
AnswerRe: creating backup and restoring Pin
Ed.Poore27-Apr-06 3:43
Ed.Poore27-Apr-06 3:43 
QuestionC# com add-in integrated visio problem Pin
salman_syed_0126-Apr-06 21:55
salman_syed_0126-Apr-06 21:55 
QuestionGetting a text from a textbox Pin
praveenqwe26-Apr-06 21:19
praveenqwe26-Apr-06 21:19 
AnswerRe: Getting a text from a textbox Pin
J4amieC26-Apr-06 21:56
J4amieC26-Apr-06 21:56 
QuestionGetting a text from a textbox Pin
praveenqwe26-Apr-06 21:13
praveenqwe26-Apr-06 21:13 
AnswerRe: Getting a text from a textbox Pin
chakkara200327-Apr-06 1:11
chakkara200327-Apr-06 1:11 
QuestionPlease Help Me Pin
dayakar_dn26-Apr-06 21:11
dayakar_dn26-Apr-06 21:11 
AnswerRe: Please Help Me Pin
J4amieC26-Apr-06 21:54
J4amieC26-Apr-06 21:54 
Questiondiffrences between oledb & odbc Pin
rah_sin26-Apr-06 20:55
professionalrah_sin26-Apr-06 20:55 
QuestionPlease Help Me Pin
dayakar_dn26-Apr-06 20:52
dayakar_dn26-Apr-06 20:52 
AnswerRe: Please Help Me Pin
Rob Philpott26-Apr-06 22:49
Rob Philpott26-Apr-06 22:49 
QuestionDesign Mode Pin
smarttom9926-Apr-06 19:28
smarttom9926-Apr-06 19:28 
AnswerRe: Design Mode Pin
alexey N26-Apr-06 20:24
alexey N26-Apr-06 20:24 
QuestionRepeated : Visio 2003 Problem or my add-in problem Pin
salman_syed_0126-Apr-06 18:43
salman_syed_0126-Apr-06 18:43 
Questiondata from client into hashtable on server Pin
salman_syed_0126-Apr-06 18:36
salman_syed_0126-Apr-06 18:36 
QuestionWeb hosting in intranet Pin
Jijo BP26-Apr-06 17:07
Jijo BP26-Apr-06 17:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.