A few questions
-
Hello, I am working in visual studio to make a project which requires using lists. I need a little help to complete this. The first thing I need to know is how to select a top result in a list, so that its highlighted, just like when you click. How would I code this so that it works with the down arrow, I know you use keycode etc, but can’t figure out the way to highlight it …. Then when I press enter I want to select the list item… Thanks… Next, I have two forms and trying to make a “find and replace” function, so this requires looking on a richtextbox in the first form and when a button is clicked on the find and replace form it should effect it. My question is however, how do you connect to another form ? because I have no idea what to do …. Last question, I need to know a quickly print and print preview a rich text box, thanks for all your help Steve
-
Hello, I am working in visual studio to make a project which requires using lists. I need a little help to complete this. The first thing I need to know is how to select a top result in a list, so that its highlighted, just like when you click. How would I code this so that it works with the down arrow, I know you use keycode etc, but can’t figure out the way to highlight it …. Then when I press enter I want to select the list item… Thanks… Next, I have two forms and trying to make a “find and replace” function, so this requires looking on a richtextbox in the first form and when a button is clicked on the find and replace form it should effect it. My question is however, how do you connect to another form ? because I have no idea what to do …. Last question, I need to know a quickly print and print preview a rich text box, thanks for all your help Steve
SRJ92 wrote:
The first thing I need to know is how to select a top result in a list, so that its highlighted, just like when you click.
Sounds like a
ListBox
[^]. The link also has a code-example on selecting specific items.SRJ92 wrote:
Then when I press enter I want to select the list item…
I believe that you can do that already using the space-bar, allowing for multiple selections. Perhaps you could replace the "return"-keypress with a space-character?
SRJ92 wrote:
My question is however, how do you connect to another form ?
You'd "show"
Form2
fromForm1
. Information can be passed by creating additional properties in Form2.SRJ92 wrote:
I need to know a quickly print and print preview a rich text box
That's not supported out of the box - you'd either need to program it or find a third-party product to provide that functionality.
I are Troll :suss:
-
SRJ92 wrote:
The first thing I need to know is how to select a top result in a list, so that its highlighted, just like when you click.
Sounds like a
ListBox
[^]. The link also has a code-example on selecting specific items.SRJ92 wrote:
Then when I press enter I want to select the list item…
I believe that you can do that already using the space-bar, allowing for multiple selections. Perhaps you could replace the "return"-keypress with a space-character?
SRJ92 wrote:
My question is however, how do you connect to another form ?
You'd "show"
Form2
fromForm1
. Information can be passed by creating additional properties in Form2.SRJ92 wrote:
I need to know a quickly print and print preview a rich text box
That's not supported out of the box - you'd either need to program it or find a third-party product to provide that functionality.
I are Troll :suss: