user-controls Questions

1

Solved

I wrote User Control (yay!). But I want it to behave as a container. But wait! I know about [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))] T...
Grayish asked 8/6, 2018 at 10:54

4

Solved

I have a some pages that are slightly different, but all have the same "action buttons" that do the same tasks for each page. Instead of duplicating the code, I made a user control that includes bu...
Tokay asked 7/3, 2013 at 15:45

5

Solved

i thought this was a simple issue until i started searching for answers and realised it's so simple i'm the only one who has it my user control isnt displaying anything. what am i doing wrong? (be...
Hardigg asked 27/11, 2012 at 16:28

7

Solved

I have created a custom WPF user control which is intended to be used by a third party. My control has a private member which is disposable, and I would like to ensure that its dispose method will ...
Shiff asked 2/2, 2009 at 10:20

7

Solved

The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123'. I have a .NET 2.0 web application that references my assembly 'abc123'. The assembly e...
Kirkland asked 12/11, 2008 at 16:9

11

I've got a project that contains usercontrols. For some reason, the design view for the window which uses the said controls has stopped functioning and insists on "Invalid Markup" - the error given...
Dendroid asked 13/10, 2012 at 8:24

13

Solved

I have the following code in my aspx page: <asp:Button runat="server" ID="myButton" Text="hello" /> and this in my code behind: protected void Page_Load(object sender, EventArgs e) { m...
Trevethick asked 22/8, 2009 at 19:6

3

Solved

I have a user control in .NET with 2 new property Prop1: Boolean Prop2: String I want to make Prop2 READONLY in the property grid when the user set Prop1 to false.
Fiora asked 20/1, 2018 at 19:8

4

I'm trying to create a button that behaves similarly to the "slide" button on the iPhone. I have an animation that adjusts the position and width of the button, but I want these values to be based ...
Sevigny asked 2/2, 2010 at 19:20

3

Solved

I am thinking about writing a WPF User Control for my application. I am using MVVM in my application. User control's may require Dependency Properties that can be set my Parent View. when using M...
Toddler asked 26/7, 2010 at 10:17

4

Solved

This is what I'm trying to do: I'm writing a UserControl that I want to be consumed by other developers. I want end users to be able to use my control using Dependency Properties. <lib:Contro...
Milkweed asked 14/4, 2010 at 13:23

5

I am using http://blogs.microsoft.co.il/blogs/justguy/archive/2009/01/19/wpf-combobox-with-checkboxes-as-items-it-will-even-update-on-the-fly.aspx?CommentPosted=true#commentmessage example to show...
Cessionary asked 3/4, 2012 at 13:13

3

Solved

In C# .Net in Winforms, I found two events in almost all components, Resize() and SizeChanged(). Is there any difference between them? If both events are the same then why has C# provided two diff...
Cholera asked 16/9, 2011 at 7:26

4

Solved

I have a UserControl which uses a UserControl, among other controls. In the ascx file I have the following code: <%@ Register TagPrefix="tag" Namespace="some.name.space" Assembly="some.assemb...
Lowpitched asked 16/11, 2011 at 23:40

4

Solved

Context : I created an User Control. For some reason, I want to use this control in different size. To keep the initial "Template" of my User Control when re-sizing, I use the property Anchor on m...
Cryptozoite asked 30/5, 2013 at 18:3

3

Solved

My user control context menu visibility can't bind a dependency property. Any idea? Here is my WPF code <UserControl.ContextMenu> <ContextMenu Visibility="{Binding ElementName=wellCont...
Disconcerted asked 16/10, 2011 at 2:21

11

Solved

I have a datatable with One ColumnName "CustomerID" with Integer DataType. Dynamically I want to add rows to the DataTable. For that, I had created one DataRow object like: DataTable dt = new Dat...
Ulrich asked 15/6, 2011 at 12:49

6

Solved

I have two usercontrols: UserControl1 and UserControl2, these controls are added in the Page.aspx. UserControl1: This usercontrol contains method for hidden textboxes in this usercontrol. This me...
Bekki asked 17/1, 2013 at 19:27

1

I am attempting to create a custom User Control that is usable in the Acumatica Framework. Documentation is very limited so I was hoping someone may have some experience/examples of how best to imp...
Horsy asked 9/6, 2016 at 11:41

9

Solved

abstract class CustomControl : UserControl { protected abstract int DoStuff(); } class DetailControl : CustomControl { protected override int DoStuff() { // do stuff return result; } } I...
Chace asked 25/7, 2011 at 13:47

3

Solved

public class StatisticsViewPresenter { private IStatisticsView view; private Statistics statsModel; public StatisticsViewPresenter(IStatisticsView view, Statistics statsModel) { this.view = v...

1

I have a selectInput widget in Shiny. I want to control the font-size separately for both the label argument, and for the input text of the widget itself (i.e., the text of the choices and selecte...
Bondy asked 18/7, 2017 at 23:25

8

Solved

I've created a C# WinForms application using VS2010. I'm new to creating user controls so I created a new user control (as part of the same project). When I rebuild the project, the new control ap...
Agglutination asked 26/1, 2011 at 0:31

1

Solved

in my UWP app I was thinking to extract my data template into a seperate user control , i.e: <DataTemplate><local:CustomTemplate/></DataTemplate> and the user control ( customtemp...
Acentric asked 21/6, 2017 at 13:20

8

Solved

I have a class which implements UserControl. In .NET 2005, a Dispose method is automatically created in the MyClass.Designer.cs partial class file that looks like this: protected override void Di...
Frenzy asked 3/10, 2008 at 16:4

© 2022 - 2024 — McMap. All rights reserved.