controls

How to Dynamically Create Tabs

This is in C# I Need to basically make TabPages from a textbox.Text so for example: textBox1.Text = "test"; TabPage textBox1.Text = new TabPage(); That is what i want to do.. i know that won't work directly, but that should give you the idea of how i want to create the tabPages.. then i want to be able to call them later on too so fo...

jQuery UI vs Telerik vs ...?

I'm in the process of building a web cms platform. And I've come to a point where I have to choose what actually goes in the pages (I've been building the "core" for now). What do you think is the best option and could you give me your reasons for choosing that? Currently I'm looking at jQuery UI, Telerik, and I'm also juggling with t...

Android controls for navigation in a tree hierarchy

I want to navigate items in a tree hierarchy. I put the items on the same level in a listview. Upon clicking the item in the listview it will open another listview to show the items in the child level. I want the user to navigate easily to another level (parent, grandparent, grandgrandparent) without pressing the back buttons several t...

Getting list of controls inside a specific div in .NET

How to Get list of controls inside a specific div in ASP.NET ...

JSF: Validate value provided in both fields or none of them

I have two fields representing data range ("from" and "to"). I need to check if either both fields are filled on none of them, so only moment there should be validation message shown is when one is filled and not second one. How can I do that? I thied this custom validator and add it to both fields (as JSF doesn't validate empty fields) ...

access 2007 a loop to loop through a particular textbox in one form

my problem is as follows I have a properties form which contains a textfield called DateTo(this textfield contains the data type Date) I would like to loop through the DateTo textfield on each of the properties and prints this out in a message box as wasll as a tenantName textfield and a tenantAddress1 field. After this is complete i w...

Excel 2003 Workbook Form Controls sometimes resize when viewed through a Virtual Machine

I develop for clients who are still using Excel 2003 on Windows XP systems. Therefore we develop within a Virtual Machine running XP and Office 2003. I often create menu or control sheets within files using Form Control objects, mainly button controls. Sometimes when I open these workbooks up, the controls resize themselves (bigger, sma...

What is the proper use of EnsureChildControls()?

Most often I use it when I am accessing a property of a composite control that depends on a child control. But I have also added it to OnInit of a control so I could make sure a hidden field was added correctly. Just a minute ago I called it in RenderControl because I was having an issue rendering a calendar extender and it fixed it. ...

What .Net controls are available for diagram markup?

We need to mark up diagrams of body parts to indicate the location and extent of injuries. For example, to shade an area of the body to mark a burn, or a diagram of a hand with an amputated finger. What 3rd party controls are available that would be suitable for embedding into a .Net application? ...

Can we add multiple files using a single ASP.NET FileUpload control?

We need to upload multiple files using ASP.Net in one go. One option is to use the ASP.Net FileUpload control but it seems that it can't upload multiple files in one go. Any other option or ASP.Net FileUpload control can do multiple uploads in one go with some tuning? ...

How to restrict folder access in asp.net

How to restrict folder access in asp.net like i dun want any other to see my Uploads folder in browser by link http://www.myweb.com/Uploads Please help ...

Doing all validation at once

When trying to validate controls on a windows form I realise the .validated() for each controls fires when the focus is lost. Instead I'd like to validate only when the button is pressed at the bottom, how would I do this? ...

vb.net scrollable content panel

Is there a control in vb.net that is specifically designed for displaying content larger than the control itself? I know it's possible to code your own using a panel and two scrollbars, but is there an already existing method for this? Thanks for your help ...

User controls within table using MVC2 issues

I have a ascx file (with its own viewmodel) that displays a table. Each row in the table will have a user control (with their own ViewModel - created from the ascx viewmodel). The main problem is with validation. The individual user controls on each row use DataAnnotation validation with a Validation summary at the top of it, when runni...

Regular expression validator is not allowing non-english characters for \w

I have email field in my page, which i am validating using regular expression validator provided my asp.net. I am using same validation expression as given along with validator for emails i.e ValidationExpression="\w+([-+.']\w+)@\w+([-.]\w+).\w+([-.]\w+)*" It is working fine but problem comes when I tried giving non-english letters e.g...

Embedd third party js libraries on a custom control library. Yes or not?

I wonder what's the best approach for using third party js libraries on a control library. If the library uses (let's say) jquery and jquery-ui seems wrong to me to include those on the control library since, if the page using the controls already reference them, they will downloaded twice (the embedded version and the non-embedded vers...

WPF User Control cannot find assembly during Design Time

I have a series of WPF UserControls in a single Class Library. There are multiple levels to the controls and the top most level will use multiple lower level controls. Some of the low level controls import classes from other external DLLs and then use those classes in properties of the control. The problem is that when I try to drop o...

how do you programmatically paste a form into Visual Studio designer?

I have a Windows project that loads in forms from a database and dynamically generates them. It reads the control properties of each control from a table and dynamically adds it to the form. Unfortunately, I have to change the project so that the forms are actually in the Visual Studio project. Instead of repainting all of those forms,...

Toolbox control tabs/groups won't go away.

I've tried to clean up the multitude of tabs/groups of controls in my Toolbox. There is a ton of stuff that I won't ever use (mobile web forms, reporting stuff, etc...) and it has accumulated over time. I've tried deleting them, but upon restarting Visual Studio, they reappear. How do I get rid of them for good? ...

Clearing the value of ASP.Net 2.0 File Upload Control using javascript that works on all browser?

We are running following javascript function: function btn_AddToList_Click() { var filePath = document.getElementById("FileUpload").value; if(filePath.length > 0) { var opt = new Option(filePath,filePath); var listBox = document.getElementById("ListBox"); listBox.options[listBox.options.length] = opt; } } ...