controls

how do I read data from a control array in C#

I have the following trackbar controls which I have added to a tabpage 'tab1': TrackBar[] tbs = new TrackBar[nooftbsneeded]; // Add TrackBars TrackBar tbx = new TrackBar(); tbx.Location = new Point(28, 150 + (i * 200)); tbx.Size = new Size(686, 45); ...

WPF - How to load text in a text-block into multiple controls upon click

Hi all, I've this requirement where: For example, a textblock has a name displayed as "Lastname, Firstname" which upon click will load two textbox controls with Firstname's value loaded into its own box and lastname's value into its own box and keep them ready for editing. While I can easily write a bunch of if conditions in my code-beh...

Create File Upload control using HTML controls

I am facing an issue with asp.net file upload control inside update panel. That is FileUploadControl.HasFile always return "true". Can we create a "file upload" control (which has "browse button") using html controls...and use it inside asp.net 2.0 ??? ...

In in WPF controls, which ones are similar to `<div>` HTML tag?

I need to wrap a group of WPF controls to that I can toggle their visibility at the same time. How can I do that? ...

Javascript template disappears on clicking any control.

I have used the Javascript Menu template from Sothink and embedded it in my Master Page. Now when I click on any control of a form like a Radiobutton or a Linkbutton, etc. the Side Javascript Menu disappears. I don't understand why. Initially it shows but later disappears on clicking a redirecting control. Can anyone help me correct ...

DevExpress Wizard Control - how to un - dock?

Okay, I can't find this in DevExpress' documentation. I have a DevExpress Wizard Control which automatically docks to the forms it's in. How can I disable the docking in Visual Studio 2010? I see no property that seems to be doing this and tried to change the docking in the constructor of the main form by setting the... wiz.Dock = DockS...

Delphi windows 7 control panel component

Hi, Im looking for a delphi component that looks and functions like the Windows 7 control panel buttons when you "view by category". Anybody know if something like this already exists? ...

C# can I add the command prompt control to my app

Title says it. I know I can use Process or ProcessStartInfo to run arguments, but I mean actually adding a command prompt control to my app (because I use it very often and it'd be convenient if it was already built-in. Is there any way to do this other than coding a custom control? If not I can live with it, but it would definitely hel...

WP7-Control to enter numeric data?

I've got a WP7 app where I need to enter large numeric data (6 digits and more) - is there some kind of advanced numeric control to enter large numbers comfortably? ...

How can I use a mock control in a Web project, and have the compiler not complain about it?

We have a couple mini-applications (single Web form look-up stuff) that need to run in the context of a much larger site and application (hereafter "the Monolith") We don't want to install the Monolith on every developer's machine, so we want some developers to be able to develop these little apps in their own isolated sandbox project (...

MPMoviePlayerController controls - remove fullscreen and aspect buttons?

The documentation shows 3 control styles: MPMovieControlStyleNone, MPMovieControlStyleEmbedded, MPMovieControlStyleFullscreen, MPMovieControlStyleDefault = MPMovieControlStyleFullscreen I want the controls to mimic the kind found in Apple's "Videos" app, which do not have a fullscreen button or an aspect ratio button. None of the ab...

ASP.NET drawing with controls

Hi there! What i want to do is something similar to this: http://sig.cm-olb.pt/develop.aspx?Layer=Cemit%C3%A9rio&amp;Field=n_sepultur (Zoom, Drag, info, etc) Whats the best way to do it? Is there any component to help me? Thanks ...

ASP.NET controls opening new windows intead of postback in same window

The fils containing these control work fine in another project and they work fine on visual studio so I guess it is safe to assume that the problem is not in the files or with the server but has something to do with the project? What could be causing this? ...

WPF Create Composite Control

Let's say I have 5 buttons aligned in a row, and the text on the buttons cycle when I click on any of them. I want to turn this into a single control, so that I can create more of these "5 button" controls with similar behavior. What would be the best way to create this sort of control, while still sort of preserving the control of the ...

How to get Page assembly from a Control?

I've create a method that gets the current page's assembly name and version so that I can display it in the page footer. It works just fine, but I'd like to move this logic into a control that I could drop into any web application project master page that references my control library. However, in the control library Assembly.GetExecutin...

how to add checkbox to a custom grid?

I am having a custom grid control, where each cell is entered with values., I need to add a control (checkbox) to the cells of the grid which i wish., Whats the best method to do that? From the custom grid i could get the cell location etc. ...

Can I unit test against (build) a mock ASP.Net page structure? (code utilizing NamingContainer)

We have some basic form validation code that utilizes Control.NamingContainer. Is there anyway to create a mock page within a unit test, so the IDs and NamingContainer properties are set? ...

Transforming a c# class into a visual control

Hi, I new to c# and windows form programming. Here is the problem i am trying to solve. I have to write an application that uses an multiple instance of an ActiveX control. Therefore, I dragged as many control as necessary to my Form. Now my problem is that i'd like to add some personalised methods to this activeX. The logical solution...

LinkButton permanent underline

Hi, I'm using an asp:LinkButton. The text underlines upon hovering over it. However I want it to always have an underline. Can anyone tell me how to achieve this? Thanks! ...

How can i create dynamic buttons on button click event (C sharp ASP.NET)?

I want to create dynamic buttons on button click event(for example., btnCreateDynamic_Click). I tried creating dynamic buttons on page_load event and Pre_int event.They are all working but i want to create them in button click event. How can i do this in c# asp.net? ...