Mdi Panel Control - c#-4.0

How to add 2nd childform to mdi parent form "PANEL Control"...??
I am adding child forms to Panel Control of mdi parent form....
i have two child forms, childForm1, childForm2....
when i click a button on mdi parent form, childForm1 is added to mdiParent "PANEL Control"...
Know i want to add childForm2 to mdiform "Panel Control", when i click a button on childForm1...
Means i want to add childForm2 from childForm1 button click event, to mdiParent forms "Panel Control"...???
Can anyone Help me....???
Thanks in advance.....

Use tablelayoutpanel with two columns, in first column show the child1 clicking on second button show next child(2) in next column and hide first column(Column width=0)

Related

Keyboard hides edittext and spinner in expandable list view child view

I am working on ExpandableListView for the first time and facing a problem, I have an expandable list view with a single child in each group, the child view has an imageview, three textviews, one editText below the textviews, a spinner below edit text and two buttons after spinner.
My problem is that when i click on edittext, which is actually having the request focus already given in xml, the keyboard moves my childview upwards which is absolutely fine, so that i can enter values in editbox, after clicking on button below the spinner, keyboard comes down which is good, but on clicking the editbox for the second time, the keyboard covers the edit text, spinner and the buttons, and I am not able to enter values in the editbox.
I have tried adjustPan in manifest, not working for me, i have tried scrollTo() for expandable listview to scroll the list when i click edittext, still not working.
Any help is appreciated.

Menus with multiple item-columns javaFX 8

My goals is to create a menu with multiple columns. I went about this by using GridPane, to which I added Labels. Then I inserted the GridPane in a PopOver. I also added action listeners to Labels So when the users click on a cell, I can do a certain action. My current implementation is based on a button. Once clicked, the PopOver will show up.
As an example, font names:
Is there a way to have this in a menu?
I tried making the MyGridPane class that extends MenuItem. It allows me to add the GridPane to the menu, but it only comes in as an ObjectID. If I want it visually, the only way I found was to
menuItem.setGraphic()
But this make the whole GridPane one item. The cells and their action listeners get ignored.
Is there a way to add a grid pane as a menu item?
Is there a way to add a grid pane as a menu item?
Yes, you can try as
CustomMenuItem menuItem = new CustomMenuItem(gridPane);
menuItem.setHideOnClick(false);
To visually disable the highlight color for that menu/menuitem, customize the related CSS selectors of menu/menuitem.

How to access specific buttons on a collection view tin 4 buttons and 1 image view

I am currently populating a collection view with images but at the same time have some button option.
How can I know which button I press if let's say it populated about 4 of those cells?
How do I make a code to handle that event?
Add actions to each button in your collectionView cell. Or add one action to all of them and set tag for each button. Then in action method
UIButton *btn = (UIButton *)sender;
//btn.superview will be your button parent view (cell for example)

MFC Ribbon CEdit Textbox Allignment in Panel

I am trying to align two text boxes with two buttons in a panel, and I am unable to find anything about how to force positioning inside the MFC Ribbon Panels.
Here is a picture of what I have currently.
http://i.imgur.com/ofD0b.jpg (Sorry wont let me post images yet, have to link.)
The Change View Date box has the box associated with it sitting below it and the change system date box is up in the top right in the second "column" of controls. I would like to fix this so the Box with the spin controls sits next to the CHange View Date and the box without the controls sits next to Change System Date.
Thoughts? Thanks!
I think yow cannot do it.
What you can do is to put a Ribbon Separator after the Box with the spin controls and then set the property 'Center Column Vertically' on the Panel.
Hope it can help.

list box items context menu WPF

I have list box that contains UserControl as item template
the user control contains few text blocks in a grid,
the thing is that I want to add context menu to my user control that will show on the list item right click but currently only right clicking the textbox inside the user control triggers the context menu appearance
clicking the spaces between those textboxes triggers nothing,
any idea about how can I trigger the context menu from the container list box?
Thanks
Eran
From the sounds of it you have set the context menu at the textbox level of the usercontrol.
If you want the context menu to function for the entire user control you would need to set teh contextmenu of the user control at the item template level.

Resources