controls

do I have to call all the exposed dispose functions of the controls within a windows form in the overriden dispose function?

Hi all, I have a windows form that contains many controls e.g timers, gridviews, and binding sources etc, and all of these expose a dispose function. Do I have to call their dispose function in this protected override void Dispose(bool disposing) { if (disposing && (components != null)) { compon...

ASP.NET calendar drawing control

I want to make a simple ASP.NET page that draws a months from a calendar and highlights given dates. (I'm not looking for a date picker.) What I have is a list of DateTime values and I need to display them a a nice way. Given that I'm a total beginner with ASP, simpler really is better. (I'd rather not, I'm willing to hack together some...

ListView Hierarchical data - ASP.Net

Hi All, I'm working on an asp.net application where I need to display records in the form of a ListBox in hierarchical format (parent-child records). I managed to do that using ASP.Net 3.5 ListView Control, but I couldn't get the functionalities of the ListBox control like selecting multiple items. Can somebody guide me on how to do that...

C# Adding tabs at runtime using Form's controls

I have thought of this idea where you could have a tab control on a form, but instead of defining each tabs controls before runtime, inherit or use another form's controls. Basically a tab control is in place on the main form that has no tabs on it before runtime. When runtime comes along I want to create tabs, but the controls that wou...

Overriding Tag level external CSS of a Flex control

I have an external CSS file which defines the style for the Button tag. Button {fontSize 11; blah...} I'm trying to override this style for the buttons of a ToggleButtonBar: <mx:ToggleButtonBar dataProvider="{pm.portalNavigation}" fontSize="16" /> Unfortunately, this doesn't seem to work. The fontSize stays at 11. How can I over...

(.net) Having my userControl have its own icon on the toolbox

Hello. I made a control that inherits directly from ErrorProvider. I thought that applying it the ToolboxBitmap attribute would be enough to get my control to have the same icon on the toolbox as the original control has, but it doesn't. It's strange, as if I add the control to the form, it will appear just as it should, but it doesn't c...

Trend Lines in ASP.NET Charting Controls

Any idea on how to produce a trend line in ASP.NET Charting Controls, i dont want the trend line based on time periods so i am guessing that the finacials stuff isnt useful in this case. ...

Win API C++ Control Edit compulsory

Hi, I'm developing a GUI in C++ using dev-c++. I have an edit control like this: hctrl = CreateWindowEx( 0, "EDIT", /* Nombre de la clase */ "", /* Texto del título, no tiene */ ES_LEFT | WS_CHILD | WS_VISIBLE | WS_BORDER...

Change the Access Modifiers of ASP.NET controls

If I put a control in a .aspx file like this; <asp:TextBox ID="protectedTextBox" runat="server">Some info</asp:TextBox> I get a declared control in the page's .aspx.designer.cs file; protected global::System.Web.UI.WebControls.TextBox protectedTextBox; But I'd like to change the access modifier of the control to public. Is there an...

Generate CheckBoxList without Bit/Boolean (Oracle)

I have a table for a subscription list in Oracle with several columns where one is a NUMBER (0/1) since Oracle doesn't have a boolean type. It might look something like this | NAME | FLAG | DATESENT | +-------+-------+----------+ | Feed1 | true | 07/22/09 | +-------+-------+----------+ | Feed2 | false | 07/22/09 | +-------+-------+-...

How do you fix the height and width of a winforms label to accept variable length text.

I have created a wizard form and each page of the form will display some help text. I either need a 1.Label control where I can fix the height and width of the label so it doesn't grow to long but rather wraps the text inside my fixed width and height. But a label doesn't have sizing handles and seems to automatically adjust to th...

How to mark a list control item as selected?

In a Win32 application I have a dialog with a list control which is defined is the dialog template: CONTROL "",IDC_LIST_Attributes,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,7,36,246,110 In the runtime I retrieve the handle to that control and perform different operations with it - remove ...

Does the ASP.Net Wizard Control work with javascript disabled?

Isn't this a client side control? What will happen if the user has disabled javascript? ...

NullReferenceException Controls.Add c# error

I'm getting the following error after I start debugging my program. Do you know how to fix this? System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." It is referring to the line: pnlDropDownList.Controls.Add(ddl); inside the CreateDropDownLists method. Apparently...

Ways to go about resizing controls in resizable windows?

I have two DataGridView controls, with three buttons in between them vertically, in a VB 2005 form that need to be resized and moved around on a form resize. The code below works, and does what I want. It takes the difference between the new size and the default size, splits the height difference between the two DataGridViews, and move...

Component disabling and enabling at runtime in Delphi 2K9. Weird problem...

Here is code: procedure DisableContrlOL(const cArray : array of string; ReEnable : boolean = False); // can be called from VKP / RAW / Generation clicks var AComponent: TComponent; CompListDis, CompListEna : TStringList; begin CompListDis := TStringList.Create; CompListEna := TStringList.Create; for i := Low(cArray) to High(cA...

VB.Net: Dynamically Select Image from My.Resources

I have a group of images in my My.Resources. I want to select select images to display dynamically at run time. How do I do this? 'Static (Compile time) Assignment UltraPictureBox1.Image = my.Resources.zoo_picture_1 'Dynamic (Runtime) Assignment UltraPictureBox1.Image = ??? ...

ASP.NET AJAX Server Control - Detecting Instantiation of Control

I am creating a custom .NET AJAX Server Control, and need to get access to the JavaScript object functionality associated with that control. I can do this by finding the control in the ScriptManager using the $find method. However, I need to determine when I can call $find. If I do this on the "onload" event of the body of my HTML page...

DevExpress vs infragistics Suites - looking to possibly switch...

We are currnetly an Infragistics NetAdvantage Select customer and have been for a few years. Their controls are ok but not what I would call great but the time invested in learning them to date is the main reason we stick with them. We use both ASP.NET and Winnform controls. As we are due to renew, we are considering DevExpress as an o...

Show NSSegmentedControl menu when segment clicked, despite having set action

I have an NSSegmentedControl on my UI with 4 buttons. The control is connected to a method that will call different methods depending on which segment is clicked: - (IBAction)performActionFromClick:(id)sender { NSInteger selectedSegment = [sender selectedSegment]; NSInteger clickedSegmentTag = [[sender cell] tagForSegment:selec...