user-controls Questions
4
Solved
In my program I have a user control that displays data on a window using a content presenter. I would like to simply set the cursor focus on a certain textBox in my window at startup.
Usually I w...
Nonoccurrence asked 17/10, 2013 at 18:8
7
Solved
I have a CEdit derived control that displays the string "N/A" when the undelying data is null. I recently added code to empty the control(SetWindowText("");) when it gains focus and set if back to ...
Ellsworth asked 3/7, 2012 at 15:20
2
Solved
I'm trying to build a custom datePicker in .NET MAUI but I have some issue to solve.
First of all this is how the DatePicker should be:
The main problem is that I would like clicking above the lab...
Massproduce asked 18/7, 2023 at 12:12
5
I have a WinForms application. Each form and user control sets up its tooltips as follows:
// in the control constructor
var toolTip = new ToolTip();
this.Disposed += (o, e) => toolTip.Dispose(...
Corolla asked 28/11, 2014 at 16:15
5
This is a absurdly common issue and having exhausted all of the obvious solutions, I'm hoping SO can offer me some input... I have a UserControl inside a page which contains a repeater housing seve...
Emaciation asked 23/11, 2009 at 20:34
5
I have a UserControl with multiple fields that I would like to have bound to a BindingSource. I would also like the UserControl to expose some BindingSource property so that it can be dropped on a ...
Transvalue asked 11/6, 2009 at 17:9
4
Solved
I have a Window that contains a custom UserControl. The UserControl needs to know when the Window containing it has been closed so that it can terminate a thread.
My best guess as to how to accomp...
Ong asked 30/9, 2009 at 17:9
5
I'm using the following code to get a TextBox that is not drawing its borders:
public partial class CustomTextBox : TextBox
{
public CustomTextBox()
{
InitializeComponent();
SetStyle(ControlSt...
Felicle asked 3/8, 2009 at 12:17
11
Solved
I need to be able to get at the full URL of the page I am on from a user control. Is it just a matter of concatenating a bunch of Request variables together? If so which ones? Or is there a more si...
Amii asked 2/9, 2008 at 21:9
7
After scouring the articles online I have come up with this design for a winforms based touchscreen app that needs smartphone like scrolling. The app itself will run on a tablet laptop or touchscre...
Temple asked 5/8, 2011 at 23:5
3
Solved
I've create a WinForms control that inherits from System.Windows.Forms.UserControl...I've got some custom events on the control that I would like the consumer of my control to be able to see. I'm u...
Spire asked 27/9, 2008 at 2:52
5
Solved
I need help on implementing a circular progress bar like this:
How should I implement the Circle to fill by increasing Value property?
Congreve asked 2/2, 2011 at 6:0
2
Solved
Normally, controls are being added to forms. But I need to do an opposite thing - add a Form instance to container user control.
The reason behind this is that I need to embed a third-party applic...
Boardwalk asked 6/9, 2011 at 12:33
14
I have a problem with a wpf usercontrol which is of my own devising.
The problem is that I get a object reference not set to an instance of an object exception in XAML code at design time, when I i...
Impi asked 17/7, 2013 at 13:47
7
Solved
I have a django website that is spilt depending on what user type you are, I need to redirect users that are not entitled to see certain aspects of the site,
in my template, I have:
{% if user.get_...
Drip asked 30/11, 2009 at 15:10
10
Solved
How can I redirect a user to home page?
Example: mywebsite.example/ddfdf/fdfdsf and I want to redirect to mywebsite.example
However I want to do it without typing the static name. How can I do this...
Trengganu asked 20/11, 2010 at 7:4
2
Solved
I have the following XAML:
<UserControl.Resources>
<SolidColorBrush x:Key="Brush"></SolidColorBrush>
<Style TargetType="{x:Type StackPanel}" x:Key="ColourChangingStyle">...
Stagemanage asked 17/1, 2013 at 16:7
11
Solved
Call me crazy, but I'm the type of guy that likes constructors with parameters (if needed), as opposed to a constructor with no parameters followed by setting properties. My thought process: if the...
Austerlitz asked 23/11, 2009 at 16:32
13
Solved
I have a WinForm application. I also have created my own User Control for it. Everything worked fine. Until today that I received the error message when I try to add it back to my program (I never ...
Corniculate asked 4/12, 2014 at 8:29
10
Solved
I have a set of controls with attached commands and logic that are constantly reused in the same way. I decided to create a user control that holds all the common controls and logic.
However I al...
Burrton asked 15/4, 2009 at 11:41
3
Solved
Summary answer so far: Forms and controls only open in the designer if csproj.user file exists.
The problem story:
I have 2 controls that both inherit from a base control.
However one is missing th...
Calle asked 27/9, 2021 at 21:34
3
Solved
I find the table layout panel in c# (.net 2.0) to be very primitive. I wanted to allow my users to resize the columns in a table layout panel but there are no ready made options to do so. Is there ...
Genseric asked 11/6, 2009 at 11:1
4
Solved
How programmatically create an element based on UserControl and dock it to the DockPanel?
Primipara asked 9/4, 2010 at 18:4
5
Solved
I went and created a tab containing a good amount of controls, most of which are contained within what I'll just call the top-level group box. Now I decide I'd like the text of the top-level group ...
Magistracy asked 17/2, 2012 at 1:31
6
Solved
I found user controls to be incredibly useful when working with ASP.NET webforms. By encapsulating the code required for displaying a control with the markup, creation of reusable components was ve...
Parcae asked 10/5, 2010 at 16:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.