Click here to Skip to main content
15,891,730 members
Home / Discussions / C#
   

C#

 
AnswerRe: Controlling GUI via text file ? Pin
JoeSharp23-Jul-07 22:00
JoeSharp23-Jul-07 22:00 
AnswerRe: Controlling GUI via text file ? Pin
Brady Kelly23-Jul-07 22:08
Brady Kelly23-Jul-07 22:08 
QuestionReport problem with procedure Pin
merwa23-Jul-07 21:53
merwa23-Jul-07 21:53 
QuestionForm is not response Pin
tradakad23-Jul-07 21:28
tradakad23-Jul-07 21:28 
AnswerRe: Form is not response Pin
Christian Graus23-Jul-07 22:18
protectorChristian Graus23-Jul-07 22:18 
GeneralRe: Form is not response Pin
tradakad23-Jul-07 23:02
tradakad23-Jul-07 23:02 
GeneralRe: Form is not response Pin
Martin#23-Jul-07 23:20
Martin#23-Jul-07 23:20 
GeneralRe: Form is not response Pin
tradakad24-Jul-07 0:41
tradakad24-Jul-07 0:41 
I tryed this.

private int pointCount = 0;
private int iterationsCount = 0;
public System.Timers.Timer tmrLoading = new System.Timers.Timer();

public frmLoading()
{
InitializeComponent();
}

private void frmLoading_Load(object sender, EventArgs e)
{
tmrLoading.Interval = 100;
}

private void frmLoading_Shown(object sender, EventArgs e)
{
tmrLoading.Start();
tmrLoading.Elapsed +=new System.Timers.ElapsedEventHandler(tmrLoading_Elapsed);
}

void tmrLoading_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
Application.DoEvents();

if (iterationsCount <= 2)
{
if (pointCount <= 10)
{
this.lblLoadingText.Text += ".";
pointCount++;
tmrLoading.Start();
}
else
{
this.lblLoadingText.Text = "Loading";
iterationsCount++;
pointCount = 0;

}
}

//throw new Exception("The method or operation is not implemented.");
}

but i had an error in this row
- this.lblLoadingText.Text += ".";

"Cross-thread operation not valid: Control 'lblLoadingText' accessed from a thread other than the thread it was created on"

what i do incorrect?


--
"Success is simple. Do what's right, the right way, at the right time."

best regards,
tradakad
GeneralRe: Form is not response Pin
Martin#24-Jul-07 0:56
Martin#24-Jul-07 0:56 
GeneralRe: Form is not response Pin
Martin#24-Jul-07 1:13
Martin#24-Jul-07 1:13 
GeneralRe: Form is not response Pin
tradakad24-Jul-07 1:38
tradakad24-Jul-07 1:38 
GeneralRe: Form is not response Pin
Martin#24-Jul-07 1:52
Martin#24-Jul-07 1:52 
GeneralRe: Form is not response Pin
tradakad24-Jul-07 2:08
tradakad24-Jul-07 2:08 
GeneralRe: Form is not response Pin
Martin#24-Jul-07 2:18
Martin#24-Jul-07 2:18 
GeneralRe: Form is not response Pin
tradakad24-Jul-07 2:26
tradakad24-Jul-07 2:26 
GeneralRe: Form is not response Pin
tradakad23-Jul-07 23:58
tradakad23-Jul-07 23:58 
Questiondatagrid update command Pin
srinivassam23-Jul-07 21:01
srinivassam23-Jul-07 21:01 
QuestionException has been thrown by the target of an invocation Pin
Darkness8423-Jul-07 20:23
Darkness8423-Jul-07 20:23 
AnswerRe: Exception has been thrown by the target of an invocation Pin
Darkness8423-Jul-07 20:35
Darkness8423-Jul-07 20:35 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Darkness8423-Jul-07 21:29
Darkness8423-Jul-07 21:29 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Amjath Rahman23-Jul-07 21:33
Amjath Rahman23-Jul-07 21:33 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Amjath Rahman23-Jul-07 21:36
Amjath Rahman23-Jul-07 21:36 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Luc Pattyn24-Jul-07 2:04
sitebuilderLuc Pattyn24-Jul-07 2:04 
QuestionVideo handling Pin
pavya_Cool23-Jul-07 20:10
pavya_Cool23-Jul-07 20:10 
AnswerRe: Video handling Pin
ekynox23-Jul-07 21:35
ekynox23-Jul-07 21:35 

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.