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. Tabs, buttons, and media questions [modified]

Tabs, buttons, and media questions [modified]

Scheduled Pinned Locked Moved C#
questioncomhelp
9 Posts 3 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.
  • C Offline
    C Offline
    C Beginner Nick
    wrote on last edited by
    #1

    First off, i got a question about adding a tab that will open up like this. Opened[^] But it looks like this before you open the tab. Before it's opened[^] Would that be possible or do i need that tab layout that it provides on defualt, i'd rather have it look like the one on the X-fire program. Then inside of it i would like to put in buttons, 112 in total, to change the media player's video to another site. But what i tried didn't work, i figured it was just like a webBrowser but it said Navigate command not valide with axWindowsMediaPlayer. Anyone help me out with this? -- modified at 15:50 Wednesday 17th October, 2007 Also, how do you make it so the user cannot resize the program, i already have minimize and maximize keys turned off but they can still resize it.

    C 1 Reply Last reply
    0
    • C C Beginner Nick

      First off, i got a question about adding a tab that will open up like this. Opened[^] But it looks like this before you open the tab. Before it's opened[^] Would that be possible or do i need that tab layout that it provides on defualt, i'd rather have it look like the one on the X-fire program. Then inside of it i would like to put in buttons, 112 in total, to change the media player's video to another site. But what i tried didn't work, i figured it was just like a webBrowser but it said Navigate command not valide with axWindowsMediaPlayer. Anyone help me out with this? -- modified at 15:50 Wednesday 17th October, 2007 Also, how do you make it so the user cannot resize the program, i already have minimize and maximize keys turned off but they can still resize it.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      C# Beginner Nick wrote:

      First off, i got a question about adding a tab that will open up like this.

      That's not a tab, it's a child window.

      C# Beginner Nick wrote:

      Then inside of it i would like to put in buttons, 112 in total, to change the media player's video to another site.

      112 buttons doesn't seem like good UI to me. You can put whatever you like in your child form. To keep it docked, you'd handle the parent's move event and keep the position in sync.

      C# Beginner Nick wrote:

      i figured it was just like a webBrowser

      Don't guess, read the docs.

      C# Beginner Nick wrote:

      Also, how do you make it so the user cannot resize the program, i already have minimize and maximize keys turned off but they can still resize it.

      Change the border of the form from sizable to something else.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      C 1 Reply Last reply
      0
      • C Christian Graus

        C# Beginner Nick wrote:

        First off, i got a question about adding a tab that will open up like this.

        That's not a tab, it's a child window.

        C# Beginner Nick wrote:

        Then inside of it i would like to put in buttons, 112 in total, to change the media player's video to another site.

        112 buttons doesn't seem like good UI to me. You can put whatever you like in your child form. To keep it docked, you'd handle the parent's move event and keep the position in sync.

        C# Beginner Nick wrote:

        i figured it was just like a webBrowser

        Don't guess, read the docs.

        C# Beginner Nick wrote:

        Also, how do you make it so the user cannot resize the program, i already have minimize and maximize keys turned off but they can still resize it.

        Change the border of the form from sizable to something else.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        C Offline
        C Offline
        C Beginner Nick
        wrote on last edited by
        #3

        Child window? How would I be able to put that in, is that a special tool you need to find in the Add Tool Items box? I need 112 buttons for every episode of a show. And it be in a box where only 10 show and there is an arrow up and arrow down to see the rest of the buttons. Can you do that? I searched but never found anything, gave me a bunch of links to media players and differnt C# codes. Alright thanks, i'll try that. Thanks for you're help i'll try and see if it works :)

        C 1 Reply Last reply
        0
        • C C Beginner Nick

          Child window? How would I be able to put that in, is that a special tool you need to find in the Add Tool Items box? I need 112 buttons for every episode of a show. And it be in a box where only 10 show and there is an arrow up and arrow down to see the rest of the buttons. Can you do that? I searched but never found anything, gave me a bunch of links to media players and differnt C# codes. Alright thanks, i'll try that. Thanks for you're help i'll try and see if it works :)

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          C# Beginner Nick wrote:

          How would I be able to put that in, is that a special tool you need to find in the Add Tool Items box?

          A child window is just a form.

          C# Beginner Nick wrote:

          I need 112 buttons for every episode of a show. And it be in a box where only 10 show and there is an arrow up and arrow down to see the rest of the buttons. Can you do that?

          I'd use a listview

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          C 1 Reply Last reply
          0
          • C Christian Graus

            C# Beginner Nick wrote:

            How would I be able to put that in, is that a special tool you need to find in the Add Tool Items box?

            A child window is just a form.

            C# Beginner Nick wrote:

            I need 112 buttons for every episode of a show. And it be in a box where only 10 show and there is an arrow up and arrow down to see the rest of the buttons. Can you do that?

            I'd use a listview

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            C Offline
            C Offline
            C Beginner Nick
            wrote on last edited by
            #5

            Alright you said it was just a form, i created a new form, put the listview in it. How would i make it a tab, when pressed it opens?

            C 1 Reply Last reply
            0
            • C C Beginner Nick

              Alright you said it was just a form, i created a new form, put the listview in it. How would i make it a tab, when pressed it opens?

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              the button just creates, sizes and positions the form.

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              C 1 Reply Last reply
              0
              • C Christian Graus

                the button just creates, sizes and positions the form.

                Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                C Offline
                C Offline
                C Beginner Nick
                wrote on last edited by
                #7

                Alright you lost me, what button? Just a regular button? If so, then when it's clicked how do you make it pop open right beside you're program no matter it's location and stay on it even when user try's to move it?

                C C 2 Replies Last reply
                0
                • C C Beginner Nick

                  Alright you lost me, what button? Just a regular button? If so, then when it's clicked how do you make it pop open right beside you're program no matter it's location and stay on it even when user try's to move it?

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  It sounds to me like you're perhaps a bit over your head with this task. Any control that fires an event can create a new child form, because an event is fired, you have the opportunity to inject your code. Like I said, the way to maintain it's position if it's to be modeless, is to handle the position changed event on the parent form and keep moving the child to stay in it's desired position.

                  Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                  1 Reply Last reply
                  0
                  • C C Beginner Nick

                    Alright you lost me, what button? Just a regular button? If so, then when it's clicked how do you make it pop open right beside you're program no matter it's location and stay on it even when user try's to move it?

                    C Offline
                    C Offline
                    Chaitanya Joshi
                    wrote on last edited by
                    #9

                    C# Beginner Nick wrote:

                    If so, then when it's clicked how do you make it pop open right beside you're program no matter it's location and stay on it even when user try's to move it?

                    You can also use child form's load event to do whatever coding you want. And as told to you the other events are also there like position change. For button from which you want to instantiate this action, you can do programming at button's hover event also. Chaitanya Joshi

                    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