iam making my console app a little bit more feature filled.. its working out fine...but my question is how can i change the color of key words (such as echo) i want any text with in these arrows(<text here="">) to be turned to the color red how can i do this within my richtext box field.... i already have keypress event args set up and i can allready tell the program what to do when the word "<echo>" is entered,ect.. but im strugling on how to do this . here is the list of all my commands. Any samples would be great.
Hi, I'm new to .NET and I'm writing an application that is using the TabControl, and I'm having trouble finding a method or property that will tell me what specific TabPage was clicked when the TabControl is clicked. In the Click event for the TabControl is it possible to tell what TabPage was clicked? I can't seem to find any property or method that would give that.
Another question. Is there any type of event for the TabControl or TabPage that is similar to the Load event for a Form? What I'm looking for is an event that would fire the first time a TabPage was clicked and then never again until the program was closed and opened.
monrobot13 wrote: I'm having trouble finding a method or property that will tell me what specific TabPage was clicked when the TabControl is clicked. In the Click event for the TabControl is it possible to tell what TabPage was clicked? I can't seem to find any property or method that would give that.
Register the Click events for each tabpage instead all pointing to one delegate. Then in the delegate method do a cast to TabPage for the object sender parameter.
Second, This is the approach I would have taken but I using the webbrowser control on the tab and it's set to take up the entire size of the page. I want the webpage to load when the tab is clicked I don't want the user to have to click the actual webbrowser page for it to load.
To determine which TabPage is currently selected, look at the TabControl.SelectedIndex property, and to catch when a user selects a different TabPage, subscribe to the TabControl.SelectedIndexChanged event - watching Click events is not the way to do it with the TabControl.
There is no Load type event for a TabPage, but there are a number of ways to do what you're looking for.
Create booleans to flag whether each tab has been "loaded"; e.g.
This sounds like a good approach I just have a question. Is it possible to get a reference to the actual TabPage from the selected index? ie. could I just use it as the index in the tabs collection for the TabControl?
how to break a line of text ? The only way i found out is to use the <p></p> tag, but i guess that only works cause i use NDoc to generate Html based Help Files, what about another generator format like RTF ? Guess the <p> tag is exported as normal text, and not interpreted as line feed.