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
1 answer

Start and End Divs Using Two Controls - Asp.net mvc

In an Asp.net MVC application I'd like to encapsulate the ugly wrapper code (just a literal html opening string and another closing string) we use to make corners and shadows compatible with older browsers (we don't use javascript for performance…
Glenn
  • 1,234
  • 2
  • 19
  • 33
3
votes
4 answers

How to call a method from user control to aspx page?

I want to call a method from user control to aspx page I'm trying but I am not able to call that method in aspx page Code: AddVisaUserControl.ascx.cs public event EventHandler UserControlButtonClicked; public void OnUserControlButtonClick() …
user2500094
  • 1,033
  • 6
  • 23
  • 42
3
votes
1 answer

MultiDataTrigger not working with binding path condition

I have implemented a WPF user control and what i want to achieve here is on mouseover on Main Grid some stack panels should hide. And i need to have multiple triggers conditions. Despite looking everywhere i am unable to find what am i doing wrong.…
Mirza Bilal
  • 891
  • 11
  • 34
3
votes
1 answer

Multiple instances of the same ASP.NET user control Javascript name collisions

Problem: I have a user control (.ascx) with a ton of javascript code in there. I have two instances of the user control on the same page. When the code runs the two user controls behave erratically because all the js objects with the same name…
3
votes
3 answers

ASP.NET User Control declaration in designer.cs file

Possible Duplicate: Why does ASP.NET auto-generated .designer code have the incorrect type? On my .aspx page, I have the following declaration to user my user control: <%@ Register TagPrefix="uc" TagName="ProductCategoryMenu"…
Mike Cole
  • 14,474
  • 28
  • 114
  • 194
3
votes
2 answers

Resizing custom user control according to data in the webBrowser control docked in it

I have a webBrowser control named webBrowser1 that is added and docked as DockStyle.Full on a custom user control. The web-browser accepts some HTML text dynamically and displays it. I disabled the scroll bars of the webBrowser control. My problem…
Aishwarya Shiva
  • 3,460
  • 15
  • 58
  • 107
3
votes
1 answer

Adding Dynamic Controls in ASP.NET

It kind of seems to me that there is an inherent difficulty in dynamically adding controls in ASP.NET Web Forms. Specifically, for a dynamically added control to be included in the ViewState, and have it's events properly wired up and so forth it is…
user641687
3
votes
2 answers

Only the last usercontrol shows contentcontrol

I have a weird problem. I've created a usercontrol with a label and a canvas. The canvas references a resource. But the canvas is only shown on the last control in my stackpanel. This is my window
Robby Smet
  • 4,649
  • 8
  • 61
  • 104
3
votes
1 answer

ListBox when I select a value from list: why half time that's select 1st value as well with 2nd event?

As it says in tilte: there is a ListBox when I select a value in 1st SelectedValueChanged event contains value I clicked on and time to time there is 2nd SelectedValueChanged event contains 1st value from the list I catched it adding those piece…
mickro
  • 881
  • 2
  • 11
  • 26
3
votes
1 answer

C# WinForms, Adding a usercontrol Dynamically during runtime and controls are invisible?

I'm working on a contact manager, and I want to add controls for contact details such as Phone Number, Email to a usercontrol. i created a user control called TextPrompt that includes a label and textbox. the code should sort through the contacts…
3
votes
2 answers

Using a Usercontrol inside Datatemplate

I have a datatemplate with following code cControl:FullVisableImageControl is my usercontrol However I still need the Usercontrol to have…
3
votes
2 answers

how to remove unnecessary properties from user control?

i want to remove unnecessary properties from user control. But I do not know what way?
Sadegh
  • 4,181
  • 9
  • 45
  • 78
3
votes
1 answer

C# Winforms form losing focus when focusing on child control ... sometimes

I am developing a windows mobile 6.5 app and have issues with my form losing focus when focusing on a child control of a UserControl added to the form... sometimes. In my app I navigate between screens by adding and removing user controls to the…
pac w
  • 647
  • 6
  • 17
3
votes
2 answers

Make label participate in control tabbing

I have custom control that inherits from Label and has ControlStyle.Selectable set to true. The control receives focus when the user clicks on it, but won't if the user tabs from another control. Even when I have a form filled by only that type of…
user629926
  • 1,910
  • 2
  • 18
  • 43
3
votes
2 answers

Winforms Control

I have a button which I use all the time as a little pick button next to a combobox. When I click the button I open a larger full list. This side of things work well and I do not have a problem with this.. My problem lies when someone said to me can…
trailerman
  • 321
  • 5
  • 15