a few important questions about forms ?
-
hi all, i have some questions to ask. first, i accidentally changed the ShowInTaskBar property of my form to False and when i noticed that i changed it back to True. but my form is still not seen in TaskBar. it occupies everywhere in monitor ;( how do i make it looks normal ? (same as it did look in the past) secondly, how do i change the cursor position ? i mean i have a few texboxes on form and have a taborder from top to bottom. but i want the cursor be in a specific textbox i want when i start my form? thirdly, is it possible to change the color of tabcontrol's tabs ? (i can change the inside of tabs but colors of buttons remain default gray) lastly, formwindowstate is maximized and i disable maximizebox (false). but if one double clicks on bluebar at the top, form gets the sizes when it was created. i want to disable double clicking on the bluebar at the top of my form ( so it should never be resized.) ? many thanks in advance, bye. -- modified at 9:01 Thursday 18th May, 2006
-
hi all, i have some questions to ask. first, i accidentally changed the ShowInTaskBar property of my form to False and when i noticed that i changed it back to True. but my form is still not seen in TaskBar. it occupies everywhere in monitor ;( how do i make it looks normal ? (same as it did look in the past) secondly, how do i change the cursor position ? i mean i have a few texboxes on form and have a taborder from top to bottom. but i want the cursor be in a specific textbox i want when i start my form? thirdly, is it possible to change the color of tabcontrol's tabs ? (i can change the inside of tabs but colors of buttons remain default gray) lastly, formwindowstate is maximized and i disable maximizebox (false). but if one double clicks on bluebar at the top, form gets the sizes when it was created. i want to disable double clicking on the bluebar at the top of my form ( so it should never be resized.) ? many thanks in advance, bye. -- modified at 9:01 Thursday 18th May, 2006
first : you are probably using resource file for more than one languages. you must change false to true in default language or change it in all languages. second : in your textbox, set TabStop to TRUE and set the TabIndex to 0. It will be the first selected control in your form. third : http://www.codeproject.com/cs/miscctrl/magictabcontrol.asp
-
hi all, i have some questions to ask. first, i accidentally changed the ShowInTaskBar property of my form to False and when i noticed that i changed it back to True. but my form is still not seen in TaskBar. it occupies everywhere in monitor ;( how do i make it looks normal ? (same as it did look in the past) secondly, how do i change the cursor position ? i mean i have a few texboxes on form and have a taborder from top to bottom. but i want the cursor be in a specific textbox i want when i start my form? thirdly, is it possible to change the color of tabcontrol's tabs ? (i can change the inside of tabs but colors of buttons remain default gray) lastly, formwindowstate is maximized and i disable maximizebox (false). but if one double clicks on bluebar at the top, form gets the sizes when it was created. i want to disable double clicking on the bluebar at the top of my form ( so it should never be resized.) ? many thanks in advance, bye. -- modified at 9:01 Thursday 18th May, 2006
Mehmet Fatih Akbulut wrote:
first, i accidentally changed the ShowInTaskBar property of my form to False and when i noticed that i changed it back to True. but my form is still not seen in TaskBar. it occupies everywhere in monitor ;( how do i make it looks normal ? (same as it did look in the past)
Go the Form's InitializeComponents() method and search for the this.ShowInTaskBar = ??? line. Delete the line and recomile again. U r done.
Mehmet Fatih Akbulut wrote:
i mean i have a few texboxes on form and have a taborder from top to bottom. but i want the cursor be in a specific textbox i want when i start my form
In the designer mode go the View menu and select TabOrder then you can see the tab order of the controls and containers. click on the containers and controls in you preference(Note that only controls supporting the TabStop property and the ones having it set to true can have focus)
Mehmet Fatih Akbulut wrote:
lastly, formwindowstate is maximized and i disable maximizebox (false). but if one double clicks on bluebar at the top, form gets the sizes when it was created. i want to disable double clicking on the bluebar at the top of my form ( so it should never be resized.)
Here I see two options 1 you override the WM_NC??? messages and see what you come up with. 2 Calculate the area on the screen that is used when the form is maximized and set the MinimumSize property to that value. you should also take a look at the system menu commands. For more information there is a nice FAQ at www.windowsforms.com -- modified at 14:14 Thursday 18th May, 2006