Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8531977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:36:26+00:00 2026-06-11T09:36:26+00:00

I installed XCode, MonoMac, Mono and MonoDevelop on a Mac OS X machine, and

  • 0

I installed XCode, MonoMac, Mono and MonoDevelop on a Mac OS X machine, and I cant for the love of me figure out how to successfully wire up a Click event to a simple button.

First, I control-dragged my button to the header file, and it created an outlet. Now, I can access my button (btnHello) from C# code, thats cool – but how, and where, do I bind events to it?

I tried doing

this.btnHello.PerformClick += delegate {
    this.Title = "Hello World";
};

but MonoDevelop complains about I cant do that, due to some “method group” stuff.

I have been researching this for days, and I cant find any tutorials on how to do this, and I dont want to use sample code as it does not give me the process of how to do this properly in the future. I tried looking at the MonoTouch getting started guide, since it is close to MonoMac, but that did not help either.

Any help would be great, especially regarding outlets and actions, and how I can wire them up to my elements! Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:36:27+00:00Added an answer on June 11, 2026 at 9:36 am

    Try:

        this.btnHello.Activated += delegate {
        this.Title = "Hello World";
    };
    

    This code should go somewhere in your Controller, most likely in AwakeFromNib.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I bought a new mac (Lion), downloaded xcode, installed it, then found out it
I just installed XCode 3.2.1. When I open the Developer Documentation and click any
I'm new to Xcode development. I installed Xcode 4.3.1 on my Lion-based mac and
rebuilding a mac from scratch. Installed xcode and rvm then trying to install rubies
I have installed xcode 3.2 with iphone SDK. (without Mac OS 10.4 SDK). WHen
I just upgraded my Mac to Snow Leopard, and installed Xcode 3.2.3. The app
I have installed xCode 4.0.2 on my mac mini, every thing is working fine,
I've been working on installing Ruby on my mac, OSX Lion. I've installed XCode,
I have installed xcode on my mac but I am annoyed that I have
I recently installed Xcode and after closing out of the first launch (because I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.