All Questions
758
questions
0
votes
1
answer
62
views
How can I create, duplicate, or copy paste a whole Border control as it is with all of its controls inside it
first of all, I just want to note that I might be not good at english, and i'm sorry about this.
**Issue: **
I'm for now learning .net Maui and i want to learn how can i do this:
i want to make a ...
0
votes
0
answers
60
views
Winforms group box missing Click event
I have a WinForms C# project targeting .Net Framework 4.7.2 with a form which includes a group box. There is no Click event for this control visible from VS2022 when showing control properties via ...
0
votes
0
answers
24
views
WPF .net core 6 Image control does not work in .net core 6 [duplicate]
I created a new WPF C# desktop application in VS 2022 using .net core 6. For some reason the image shows in the designer but when the application is running it does not show. If I create a WPF C# ...
0
votes
1
answer
107
views
dotnet Maui custom control specific sizing (square)
I have been searching around but I was unable to find to do what I want to do.. Maybe I am simply overcomplicating things.
I have an app that should show a custom control somewhere (skiasharp canvas). ...
0
votes
0
answers
740
views
NET MAUI Incorporate Android native control with XML layout
I am beginning with NET Maui and i try to incorporate an Android native control defined by an xml layout in a .NET Maui ContentPage.
I have put the XML (Test2.xml) in the following path : Platforms -&...
1
vote
1
answer
89
views
How to change back color on focus tools by dynamically in c#.net desktop application
In my desktop form there are many control. I want to change back color of that active control on Focus & back to its Original color once it lost focus.
Here is my code,
public BillingMetal(Billing ...
0
votes
1
answer
53
views
How to resolve net framework confict in user control
Visual Sudio 2022:
I am creating a user control. I have selected the Windows Forms Class Library template but it only allows me to use ".Net 3.1", ".Net 5.0" or ".net 6.0"...
2
votes
0
answers
80
views
CefSharp 117.2.40.0 when used in VB6 MDI child, renders locked grey screen when restoring minimized window
I'm using the WinForms package v117.2.40 in a .Net WinForms user control. I've got the control working in an existing VB6 app with late binding, I can redirect to new URLs no issue. I can use the ...
0
votes
1
answer
41
views
Update Visual Studio Property grid when a Control referenced in another control is removed from the Form
My custom WinForms control has a property used to select another control on the form. Here is a simplified example of such a property:
private TextBox _targetControl;
public TextBox TargetControl
{
...
2
votes
1
answer
44
views
Get design-time notifications when a Control referenced in another control is removed from the Form
I have a custom control with a property allowing to select another control of a specific type on a form. For simplicity, let it be TextBox controls.
The property of my custom control looks like this:
...
1
vote
2
answers
2k
views
How to set initial entry width in .Net MAUI?
I am developing an app which I would like to set an Entry control with an initial size on the width. Currently, despite I can write in the Entry control, this one is too small for a convenient UI.
So ...
0
votes
1
answer
44
views
Resize Controls using default, Dock, Anchor and AutoGrow. C# .NET
Let's say I have this layout
Depending on the form size, I want to make the controls grow/shrink while maintaining the base structure. Like this:
In the example, the black area should grow bigger ...
2
votes
0
answers
1k
views
How to set a Visual Element to an absolute position on the screen in .net maui?
I'm trying to create an autocomplete control.
How it might look can be seen in the picture. At the same time, the hint block itself can be shown both above and below the input field (depending on the ...
1
vote
2
answers
112
views
Panel.Controls.Remove not deleting all the controls It should(.NET)
I'm making a database manager program and the program creates only as much textbox
as needed (counts the columns in the table). But for some reason the program is not removing all the textboxes I want....
1
vote
1
answer
794
views
How to make checkbox trigger a command when checked?
I have a checkbox and a [RelayCommand] in the viewmodel that I want to link it to so that the command runs when the checkbox is ticked/unticked (ideally knowing the state of the checkbox as well) but ...