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 8619543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:21:55+00:00 2026-06-12T06:21:55+00:00

it is little bit hard to solve.. :D first you should solve my english

  • 0

it is little bit hard to solve.. 😀 first you should solve my english 😀 😀
i want save a webbrowser snapshot like a this placement
//first : user clicks a linklabel
//
after : program navigates my browser
//
last : 5 seconds later program will takes snapshot of webbrowser.
i have this code for this.but..

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
    ((WebKitBrowser)tabControl1.SelectedTab.Controls[0]).Navigate(linkLabel1.Text);

    ///how can i set after 5 seconds take snapshot
    ((WebKitBrowser)tabControl1.SelectedTab.Controls[0]).PageScreenshot.Save("thumb1.png", ImageFormat.Png);
}

sorry for bad english 🙁 i cannot explain more detailed.
edit:
i will try explain more detailed…
here is my new tab function of my web browser and i want take favorites screenshot.after when user open new tab ,user will see favorites with small photo…
so, if favorite doesnt have any pic,it will be first time.when user click to the link.it will navigates to favorite and then when document completed,it will take screenshot..thats all
new tab

  • 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-12T06:21:56+00:00Added an answer on June 12, 2026 at 6:21 am

    What I can comprehend from your post and comments, is that you have six LinkLabels (named linkLabel1 to linkLabel6). When the user clicks any of the links, your WebKitBrowser control has to navigate to the URL (which is the text of the linklabel) and when the document is loaded, it has to take automatically a screenshot.

    Now, as you would like to do all the same with the different linklabels, you should only create one event handler to handle the clicks of the different linklabels. You can just attach the _LinkClicked() event to any of the linklabels. You’ll also have to define in your class some private field that will contain the LinkLabel that was last clicked on.

    private LinkLabel _lastClickedLinkLabel = null;
    
    private void linkLabelX_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
        // Cast the sender to a LinkLabel object as you want to know which LinkLabel
        // was clicked on
        var senderLinkLabel = sender as LinkLabel;
        if (senderLinkLabel != null)
        {
            ((WebKitBrowser)tabControl1.SelectedTab.Controls[0]).Navigate(senderLinkLabel.Text);
            _lastClickedLinkLabel = senderLinkLabel;
        }
    }
    

    Now as you want to take the screenshot after the page is loaded, you’ll have to create the DocumentCompleted event. (Don’t forget to attach it to your tabControl!)

    private void tabControl1_DocumentCompleted(Object sender, WebBrowserDocumentCompletedEventArgs e)
    {
        // Save the screenshot
        // you might want to determine the filename dynamically, otherwise the file will be overwritten
        ((WebKitBrowser)tabControl1.SelectedTab.Controls[0]).PageScreenshot.Save("thumb1.png", ImageFormat.Png);
    
        if (_lastClickedLinkLabel != null)
        {
            // Do something here based upon the _lastClickedLinkLabel
        }
    }
    

    Note that I don’t have actual experience with that exact control, I just used a search engine to find all information.

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

Sidebar

Related Questions

its a little bit hard to understand. in the header.php i have this code:
It's a little bit hard to find an appropriate title for this. I think
This may be a little bit of a hard one to pin down exactly,
I am having a little bit of hard time understanding ScheduledTask[]. This was added
This is a little bit of a hard problem to explain, so ill show
This little bit of syntax has been a bit of a confusion for me
I'm a little bit lost here. In my nginx conf file I want a
I am a little bit stuck up. First, I'll post the screenshot and then
I am a little bit stuck: I would like to change the max option
So I added a little bit of jQuery and now IE crashes pretty hard

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.