Click here to Skip to main content
13,403,145 members (51,011 online)
   

C#

 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
Richard MacCutchan23-Nov-12 0:24
mvpRichard MacCutchan23-Nov-12 0:24 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
BobJanova23-Nov-12 0:29
memberBobJanova23-Nov-12 0:29 
GeneralRe: Automatically Compiler Generated Unique Constants ? Pin
C-P-User-323-Nov-12 5:43
memberC-P-User-323-Nov-12 5:43 
QuestionDataGridView doesn't appear on screen Pin
RickSharp21-Nov-12 13:44
memberRickSharp21-Nov-12 13:44 
AnswerRe: DataGridView doesn't appear on screen Pin
Eddy Vluggen21-Nov-12 14:17
memberEddy Vluggen21-Nov-12 14:17 
GeneralRe: DataGridView doesn't appear on screen Pin
RickSharp21-Nov-12 14:27
memberRickSharp21-Nov-12 14:27 
GeneralRe: DataGridView doesn't appear on screen Pin
Eddy Vluggen21-Nov-12 14:42
memberEddy Vluggen21-Nov-12 14:42 
QuestionInvokeRequired Pin
MAW3020-Nov-12 16:04
memberMAW3020-Nov-12 16:04 
I am trying to click a button programmatically.

If I click the button with my mouse it works fine by going out to the internet and asking for info the website thens sends the info requested.

However I have this on a timer (DelegateTimer, found here)
When the timer sends the request to "ButtonUpdatesPerformClick()" the .PerformClick does not work below.

I cannot bypass the button by going to "NonButtonUpdates()", because when it goes out to the internet, the information never comes back.

Can anyone help me with this problem.
Thanks in advance.
Michael

delegate void SetUpdatesCallback();

public void ButtonUpdatesPerformClick()
{
    if (this.buttonUpdates.InvokeRequired)
    {
        SetUpdatesCallback button = new SetUpdatesCallback(this.ButtonUpdatesPerformClick);
        this.Invoke(button, new object[] { });
    }
    else
    {
         this.buttonUpdates.PerformClick();
    }
}
private void buttonUpdates_Click(object sender, EventArgs e)
{
    this.NonButtonUpdates();
}
private void NonButtonUpdates()
{
    this.GoToWebsiteGetData();
}


modified 20-Nov-12 22:59pm.

AnswerRe: InvokeRequired Pin
SledgeHammer0120-Nov-12 19:02
memberSledgeHammer0120-Nov-12 19:02 
AnswerRe: InvokeRequired Pin
BMS12122-Nov-12 23:46
memberBMS12122-Nov-12 23:46 
QuestionHow to Query if a ComboBox's AutoComplete Dialog is Open Pin
Skippums20-Nov-12 15:47
memberSkippums20-Nov-12 15:47 
QuestionPossible to print definition of Func<> Pin
ezazazel20-Nov-12 5:00
memberezazazel20-Nov-12 5:00 
AnswerRe: Possible to print definition of Func<> Pin
Simon_Whale20-Nov-12 5:14
memberSimon_Whale20-Nov-12 5:14 
GeneralRe: Possible to print definition of Func<> Pin
ezazazel20-Nov-12 22:43
memberezazazel20-Nov-12 22:43 
Questionhow can i get exception from virtual machine Pin
belea1720-Nov-12 2:38
memberbelea1720-Nov-12 2:38 
AnswerRe: how can i get exception from virtual machine Pin
deflinek20-Nov-12 4:13
memberdeflinek20-Nov-12 4:13 
AnswerRe: how can i get exception from virtual machine Pin
Pete O'Hanlon20-Nov-12 4:17
protectorPete O'Hanlon20-Nov-12 4:17 
QuestionCorrect use of Secure String Pin
MacUseless19-Nov-12 22:09
memberMacUseless19-Nov-12 22:09 
AnswerRe: Correct use of Secure String Pin
Simon_Whale19-Nov-12 23:08
memberSimon_Whale19-Nov-12 23:08 
GeneralRe: Correct use of Secure String Pin
MacUseless20-Nov-12 21:42
memberMacUseless20-Nov-12 21:42 
QuestionWhat is the best tool to create UML diagrams? Pin
Vijay Kanda19-Nov-12 9:29
memberVijay Kanda19-Nov-12 9:29 
AnswerRe: What is the best tool to create UML diagrams? Pin
Pete O'Hanlon19-Nov-12 9:36
protectorPete O'Hanlon19-Nov-12 9:36 
GeneralRe: What is the best tool to create UML diagrams? Pin
Vijay Kanda19-Nov-12 9:54
memberVijay Kanda19-Nov-12 9:54 
AnswerRe: What is the best tool to create UML diagrams? Pin
Bernhard Hiller19-Nov-12 22:57
memberBernhard Hiller19-Nov-12 22:57 
AnswerRe: What is the best tool to create UML diagrams? Pin
gilvani20-Nov-12 2:02
membergilvani20-Nov-12 2:02 

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.


Advertise | Privacy |
Web04 | 2.8.1802120.2 | Last Updated 20 Feb 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid