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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:25:01+00:00 2026-05-26T09:25:01+00:00

FYI – I am a C# / WPF newbie. I have been tasked with

  • 0

FYI – I am a C# / WPF newbie.

I have been tasked with incorporating context sensitive help via the F1 key in an existing C# WPF application.

We do not want to go the route of using chm (windows html help) but instead we would like to open a particular page on a wiki that can be more easily maintained and updated.

All of the examples I have been able to find demonstrate how to use chm files. Furthermore, they require adding the help provider to each element which could prove very time consuming.

Instead I have been kicking around the idea of trying to determine which control (or at least it’s container or window) has focus in order to determine the page to open. I will then match its name to a url in our database. For this I tried recursively looping over the FrameworkElement objects returned from the VisualTreeHelper, but it returns a staggering number of elements and strikes me as an inefficient way of trying to find what I want.

Does anyone have suggestions on what my best approach might be? Can you direct me to samples of opening a browser and passing a URL to it from within a WPF app based on a key press?

Any help is appreciated. I have been spinning my wheels on this for too long already!

LALCB

  • 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-05-26T09:25:02+00:00Added an answer on May 26, 2026 at 9:25 am

    If you have a large number of controls, this could be cumbersome. But a start may be to handle PreviewKeyDown or PreviewKeyUp for each control and filter on F1. Then put this in the handler:

    System.Diagnostics.Process.Start(@"[the url]");
    

    [the url] is specific to the control, so you will not need the lookup table because you know which event handler you are in.

    You could also go the route of one event handler assigned to all the PreviewKeyDown or PreviewKeyUp events, and then use your database lookup based off the sender object information.

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

Sidebar

Related Questions

FYI I'm programming in objective-C but anyone might be able to help. I've been
FYI: I have edited this significantly since my first edition. This simulation has been
I need to profile a server-client Java application (based on Jersey/REST FYI). I have
Ok, so I have the code below (Objective-C FYI) and I was wondering if
FYI - this query runs from excel. i have prompt fields to set date
I have a single dimensional array of floating point values (c# doubles FYI) and
FYI: SQL Server 2005 I have a database user account (user_web) that has the
FYI, I looked at existing postings and I did not find exactly what I
FYI This is homework. I have to build a Java Chat server. I have
FYI, I'm working on my first MVC web application using MVC 3 and Razor

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.