-
In my app, when I create a new window (form2) (from file>new) and close the previous window (Form1), the newly created window (form2) closes as well. How do i make sure that only the window I close is closed? For example, when form1 and form2 are open and I close form1, I want form2 to remain open.
-
I use a
RichTextBoxin the editor. How do I go to a particular line when I specify a line number in a text box? -
I want to create a drop-down color chooser from the tool strip (like in Word or Excel). How can I do this?
its not a dialog box and a code snippet that moves the cursor to particular line when given in Text box is appreciate…
1) Can you post a code snippet showing how you’re creating the second window? Are you setting the owner property?
2) My bet would the CaretPosition property.
3) Take a look at this. The author just create a form with the floatting drop drown and then proceeds to show it, hide it, … when appropriate. Clever and down to earth.