web like expandable UI look in RadForm (Telerik ) - c#

Hi I need to show the user a web like UI. Most of the website have three lines in the right bottom corner to show user that the control is expandable.
I need to show the same in the windows form as shown in the picture
Is it possible in winforms to show there lines in the right bottom corner like this in WPF with telerik?
I tried enabling SizrGripStyle to show but it doesn't work in telerik radForm.It only works on winforms

You would have to set the form Property SizeGripStyle to Show in order for the grip lines to be shown. Please refer below.
Once the above property is set to Show the re-size grip would be shown in the on right hand corner of the screen.
I'm on Windows 7 PC, so hope that the re -size grip is distinguishable in the above image.

It seems that currently there is an issue with this functionality: http://feedback.telerik.com/Project/154/Feedback/Details/151535
What you can do is to add an empty RadStatusStrip control and use its sizing grip

Related

How to make items to resize automatically in windows forms when going on fullscreen

I have many buttons in winform. it's look like buttons in calculator.
When I open full screen, buttons stays on top left side (same size they were before) and on the right side there is empty background of form.
How can I make them get bigger and stay centered relatively when I open winform on full screen?
If you have 2 or less buttons per row/column, then you can use anchors.
However, if you have more than 2 buttons per row/column, you'll need to use a TableLayoutPanel (granted you don't have an external controls library like DevExpress or Telerik) which you can then dock/anchor accordingly.
You can dock your controls in the center. Try the following:
1) Select your controls through pressing right cursor of the mouse and hovering over your controls
2) Place your controls in the center
2) Go to 'Properties' panel and find 'Anchor' property
3) Deselect all the anchors (default anchors are top and right)
Try running and resizing your Windows Forms application.

Moving popup to back - C# UWP Universal Windows

Is there a way to move a popup to back, so it does not always display on the front of the application?
I have a canvas that displays many shapes, which are resizable. To get the resize box I am using a popup, because it was suggested that the best way would be to use adorners, but these are not used in UWP, so the alternative are popups. It works quite well, but when I have another element overlaying my canvas and resizing was enabled on a shape, the popup elements (resize thumbs/nodes) are displayed on top of the element that should be overlaying the canvas. Is there a way to tell the popup that it should not display on a "higher level" than my canvas?
A Popup control is intended to be displayed on top of all other content so it seems you're not using an appropriate control for what you are trying to achieve.
Without seeing more of your code and having a clearer idea of what you're doing (repro?) it's hard to suggest what you should do. However, I'd avoid resizing control that aren't on top of the viewable area or having multiple items in a resizable mode (or just with adorners displayed) at a time. Both of these should avoid what you're reporting.

WinForms UserControl gets cut off when running

I'm having a lot of difficulty with WinForms and sizing of user controls. We've got a DataGrid, with some buttons underneath it, in a custom User Control.
Everything is anchored correctly. As in, when you resize the control, the buttons stay anchored to their proper sides, and the data grid fills the rest.
It even works when adding it to our main form:
Then, when we run the app, it gets cut off:
I've tried:
Docking
Anchoring
Changing the AutoSize property of the control, and the control as used in the main form
But nothing is getting it to act like it does in the designer.
Any help is really appreciated.
Use Split Container and put dataGridView on top and bottom insert your buttons and set Panel that is in bottom Fixed.
Another option is to use TableLayoutPanel
More information :
Designing the Layout of Windows Forms using a TableLayoutPanel, with auto-expand panels
There were obvious issues with the WinForms app, WRT scaling and fonts. We switched over to WPF and everything is working as expected.

How to change the z-index in c#?

I have a rich text box that covers the entire form. Under that text box, I have a button, the problem is I need that button to be on top of the text box, so that I can click it. I did some research, and I think I have to change the z-index of the button, but I don't know how to change that. Any help would be great, thanks.
Right Click on the Text Box and click Send to back. Or alternatively, focus the button and click Bring to front.
Have a look at Introduction to Visual Studio .NET and more specifically at
Table 9. Order options under the Format menu
I might however recomend that you rather look at using SplitContainer Class.
Represents a control consisting of a movable bar that divides a
container's display area into two resizable panels.
Have a look at Windows Forms Controls Lesson 8: How to use the SplitContainer control

Resizing a panel c# win forms

If you imagine a win form with a line drawn vertically down the middle. On the left i have a graph, and when you click the graph certain forms open on the right in an mdi type panel.
I am trying to figure out how to logically get this to look like a proper application should but am failing!
The whole form loads in a maximised view. I first set the panel width to 0 then when i add a form i check if the panels width is less than the forms, if it is then change the panels width to that of the forms.
This doesn't look great tho tbh, resizing makes strange things happen and i see a lot of grey. Does anyone have any ideas?
Use a SplitContainer on your main form. Ensure it's Dock property is set to Fill
Put your graph stuff on the left panel, and your other stuff on the right side.

Categories