user-controls Questions

4

Solved

I have a mediocre skill level with VS and C#. I'm attempting to add a .ascx file with codebehind to an existing project in its user controls. Right-clicking UserControls -> Add -> New Item and se...
Scythia asked 22/5, 2017 at 12:10

1

Can Javascript disable an ASP.net control inside a UserControl? My Javascript file is called from the MasterPage, I've also tried it from the ContentPage. I'm attempting to use Javascript as an id...
Tiptop asked 10/6, 2019 at 16:15

2

Solved

I'm trying to make a WPF user control that includes two group boxes and two ListViews in each group box. Here is the XAML code for the user control: <UserControl x:Class="TestGroupControl.Tes...
Apian asked 4/6, 2010 at 17:27

5

Solved

I have designed a reuseable usercontrol. It contains UserControl.InputBindings. It is quite simple as it only contains a label and a button (and new properties etc.) When I use the control in my w...
Impulsive asked 26/4, 2014 at 20:39

1

I want to create a custom user control with two grids in which I want to load images and until images are loaded I want to show the progressRing control. The problem occurs when I add a second Prog...
Carpentaria asked 11/5, 2015 at 19:28

2

Solved

I am facing a problem with UpdateSourceTrigger property. I have a UserControl named LabelWithTextBox, where UpdateSourceTrigger (On Text Property) is not defined (therefore has default value). This...
Hujsak asked 19/3, 2019 at 12:44

10

I've a user control registered in an aspx page On click event of a button in the user control, how do i call a method which is there in the parent page's codebehind? Thanks.
Bathelda asked 8/3, 2009 at 5:52

3

Solved

I have an UserControl with a button inside. This button needs to add some items to a Grid that's inside said UC. I'm aware I can do this with a Click event. The issue here is I am using MVVM and ...
Insured asked 21/2, 2015 at 19:28

1

Solved

I have a Form which contains: a TrackBar (minimum = 1, maximum = 200, represents zoom percent); a UserControl with BorderStyle = BorderStyle.None. Relevant code Form1 From designer code trac...
Abomination asked 20/2, 2019 at 13:40

4

Solved

I'm looking for a way to (preferably) strongly type a master page from a user control which is found in a content page that uses the master page. Sadly, you can't use this in a user control: <...
Micco asked 6/1, 2009 at 14:15

9

Just as the subject asks. EDIT 1 Maybe it's possible sometime while the request is being processed to store a reference to the parent page in the user control?
Weirick asked 22/6, 2009 at 19:19

5

Solved

I have a Window1.xaml main Window; and after some event, I display a UserControl EditFile.xaml. The code behind is: public static int whichSelected = -1; private void button1_Click(object sender,...
Extortioner asked 1/6, 2010 at 10:52

2

I have a user control public partial class ButtonControl : UserControl which has two controls of label and picturebox this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.text = n...

1

Solved

I am having some trouble with a custom circular progress bar control. I am trying to overlap the two of them at the lower right corner. It has a transparent background, which obviously in WinForms ...
Columbite asked 18/11, 2018 at 22:4

3

Solved

I have the following UserControl. It's a TextBox with a Button: <Grid> <TextBox Grid.Column="0" Text="{Binding Text, RelativeSource={RelativeSource AncestorType=UserControl}, Updat...
Chicle asked 29/11, 2012 at 11:19

3

Solved

I have a very interesting task that I need help with. The description is as follows: I have a user control (SomeUserControl), that I am using in a Main Window. I write my application entirely on S...
Threemaster asked 10/2, 2012 at 10:18

3

Solved

I have code as this one: <ListBox ItemsSource="{Binding Items}"> <ListBox.ItemTemplate> <DataTemplate DataType="{x:Type local:MyViewModel}"> <!-- xaml is typed here direct...
Afghan asked 27/7, 2016 at 10:27

3

Solved

I have a user control that I'm building. It's purpose is to display the status of a class to the user. Obviously, this does not matter, and will slow things down when the control runs in the IDE, a...
Beavers asked 3/12, 2008 at 10:59

8

Solved

During a design meeting the question came up "What is the name of the component with three horizontal lines?" It's common in mobile apps and mobile web, visualizing something to swipe. Googli...
Henleyonthames asked 5/12, 2013 at 14:16

3

Solved

I have created a user control that contains a button. I am using this control on my winform which will be loaded at run time after fetching data from database. Now I need to remove a row from a da...
Albertinealbertite asked 27/5, 2010 at 10:8

7

Solved

Has C# indexed control arrays or not? I would like to put a "button array" for example with 5 buttons which use just one event handler which handles the index of all this 5 controls (like VB6 does)...
Ddt asked 23/7, 2012 at 21:41

3

Solved

I created an UserControl: A TextBox that shows an icon on the left side. My code seems to work but the following error keeps showing and makes the XAML editor mark it as an error. The member is ...
Braunschweig asked 28/1, 2016 at 15:11

7

Solved

I would like to define the following control: public partial class ObjectSelectorControl<T> : UserControl where T : class The problem is that the designer can't resolve this. Is there a w...
Puggree asked 25/8, 2009 at 16:24

22

Solved

I am trying to create a simple user control that is a slider. When I add a AjaxToolkit SliderExtender to the user control I get this (*&$#()@# error: Server Error in '/' Application. The Contr...
Prong asked 22/4, 2009 at 20:2

2

Solved

I created a custom ListView with a UserControl. When the mouse enters the ColumnHeader it should change color at design time. It works, but I need to debug code. How can I debug code at design ti...
Scaremonger asked 24/6, 2011 at 7:29

© 2022 - 2024 — McMap. All rights reserved.