controls

Which control to use for working on data from databas

want is, can perform all operations on a table of a database, that is create delete insert records edit records/update etc. have used all the controls gridview datalist detailsview formview listview i would like to have your opinion as to "which control is the best to use, easy to program, and is user friendly, simple coding all...

Programatically copy a content control along with its contents

Any idea, what should be done if I want to copy a content Control into another, along with its contents. Note: Content control will contain other content controls too. When I copy the content control, I need to copy it along with its contents ...

Making Vista / 7 User Frame control? (WinAPI)

I notice Vista/7 uses this type of control as well as Windows Live Messenger. This is the control: How can this control be programably added to a WinAPI application? Thanks ...

WinForms - action after resize event

Hi, Is it possible to perform a specific action after the resize event (of the user control), for example when mouse button is released? I need to manually resize an inner control and doing it on every single firing of the event would be quite, hmm, inefficient... ...

Change Login Control Layout In Custom Control

Is it possible to create a Custom Control which inherits from System.Web.UI.WebControls.Login and change its layout and add additional controls such as a DropDownList. I have tried various ways to do this by overriding the Render Contents methods but each time I have to recreate the controls which are already present in the main Login co...

.net propertys Grid - How to loop items?

Hi, Simple question which I can't seem to find the answer on the web. How do you loop properties in the microsoft propertysgrid control. example code below is the direction I'm heading in.... AppSettings appSettings = new AppSettings(); OptionsPropertyGrid.SelectedObject = appSettings; foreach(var x in Option...

Get controls of page in asp.net

Hi all, I want to get all of the controls in my current aspx page and see which ones are of a certain type and then add them to a collection. I can accomplish this and have written some test code that will process everything in this.controls and the child controls of those. This seems to work ok but it ends up having to process the en...

What is the main difference between ReadOnly and Enabled?

In win forms controls, there are two properties : ReadOnly and Enabled. Can someone give me any information about what the difference between these two properties are. I feel like they behave the same way. ...

How do I orderly generate controls underneath eachother?

Dear reader, I have a class which generates a form and controls. The controls vary between buttons, radio controls, check boxes and labels. The idea is to neatly create the form with a label above each control. The problem is that I cannot seem to find the formula or way to neatly organise/space them. It works fine when I have just text...

Spy++ for Webkit?

Hi guys, Spy++ can inspect IWebBrowser2 controls, and you can use tools like IESpy to poke around any application with a Internet Explorer_Server control Now I wonder if there is something similar for Webkit? And, possibly, Flash? ...

Javascript added input control on .net postback

What I'm trying to achieve/plan, is whereby a page loads with a set of inputs, e.g. TextBox, Radio List etc. Taking TextBox as an example, there is a button for the user to "Add" another textbox to the page (in the same group), e.g. Member1, Member2, Member3 etc etc. Two questions: I could add these with Javascript, however the result...

WMP troubles with controls.previous() & controls.next()

I'm creating a Windows Media Player skin and have ran into a road block. I can load a song fine, but my code (see below) for the next and previous features are not working. I'm wondering if there is something in the windows API to handle this feature? Do I need to use directory info or something? Any comments would be helpful-- Thanks f...

WPF ComboBox Auto Select If Only 1 Item

I have a combo box that I bind to an observable collection, which gets changed (according to company selected) and a large number of companies will have a single account (the items) therefore I want to know what the best way to make the ComboBox set the SelectedItem if there is only 1 item in the ItemsSource, otherwise leave it as null t...

Using Web User Controls instead of Web Forms

I've been using ASP.NET (C#) for the past two years. I have learned so much but there is still much more to learn :) I've used MasterPages, 'Web User Controls' for things like headers, navigation, footers etc. One thing I have never truly understood is the practice of using 'Web User Controls' for your content and logic; Home.aspx ---...

How to disable ControlState in ASP.NET?

How to completely disable ControlState in an ASP.NET website application to get rid of <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/ACBDEFGH...XYZ=" /> on every page? Searching for a solution, I only found meaningless answers making no difference between ControlState and ViewState, or replies saying that "we cannot d...

control inside Wizard <StepNavigationTemplate> tag isn't available in code-behind?

I put a Literal control in the tag in the Wizard control. In the codebehind, I can't access that control. Why is that? ...

Finding Controls of the Same Type

Does anybody have a good way of finding ALL the controls within an object that is of the same type? Here's my scenario, I have a tab control and within each tab control exists a user control (ALL of which match the same base type e.g. MyBaseClassControl). I want to be able to find that user control WITHOUT having to use the control.Fin...

Create List of Control Groups in VB.Net?

I'm building an control interface for a system that consists of 1-4 modules. In my interface, each module has its own control set, grouped in a groupbox. I only want to show the control groups for the modules that are actually connected and hide the rest. This is easy to do with the visble property. I also want all of the groups to b...

Why would I need to call dispose on ASP.NET Controls?

I'm doing some ASP.NET development in VS and have just found an interesting little code suggestion (I think they come from coderush but I could be wrong). Whenever I'm creating controls it tells me that I should be using a "using" statement for them. I'm a bit confused as to what is going on here though. with the using my code looks som...

Unable to select control in Designer of VS 2008

Hi all, I'm unable to select controls in window form in VS 2008, whenever i try to select any control, the window will be selected instead. It's as though they're read-only. Does anyone know how to solve the problem? *I'm using DiveElement sanddock in the form, will it be the cause of the abnormality? Thanks. ...