controls

Is there a way to emulate the Console in a Silverlight or WPF application?

I really like using Console applications to learn different aspects of .NET programming. I'm wondering if there is a way to emulate the Console in a Silverlight or WPF application. Is there already an open source Console control that I could plug into my application? Most importantly, I'd need to be able to emulate the appropriate Rea...

Which ASP.NET MVC controls toolset do you prefer?

I have seen demos of ComponentArt's and Telerik's toolsets. I am interested mainly on finding a grid control, a tabstrip control, a menu control and a treeview control Do you know any company besides the forementioned that offers ASP.NET MVC controls solutions? Which one do you think is the best/most reliable? ...

Advice needed on JavaScript control libraries

I'm looking for advice/opinions on Javascript control libraries like ext-js, dhtmlx, jquery-UI etc... I've got some background in asp.net and have found the various 3rd party controls to really boost development time. I'm doing a project in PHP and have considered some PHP specific controls, however I suspect I would be better served l...

How can I show a form without any controls focused?

I want to show a form, but I don't want any of the controls focused. For example, right now when the form is shown, the button with tabindex 0 is focused. I want the form itself, not a button, to be focused, so that if the user accidentally hits a key it won't do anything. Is this possible? Thanks! ...

Moving .NET controls at runtime

I am attempting to move all controls on a form down or up by the height of a menubar depending on whether it is visible or not. I have code which I think ought to work well for this, however it seems that Me.Controls is empty at runtime, so my for each loop is never entered. Could someone please offer a suggestion as to how I can move ...

Placeholder containing dynamic table is empty unless I create table twice

I am dynamically creating a table that contains a textbox in each cell. The table is put in a placeholder control. Everything displays perfectly. The problem is when I go to retrieve the values entered in the cells. I have the code to generate the table in a separate method called CreateTable(). In order for my program to find a tab...

Thread & Windows forms

I'd like to know if the executing thread is the one that created a given control instance (to prevent cross-thread if it's not). Is that possible ? ...

Silverlight Create draggable control over image

Hello, I want to build some GUI where an image is presented, and the user should pick nd/or adjust some points (ellipses) according to the image. Basically, like a map control, when we want to mark some points or make a route, but instead of a map, a picture must be presented. The final locations will be used for image processing. Is th...

Binding doesn't work in ListView

Hello. I have a wpf control named DataPicker which has a dependency property named SelectedDate. In simple cases it works well but there is one case where binding fails and I can't understand why: when i try to bind it inside a ListView. For example, I have class (INotifyPropertyChanged is implemented) public class TestClass : IN...

Why Can't I store XML in ASP.NET ListBox Value?

Hello, Why does this work: ListItem item = new ListItem(); string value = lstAvailExtPropsToFilter.SelectedItem.Text +" = "+ txtExtPropToFilter.Text; string text = lstAvailExtPropsToFilter.SelectedItem.Text + " = " + txtExtPropToFilter.Text; item.Text = text; item.Value = value; lstExtPropsToFilter.Items.Add(item); But not this: Lis...

Java controls animation - how to make them smooth and efficient

I am programming some custom controls in Java and using animation for transitions/fades/movements. The way I am doing this is that I am starting a new thread and making adjustments to variables and things are adjusted using paint() method. Example: Now, my question is, let's say for instance that I was implementing a fade in. What I w...

jQuery UI sortable - external controls

I have a sortable list inside of a modal dialog (non jQuery UI): <div id="modal"> <ul id="reorderList"> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li> <li>Item 5</li> </ul><!-- /#reorderList --> <button class="save" type="button">Save Order</button> <button class=...

DTPicker: how to open up an control expanded (by default)?

Hi all, in my windows form (Visual C++ 6.0) I'm using an Active x control called "CDTPicker" (CDTPicker : public CWnd). My control is opened up by the click event of another button. like this (works fine): void CProducerDlg::OnSelect() { ... m_wndDatePicker.SetValue(varVariant); // hide date combo box if first entry has been...

removing extra stuffs from content creation page (Drupal 6.x)

Drupal 6.x How do I remove collapsible frames - "Authoring information","Revision information", "Publishing Options" - from content creation page? For what is worth, I'm logging in as a regular user and I don't want these controls to be presented to regular users. P.S : I also like to remove save/preview buttons as well. ...

Which JavaScript or ASP.NET Charting Component/Tool/Library Will Work For This?

[Update]: Forgot to include ComponentArt... Hi, An interaction designer employed by the client I am currently working for produced some mock-ups, and now it is my job to determine the best way of implementing the charts included therein. After looking at the options I am aware of and was able to find doing some simple Google searches,...

Help creating a dll for a custom control

I'm going to ask a newbie question here. I need to use a control I found online in my code, but it was written in the wrong language. It is in C# and I am using VB.net for work. I have all of the code for the control which works beautifully in C#, but I had issues with it not working very well in VB. The source code and a demo projec...

How to control the groupbox items in .net winforms?

I am using .net winforms. I am having groupBox it contains set of controls like textbox,dropdown.... How to control the filds which is avilable in groupBox? Example: I need to clear all the contol fields. ...

How to add events to Controls created at runtime in Excel with VBA

I would like to add a Control and an associated event at runtime in Excel using VBA but I don't know how to add the events. I tried the code below and the Button is correctly created in my userform but the associated click event that should display the hello message is not working. Any advice/correction would be welcome. Dim Butn...

How to send Event to Control in Iphone?

For example, if i'd like to imitate UIControlEventTouchUpInside for Button1, when Button2 was clicked? The reason why it isn't enough to addTarget: action:@selector() forControlEvents - is that it's necessary to get default highlight for example (glow effect) ...

How do i create winxp style controls

Hi guys, I am trying to make my controls look as cool as xp theme enabled controls like gradient fill background in container controls and colour thames support etc I am not finding a way to start. from where can i start doing it? I am trying to do it in vb.net Edited: EnableXpVisualStyles() I found it to enable visual styles but d...