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

  • SEARCH
  • Home
  • 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 8277225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:37:41+00:00 2026-06-08T08:37:41+00:00

Im used to developing on .net so decided to try MonoMac, but unfortunately the

  • 0

Im used to developing on .net so decided to try MonoMac, but unfortunately the WebBrowser control in .net isn’t available in Mono.

Ive added a webview, and Ive figured out how to navigate:

wbWebView.MainFrameUrl = "http://www.linkedin.com";

Now for the life of me I can’t figure out how to do these kinds of things I used to be able to do in .net:

wb.Document.GetElementById("email").SetAttribute("value", "myemaillogin@btinternet.com")

or stuff like this in .net:

For Each link As HtmlElement In wb.Document.GetElementsByTagName("a")
        If link.GetAttribute("href").Contains("twitter") Then
            Dim hyperlink As String = link.GetAttribute("href")
            ListBox1.Items.Add(hyperlink)
        End If
    Next

(where wb is the webbrowser control in the above 2 examples)

Any ideas?

Ive tried looking at the xml approach, but either Im doing it wrong, but isn’t really working for me. Its a shame there isn’t the webbrowser control in mono!

Thanks very much for all your help.

ps. I know my .net examples are VB, but the same applies to C#

  • 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-08T08:37:42+00:00Added an answer on June 8, 2026 at 8:37 am

    I figured it out…

    - (IBAction)btnDoStuff:(NSButton *)sender {
        [[[self myWebView] mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.bbc.co.uk/news/"]]];
    
        [[self myWebView] setEditable:YES];
    }
    
    - (IBAction)btnCoolCode:(NSButton *)sender {
        NSMutableArray *myArray = [[NSMutableArray alloc] init];
    
        DOMDocument *myDomDocument = [[self myWebView] mainFrameDocument];
    
        DOMNodeList *myList = [myDomDocument getElementsByTagName:@"a"];
    
        int numElements = [myList length];
    
        for (int i=0; i<numElements; i++) {
            [myArray addObject:(DOMHTMLElement *)[myList item:i]];
        }
    
        self.lblOutput.stringValue = [[myArray objectAtIndex:7] innerText];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

General purpose I am developing a .NET user control that can be used for
We are developing a SaaS application in Asp.net, where we have used the Single
I am developing a site using asp.net MVC. I have used AJAX for paging,sorting
Web developing isn't what it used to be. It used to consist of hacking
I'm developing a system in C# (.NET 4.0) which will be used by various
I'm developing an ASP.Net project. I have an <asp:Table> control on my page, to
I am developing software in C#/.NET but I guess the question can be asked
Can springframework.net be used in developing windows mobile applications? (Mainly the AOP and IoC
I'm developing a Asp.Net website that will be used for a lot users. Would
The company I work for is developing an ASP.NET application that is used by

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.