Questions tagged [user-controls]

A UserControl is a separate, reusable input control that allows a user to interact with an application. User controls can be buttons, checkboxes, input text boxes, mice, keyboards, etc.

A UserControl is a separate, reusable input control that allows a user to interact with an application. User controls can be buttons, checkboxes, input text boxes, mice, keyboards, etc.

User controls only exist on graphical systems or applications. For example, a HTTP service application does not contain user controls; its input is usually by means of a configuration file or a separate application providing it input.

10278 questions
3
votes
0 answers

UserControl inside a FlipView

Summary: I cannot get a UserControl, which is inside a FlipView, to refresh/update itself when changing pages on the FlipView. The UserControl depends upon its code-behind to perform essential calculations for its own display. Introduction: I have…
3
votes
1 answer

Save a WPF UserControl as a vector image

I have created a WPF UserControl library. And I would like to put a vector picture of each UserControl (in default settings) to documentation. So my question is: How do I create a vector image of a UserControl? Thanks for any efforts.
Nikolas Jíša
  • 699
  • 1
  • 11
  • 29
3
votes
1 answer

How do I set the text align indicator in C# WinForm Custom UserControls?

Using: C# .NET 4.0 Winforms - Visual C# Express 2008 .NET default controls have a pink line in designer mode that allows you to align the text within controls. E.g. a label and textbox can align text vertically when placed by aligning to the pink…
Louis Ingenthron
  • 1,267
  • 8
  • 21
3
votes
2 answers

UserControl does not auto resize with the Form

I am having troubles with setting my user control to automatically resize with the panel where it is created. When user is resizing a main form that contains the user control, the size of this user control does not change at all making for some poor…
user1391337
  • 35
  • 1
  • 4
3
votes
1 answer

XML Serialization – serialize the properties in user control

How to serialize the properties in user control? I have tried the following code but I got InvalidOperationExceptio, While creating the XmlSerializer object MyUserControl userControl = new MyUserControl(); XmlSerializer serializer = new…
Ponraja
  • 570
  • 2
  • 6
  • 17
3
votes
3 answers

custom user control

I have designed custom user control in c# .This user control is include : textbox,check box,button. Now I want to consume designed user control in my project but the problem is I can't access to the textbox,checkbox,button EVENTS when consume user…
franchesco totti
  • 582
  • 1
  • 7
  • 28
3
votes
0 answers

Required property in User Control

I just made an User Control with some parameters to be filled. Now, my question is: How to make the property1 be a required field? The developer must fill the Name of…
Pellizon
  • 1,365
  • 2
  • 12
  • 26
3
votes
1 answer

Tategaki (japanese vertical writing) in iOS apps

Is there a user control (standard or third-party) for iOS that allows to display vertical text of East Asian languages? I also need to display a ruby characters (furigana/reading aid) near the text. Result should look like this…
kallax
  • 353
  • 1
  • 2
  • 11
3
votes
3 answers

Design problems with .Net UserControl

I have created a UserControl that has a ListView in it. The ListView is publicly accessible though a property. When I put the UserControl in a form and try to design the ListView though the property, the ListView stays that way until I compile again…
Matt Nelson
  • 991
  • 1
  • 9
  • 21
3
votes
1 answer

Dynamic controls disappear after postback

I have a whole lot of controls to be created dynamically. Where is the best place to run the code for that? I have been running the CreateControls function (to create all controls) at Page_Load. Now the problem is, when I uncheck/uncheck one…
viv_acious
  • 2,429
  • 9
  • 34
  • 55
3
votes
1 answer

Add link buttons to a user control in webforms?

I have a product list user control in my application (gridview). I have nearly the same logic for end user & admin pages (List of products). The role 'end user' can only view a product & an admin can 'edit' and 'delete' a product. I plan to use…
Zo Has
  • 12,599
  • 22
  • 87
  • 149
3
votes
2 answers

In wpf how to access window.resources in usercontrol

I have a child usercontrol and I am having trouble accessing its parent usercontrol's resources. The resource is a collectionViewSource and its source is set in the code behind of the parent usercontrol, the source is set to a query result from LINQ…
Ash
  • 657
  • 9
  • 16
3
votes
2 answers

Passing variables to usercontrol inside the listview (asp.net, c#)

I want to pass some dynamic information from the listview to UserControl, but I guess I'm missing something. .aspx page:
Oak
  • 1,159
  • 3
  • 13
  • 21
3
votes
0 answers

FancyBox doesn't trigger when using it in UserControl

I have ASP.Net Masterpage design & have to user a Fancybox to show videos as modal, When i show videos on a ContenPage & place all related scripts to FB on that page then it works fine for that page without any issue. But i also need Top 10 Videos…
Learning
  • 19,469
  • 39
  • 180
  • 373
3
votes
1 answer

WPF VS Collection editor tutorial?

I have a usercontrol with a Collection property. What I want to achieve is to be able to add/modify/remove items of some data types of that collection via VS designer (Property window/Collection editor). I have a simple class: public class…
Nikolas Jíša
  • 699
  • 1
  • 11
  • 29