control

Winform usercontrol in WebForm

I want to display a "folderview" which I can drag and drop files into but via WebForm. I am doing this via a webbrowser control pointing at local drive. The code works in a win form user control but what I want is to embed this control in web form. This is an intranet so security etc is less of an issue. However when I add things like Al...

How to used control Key in c#

F1- F12 And Ctrl + R and how to detect enter key in my textbox in keypress can someone example me please ...

Finding Controls in an ITemplated Custom Control

I have created a custom server control with properties implementing the ITemplate interface. It is basically a custom panel box with a header, body & footer. Here is the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using S...

How do I use 'placeholder text' in a win32 edit control?

Take a look at the top-right of the Stack Overflow site. The search box has some text in it saying "search". When you click within it, the text disappears. I want to do something similar to this - if a win32 edit control is empty (i.e. has no text), I want to paint some text inside it, in a more subdued color than the normal text. If th...

c# dragdrop from listview control

Hi, i have a c# winform app that contains a listview control. i would like to be able to drag items from the listview onto the desktop. does any one know how to do this? I am vaguely familiar with the dodragdrop() method but not sure of the proper implementation. Ta! ...

How to pass reference of an control to another control in XAML

Hi, Im having requirement of passing reference of control to another custom control . Like I created custom control which contains dependency property associateDatagridProperty public static readonly DependencyProperty AssociatedDataGridProperty = DependencyProperty.Register( "AssociatedDatagrid", ...

WPF Menu --equivalent property

How to acheive Layoutsyle = VerticalStackWithOverflow Property in WPF for Menu control. Want File/edit on left corner along with OPEN,new in file to open on rightside of File . sample in Codeguru.com ...

Android, add new view without XML Layout

Posted: Thu Jul 30, 2009 6:09 pm Post subject: How to show small View? I need a little help from people with expirience. I hope it's easy. I just want to show new View (creating it without XML layouts) above main program's view. It's to integrate AdMob.com ad block: I wrote such code: AdView ad = new AdView(this); ad.layout(10,...

What is the way to load an image on top of your webpage using a seethrough layer?

check this webiste: http://www.ramziarabi.com/portfolio/art-portfolio/ when you click on an image it opens itself on top of the webpage without hiding it or opening new page. I'm assuming this is done by JavaScript, but can someone explain how? provide some code I can use to do that? ...

Generics ListView Custom Control

Good Day, I'm using Generics with a ListView control whose initial class definition looks like this: namespace BaseControlLibrary { public partial class CustomListView<T> : System.Windows.Forms.ListView { // Custom fields, properties, methods go here public CustomListView(List<T> data) { _co...

Update parent updatepanel from within usercontrol

I have an update panel that contains a repeater that calls a user control into each row. When I click a button inside the user control, the page does not refresh at all, only when I reload it completely. How can I make the update panel refresh from user control's button click? ...

AJAX Control Toolkit issue: CollapsiblePanelExtender

I've been banging my head against the wall with the following issue: My mock-up site works as intenden in Firefox: [http://www.plasus.com/test/work/work/Default.aspx][1] In all other browsers, the collapsible panels and all other AJAX ControlKit stuff is immediately visible to the user, which is not at all intended. What could possi...

What is the best method to get a number from an user?

Hello all, I was wondering for a small list of numbers [1..20], what kind of control will you advise to prompt the user for his selection. I was thinking of a NumericUpDown control but it does not exist for WebForm and to make matters worse, I am deploying on a Pylons application (Python Framework) Do you feel a DropDown control will s...

Change an ASP.NET control's properties in a Repeater control

My question is fairly simple. This is what I have for the aspx page: <ul> <asp:Repeater runat="server" ID="linksList" OnItemDataBound="linksList_OnItemDataBound" > <ItemTemplate> <li><asp:HyperLink runat="server" ID="link" /></li> </ItemTemplate> </asp:Repeater> </ul> I'm trying to get a list of hyperlinks from...

ASP.NET MVC: creating controls dynamically

This is the control builder class... public class ControlBuilder { /// <summary> /// Html Control class for controlbuilder Control . /// </summary> protected HTMLControl formControl; /// <summary> /// Html Control class for the label. /// </summary> private HTMLControl labelControl; /// <summary> ...

Will stock WPF get a menustrip control?

My "metric" for when WPF is truly "ready to go" is when there is a menustrip control available in Visual Studio. Without that, from my perspective, it's still "under construction" a bit, in comparision to winforms. This isn't a technical argument, just a personal preference. So my question is: when will stock Visual Studio come with a W...

Instantiate User Control with Custom Attributes

My User Control has the following properties: private String _requestIP; public String RequestIP { get { return _requestIP; } set { _requestIP = value; } } When adding a instance of the Control to an aspx page at design time it's easy to assign the attributes which can be utilized in the codebehind file... <uc:Item ID="Test...

OnMouseMove and mouse laging

Hi! I want move control in another control. It's very simple code private void ControlThumb_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { m_offSet = Control.MousePosition; ((Control)sender).Capture = true; } } private void ControlThum...

Dynamically Load a user control (ascx) in a asp.net website

Hi, I am trying to dynamically load a user control in an asp.web site. However due to how asp.net websites projects are setup (I think), I am not able to access reach the type definition of the user control. I get a message saying that my class HE_ContentTop_WebControl1 is: he type or namespace name 'HE_ContentTop_WebControl1' could no...

Server Control Event Handler?

Hello, I have a drop down list that appears throughout my site. For code re-usability purposes I made it a Server Control. Everything was working great. However I would like to add a event handler for SelectedIndexChanged This is not working for me: this.OnSelectedIndexChanged = "CultureSelectorControl1_SelectedIndexChanged"; followe...