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