controls

In Android, how can i allow the user to choose a color between 4 ?

I'm making an Android App, and i need to put a control that let user choose between 4 different colors. I want to do this with something like radio buttons: the problem is that radiobuttons are round... is there a way to set them looks like square/rect buttons, and assign a color to their inside rect area ? If not, how can i achieve th...

Graphical designer for asp.net controls.

Hi, I'm searching a graphical designer, better than visual studio designer for asp.net typical and ajax controls. Visual studio designer (VS 2010 B2) very often don't handle with html code and shows nothing. Is there any better tool for writing code behind and design graphically controls for asp.net web sites? ...

How do you set the name attribute of a TextBox control in a .Net 3.5 project?

Self explanatory really ...

How to add controls (programmatically) to a Visual Studio designer WinForm

In my current job we are not allowed to use databinding. I’m currently using a code generator (ORM) to generate the data layer objects. In the past I usually generated a data source (from the object) and do a drag and drop to automatically add the controls (with the correct databinding to the WinForm). Is there is a way to do something ...

ASP.Net Problem with View Control

I admit, I'm an .NET n00b. Basically what I'm trying to do is I have a page with a text box on it and an image button. On click of the image button I want it to show a view control I have set up. Inside this view control is an image and some text. So this is what I have in my code-behind. protected void btnSubmit_Click(object sender...

ASP.net: Searching for all validation controls on a page.

Hello again, I want to search an ASP.net form for all types of validation controls and programmatically add some attributes to them such as ForeColor. Can someone point me in the right direction on this? Cheers and thanks Stackers :) ...

Adding Dynamic Controls

I have a page I need to build out where depending on the selection the user made on a form on the page prior it displays a different set of questions for them to answer. So say the user selects Reason A from the form on page edit, then it needs to display Questions 1 and 2 on page edit_confirmation. But if they select Reason B then it ...

WPF: Is there a built-in TreeGrid / TreeListView?

I need something just like this: (I need both the TreeView and the ListView aspects. That is, Hirearchy and Columns.) But, I need it in WPF. is this something that is built in, or am I going to have to build it myself? I assume it has to be somewhere in the framework, since VS2010 is build in WPF. Edit: I have managed to get some ...

anyone knows the manufacterer of this grid control?

It is amazing.Each combobox cell has specific items(I couldn't show in the picture). http://up.vatandownload.com/images/f6sq44ycqe34ptw37m42.jpg ...

How do I prevent my ContextMenu from being constrained to its container (Win Forms c#)

I wrote a custom Control (an auto-complete TextBox (below)) in which a ContextMenuStrip is programmatically added to the form. My problem is that when the control generates a list longer than the height of it's parent container (Panel, GroupBox, etc) the bottom section of ContextMenuStrip is hidden. I have tried calling .BringToFront(...

Best "For Pay" wpf controls

If this question has been asked then I applogize and I will join in voting to close it (or just delete it), but I could not find it being asked before. We are potentially embarking on making many of our apps using WPF. Most of our apps are normal business apps that will not need too much eye candy. Tasteful ui is nice, but I don't see...

Graphical net and text

Hello! My task is to make a control, that behaves itself like RichTextBox, but contains a graphical net. The only task, this net is solving, is to be visible. It should be solution in overriding OnPaint method, but it doesn't. This code: protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { base.OnPaint(e); ...

WPF and events from dynamically created controls

Hi, I need some help to implement a common behavior in some controls. In my WPF application, I have a main form that contains a panel and a button: Ok The button will run a Save method when clicked.The Save method reads some data from the form and saves the data to...

How do I create custom Controls for my VS2005 toolbox?

Ok, this question might more about design theory. I have successfully created controls that show up in my toolbox, so I'm pretty sure I have the process right. Also, my "AutoToolboxPopulate" is set to true, so things are showing up as I create them. My question is this: I'm sub-classing a native Control for specialized use. When I de...

Avoiding the need to call ProcessMessages

I've got a component I created that embeds a hardware-accelerated renderer in a TWinControl so you can place it on a form. It works pretty well in most cases, but if I try to resize the control, everything goes blank until the message loop runs and calls the WndProc for the renderer, which is hosted in an external DLL. This means that ...

AJAX TabContainer containing user controls

Hi all, Wondering if someone here can help. I have an AJAX tabcontainer which has a number of tabs and each tab contains a user control. When I add a new item from one of the tabs, it is not reflected in the user control in another tab unless a postback occurs. (e.g. the first tab has a listview where I add a new record and the second ...

How do I show and position an Image initialized in the codebehind on my page?

Hello. I have created a simple method to check if an image has been approved and finally returns it as an control. But how do i call and show it on the page? I've tried something like this in the aspx-file: <% SendImage("DKBygMiniLogo.gif", "True"); %> Here is the simple method: protected Image SendImage(object Image, object Approve...

CodeIgniter: Sending params to a view?

Hello, My controls receives some params from the user, I would like to place them inside the view I'm calling, how should I do this without splitting the view into multiple parts? Thank you. ...

Autocomplete textbox in Windows Phone 7

I'm creating my first Windows Phone 7 application, and I'm struggling to find an autocomplete textbox. Is there an easy way to add one to the toolbox? Or do I need to create my own control? ...

Windows.Forms.Control derived class with TabStop and key-events

I've got a control that derives from Forms.Control, it handles mouse events and paint events just fine, but I'm having a problem with key events. I need to handle Left arrow and Right arrow, but so far the Tab control that contains my class eats these. How do I make this control selectable, focusable? ...