i have helpfile pdf .. I want to go to specific places in the helpfile based on what the user has selected in a particular form. Basically the question is How do i detect what is the highlighted(selected) field in a form in C#?
Asked
Active
Viewed 96 times
0
-
What are you using to access/display the PDF? Perhaps a bit of code sample will help people understand how you are using the PDF as help file. Also, do you need to use PDF, or could you perhaps use a chm file or HTML file? May be easier to deal with other formats other than PDF. – Jeff Halverson Apr 16 '12 at 05:13
-
You just posted this question here: http://stackoverflow.com/questions/10168185/opening-a-pdf-in-c-sharp-at-specific-bookmark – yamen Apr 16 '12 at 05:14
2 Answers
0
If I am understanding this properly, you just want to know what control is selected in the Form or what text is selected within that selected control?
For example, if you want to know what is selcted in a textbox, you can use:
this.txt_MyTextBox.SelectedText;
Alternatively, if you want to know which control is being focused at the moment:
this.ActiveControl; is probably what you want.
You can also handle each control differently based on what type it is.

ImGreg
- 2,946
- 16
- 43
- 65