Click here to Skip to main content
16,005,037 members
Home / Discussions / C#
   

C#

 
GeneralRe: add text drag and drop for a console application Pin
Vasudevan Deepak Kumar22-Nov-07 20:48
Vasudevan Deepak Kumar22-Nov-07 20:48 
GeneralRe: add text drag and drop for a console application Pin
carabutnicolae123422-Nov-07 21:22
carabutnicolae123422-Nov-07 21:22 
QuestionDisplaying data one by one using timer Pin
jacklynn_mei22-Nov-07 20:18
jacklynn_mei22-Nov-07 20:18 
AnswerRe: Displaying data one by one using timer Pin
Vasudevan Deepak Kumar22-Nov-07 20:21
Vasudevan Deepak Kumar22-Nov-07 20:21 
AnswerRe: Displaying data one by one using timer Pin
Andrei Ungureanu22-Nov-07 20:28
Andrei Ungureanu22-Nov-07 20:28 
GeneralRe: Displaying data one by one using timer Pin
jacklynn_mei22-Nov-07 20:30
jacklynn_mei22-Nov-07 20:30 
GeneralRe: Displaying data one by one using timer Pin
Andrei Ungureanu22-Nov-07 20:32
Andrei Ungureanu22-Nov-07 20:32 
GeneralRe: Displaying data one by one using timer Pin
jacklynn_mei22-Nov-07 20:39
jacklynn_mei22-Nov-07 20:39 
I have done something like the code below
But after reading the last data, it encounter error since there is no data persistent while reading.


public partial class tempA : Form
{
SqlDataReader m_Reader;
DataSet ds = new DataSet();
private void tempA_Load(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);
SqlDataAdapter da = new SqlDataAdapter(com);
da.Fill(ds, "txtScroll");
m_Reader = com.ExecuteReader();
m_Reader.Read();

Timer myTimer = new Timer();
myTimer.Interval = 5000;
myTimer.Enabled = true;
myTimer.Start();
myTimer.Tick += new EventHandler(Timer_Tick);
}
public void Timer_Tick(object sender, EventArgs e)
{
alphaTxtMain.Text = " " + m_Reader["txtDesc"];
m_Reader.Read()
}
}
GeneralRe: Displaying data one by one using timer Pin
Andrei Ungureanu22-Nov-07 20:46
Andrei Ungureanu22-Nov-07 20:46 
GeneralRe: Displaying data one by one using timer Pin
jacklynn_mei22-Nov-07 21:05
jacklynn_mei22-Nov-07 21:05 
GeneralRe: Displaying data one by one using timer Pin
Andrei Ungureanu22-Nov-07 21:12
Andrei Ungureanu22-Nov-07 21:12 
GeneralRe: Displaying data one by one using timer Pin
jacklynn_mei22-Nov-07 21:25
jacklynn_mei22-Nov-07 21:25 
GeneralRe: Displaying data one by one using timer Pin
Andrei Ungureanu22-Nov-07 21:30
Andrei Ungureanu22-Nov-07 21:30 
QuestionOpen a word file from a web Pin
arslanjatt22-Nov-07 20:03
arslanjatt22-Nov-07 20:03 
AnswerRe: Open a word file from a web Pin
Vasudevan Deepak Kumar22-Nov-07 20:08
Vasudevan Deepak Kumar22-Nov-07 20:08 
GeneralRe: Open a word file from a web Pin
arslanjatt22-Nov-07 20:12
arslanjatt22-Nov-07 20:12 
GeneralRe: Open a word file from a web Pin
Vasudevan Deepak Kumar22-Nov-07 20:29
Vasudevan Deepak Kumar22-Nov-07 20:29 
QuestionFile.Exists Pin
troubled one22-Nov-07 19:53
troubled one22-Nov-07 19:53 
AnswerRe: File.Exists Pin
Andrei Ungureanu22-Nov-07 19:58
Andrei Ungureanu22-Nov-07 19:58 
GeneralRe: File.Exists Pin
troubled one22-Nov-07 20:03
troubled one22-Nov-07 20:03 
GeneralRe: File.Exists Pin
Andrei Ungureanu22-Nov-07 20:15
Andrei Ungureanu22-Nov-07 20:15 
AnswerRe: File.Exists [modified] Pin
Pankaj - Joshi22-Nov-07 19:59
Pankaj - Joshi22-Nov-07 19:59 
AnswerRe: File.Exists Pin
Vasudevan Deepak Kumar22-Nov-07 20:23
Vasudevan Deepak Kumar22-Nov-07 20:23 
QuestionHow to count through letters instead of numbers Pin
darthdart22-Nov-07 19:51
darthdart22-Nov-07 19:51 
AnswerRe: How to count through letters instead of numbers Pin
Vasudevan Deepak Kumar22-Nov-07 20:10
Vasudevan Deepak Kumar22-Nov-07 20:10 

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.