Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. a few important questions about forms ?

a few important questions about forms ?

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    L L 2 Replies Last reply
    0
    • L Lost User

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • L Lost User

        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

        L Offline
        L Offline
        Leyu
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups