Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
AnswerRe: Translate into C# Pin
pmarfleet18-Nov-07 21:09
pmarfleet18-Nov-07 21:09 
GeneralRe: Translate into C# Pin
Programm3r18-Nov-07 21:16
Programm3r18-Nov-07 21:16 
GeneralRe: Translate into C# Pin
pmarfleet18-Nov-07 21:20
pmarfleet18-Nov-07 21:20 
GeneralRe: Translate into C# Pin
Programm3r18-Nov-07 21:22
Programm3r18-Nov-07 21:22 
AnswerRe: Translate into C# Pin
Hari Om Prakash Sharma18-Nov-07 22:06
Hari Om Prakash Sharma18-Nov-07 22:06 
QuestionTimer Display data from database Pin
jacklynn_mei18-Nov-07 21:06
jacklynn_mei18-Nov-07 21:06 
AnswerRe: Timer Display data from database Pin
Abhijit Jana18-Nov-07 21:35
professionalAbhijit Jana18-Nov-07 21:35 
GeneralRe: Timer Display data from database Pin
jacklynn_mei18-Nov-07 22:24
jacklynn_mei18-Nov-07 22:24 
I have done something like the code below.
It will display the data but, it won't display for 10 seconds
it will read all the data from database then only the timer stop for 10 seconds.
What i'm expected is, each data display at 10 seconds of time then only continue to the next data and so on...


public load(....)
{
Timer myTimer = new Timer();
myTimer.Interval = 10000;
myTimer.Enabled = true;
myTimer.Tick += new EventHandler(Timer_Tick);
}

public void Timer_Tick(object sender, EventArgs e)
{
string conStrg;
conStrg = ("Data Source=DIMENSION3000\\SQLEXPRESS;Initial Catalog=kMasjid;User ID=sa;password=123456");
SqlConnection connTimer = new SqlConnection(conStrg);
connTimer.Open();
string selSQL = "Select txtDesc FROM txtScroll";
SqlCommand com = new SqlCommand(selSQL, connTimer);
SqlDataReader reader = com.ExecuteReader();
DataSet ds = new DataSet();


while (reader.Read())
{
alphaTxtMain.Text = " " + reader["txtDesc"];
myTimer.Interval = 10000;
myTimer.Stop();
}
GeneralRe: Timer Display data from database Pin
NassosReyzidis19-Nov-07 4:39
NassosReyzidis19-Nov-07 4:39 
AnswerRe: Timer Display data from database Pin
sindhutiwari18-Nov-07 22:27
sindhutiwari18-Nov-07 22:27 
GeneralRe: Timer Display data from database Pin
jacklynn_mei18-Nov-07 22:56
jacklynn_mei18-Nov-07 22:56 
GeneralRe: Timer Display data from database Pin
sindhutiwari18-Nov-07 23:00
sindhutiwari18-Nov-07 23:00 
GeneralRe: Timer Display data from database Pin
jacklynn_mei19-Nov-07 14:21
jacklynn_mei19-Nov-07 14:21 
AnswerRe: Timer Display data from database Pin
KennyPatel19-Nov-07 0:22
KennyPatel19-Nov-07 0:22 
QuestionAbout InvalidOperationEception Pin
jason_mf18-Nov-07 21:05
jason_mf18-Nov-07 21:05 
AnswerRe: About InvalidOperationEception Pin
JoeRip18-Nov-07 21:39
JoeRip18-Nov-07 21:39 
GeneralRe: About InvalidOperationEception [modified] Pin
jason_mf18-Nov-07 22:16
jason_mf18-Nov-07 22:16 
GeneralRe: About InvalidOperationEception Pin
JoeRip18-Nov-07 22:45
JoeRip18-Nov-07 22:45 
Questionquestion concerning windows service Pin
stephan_00718-Nov-07 21:05
stephan_00718-Nov-07 21:05 
AnswerRe: question concerning windows service [modified] Pin
Jimmanuel19-Nov-07 2:07
Jimmanuel19-Nov-07 2:07 
AnswerRe: question concerning windows service Pin
PIEBALDconsult19-Nov-07 4:32
mvePIEBALDconsult19-Nov-07 4:32 
QuestionChanging Column Balue Before Insert in Data Grid Pin
Aftab Sindhi18-Nov-07 20:55
Aftab Sindhi18-Nov-07 20:55 
QuestionGraphical Grid in c#.net Pin
sindhutiwari18-Nov-07 20:47
sindhutiwari18-Nov-07 20:47 
QuestionHow to refresh child picturebox when moving (with mouse) on parent picturebox. Pin
Chintan.Desai18-Nov-07 20:13
Chintan.Desai18-Nov-07 20:13 
QuestionBarcode reader events handillinh Pin
shahid hameed18-Nov-07 20:04
shahid hameed18-Nov-07 20:04 

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.