Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
QuestionCrystal Reports Pin
aby.m.a30-May-06 18:18
aby.m.a30-May-06 18:18 
QuestionBlueTooth Pin
ah_jiang_930-May-06 18:14
ah_jiang_930-May-06 18:14 
AnswerRe: BlueTooth Pin
Rey999931-May-06 2:27
Rey999931-May-06 2:27 
QuestionProblems using graphic object to display text on tabPage Pin
printscreen1234530-May-06 18:05
printscreen1234530-May-06 18:05 
QuestionChanging DataGrid Data Pin
Dan Neilsen30-May-06 15:43
Dan Neilsen30-May-06 15:43 
QuestionNavigation help. Pin
tongueless30-May-06 14:48
tongueless30-May-06 14:48 
AnswerRe: Navigation help. Pin
tongueless30-May-06 15:19
tongueless30-May-06 15:19 
QuestionInvoke problem Pin
teejayem30-May-06 14:32
teejayem30-May-06 14:32 
I am having a problem with invoking the statusbar from the options form:

private void apply_Click(object sender, EventArgs e)
{
     String status;
     status = "Status:  Options Saved Successfully";

     mf.Invoke(mf.m_DelegateRegStatus, new Object[] {status});
}


on the main form i have:

namespace WindowsApplication1
{
    public delegate void DelegateRegStatus(String status);

    class mainform
    {
        public DelegateRegStatus m_DelegateRegStatus;


        public mainfrm()
        {
            m_DelegateRegStatus = new DelegateRegStatus(this.RegStatus);
        }



        private void RegStatus(String status)
        {
            syncstat.Text = status;
        }
   }
}


When i try to use the invoke on the options form i get an error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

Could someone point me in the right direction please?

Thanks in advance

Don't be overcome by evil, but overcome evil with good
AnswerRe: Invoke problem [modified] Pin
Robert Rohde30-May-06 20:22
Robert Rohde30-May-06 20:22 
Questioncombobox with datagridview Pin
kjosh30-May-06 12:16
kjosh30-May-06 12:16 
QuestiontabPage class Pin
rcwoods30-May-06 12:06
rcwoods30-May-06 12:06 
AnswerRe: tabPage class Pin
likefood30-May-06 13:09
likefood30-May-06 13:09 
QuestionHow to display text from the bottom up in a textBox. Pin
nicknotyet30-May-06 11:34
nicknotyet30-May-06 11:34 
AnswerRe: How to display text from the bottom up in a textBox. Pin
V.30-May-06 11:44
professionalV.30-May-06 11:44 
GeneralRe: How to display text from the bottom up in a textBox. Pin
nicknotyet30-May-06 12:10
nicknotyet30-May-06 12:10 
GeneralRe: How to display text from the bottom up in a textBox. Pin
likefood30-May-06 13:05
likefood30-May-06 13:05 
AnswerRe: How to display text from the bottom up in a textBox. Pin
Shajeel30-May-06 19:24
Shajeel30-May-06 19:24 
GeneralRe: How to display text from the bottom up in a textBox. Pin
nicknotyet31-May-06 3:55
nicknotyet31-May-06 3:55 
QuestionMultithreading problem Pin
thepersonof30-May-06 11:07
thepersonof30-May-06 11:07 
AnswerRe: Multithreading problem Pin
Judah Gabriel Himango30-May-06 11:13
sponsorJudah Gabriel Himango30-May-06 11:13 
AnswerRe: Multithreading problem Pin
Robert Rohde30-May-06 20:16
Robert Rohde30-May-06 20:16 
Questionadvice learn visual C# Pin
gds0930-May-06 10:56
gds0930-May-06 10:56 
AnswerRe: advice learn visual C# Pin
V.30-May-06 11:38
professionalV.30-May-06 11:38 
AnswerRe: advice learn visual C# Pin
teejayem30-May-06 14:11
teejayem30-May-06 14:11 
QuestionRecommended Books Pin
ahmed_toyin30-May-06 9:37
ahmed_toyin30-May-06 9:37 

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.