control

iPhone like picker control using Javascript\Jquery

I am looking for iPhone-like "picker" control which can be used in the web. Without using any third party control or Flash\silverlight. Only HTML,Style sheet,javascript\jquery etc. are allowed. I will appreciate if anyone helps me. Thanks in advance.... ...

Table View Page Control Code

Hi Everyone this is what i want to achieve 1) Have a page control that allows user to do a swipe to 6 different pages 2) each page is a table view controller 3) everything is done via code NOT IB The tutorials that are i find either use VIEW CONTROLLER or is done via IB. I am not very good with IB and prefer to have everything done vi...

C# Custom Control Properties load before Load and arrays are empties

EDITED FOR BETTER UNDERSTANDING I made a custom control with propertise for some global variables. private string[] LBTitles = new string[1] { "Rien" }; //... [CategoryAttribute("WildData"), DescriptionAttribute("Tableau des noms des titres au dessus de le listbox")] public string[] Titles { get { return LBTitles; } set { LBTi...

C# Get Events of a Control inside a Custom Control

I have a listbox inside a custom control. I use this custom control into a form. I would like to be able to get the listbox index changed event when I am working into the form. How can I do that? ...

Problem Setting an HtmlSelect after pageload

Hey, I have a C# custom control that I am using to display an address form. On the control, I have a select for picking your state. On the pageload I set defaults for the select. I have a public method exposed where I pass a variable to assign all the address information. My problem is that the selects do not update to have the corr...

Flex Menu Control - Click a button and a menu is displayed. How can I click that button a second time and hide that menu?

Hi, Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening. Now, I rigged it up by setting a var to open and closed, s...

Designer problem with CompositeDataBoundControl

I have a custom class: SimpleTemplatedControl : CompositeDataBoundControl private ITemplate _itemTemplate; [PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(typeof(SimpleItem)), ] public ITemplate ItemTemplate { get { return _itemTemplate; }// get set { _itemTemplate = value; }/...

list box control in asp.net

Hello friends I have a list box control in my asp.net project. I want to know how to get selected index to set currently updated item in database. Please help me with this. Do i need to perform some data base operation to find the key for currently updated data and then i'll have to set it or there exist some property to deal with this?...

Scaling a Control's Font in C# .Net

We all know that the Control base class has a Scale method. The problem is this: it's absolute crap. While it admirably scales all of the controls, it does not scale the fonts. So all my my labels, text boxes, and buttons look so very awkward. It would be so simple to just loops through all of the form's controls and change the font,...

ASP.net Dynamic Controls not being built when expected

I have a reporting module (C# asp.net) that uses dynamic controls to represent the varying parameters of the selected reports. The dynamic controls build and display fine (XML stored in SQL Server 2008 and XSLT for the transform into HTML). My problem is that I have a drop down list(not dynamically created) that contains the report nam...

How to avoid ajax request flooding in django

Hi everyone, In django I made a simple ajax handler that will validate a POST request and on success write to a database -- which will later be available to be seen publicly. Anonymous in this case is allowed. Much like StackOverFlow will accept questions posted by logged in and non logged in user, we'd have similar acceptance. How d...

WPF WindowsFormsHost child property

Hi, Just wondering if hosting a WindowsFormsHost control in a WPF user control in the following way is a good practice or not: <DockPanel LastChildFill="True"> <WindowsFormsHost Name="myHost"> </WindowsFormsHost> </DockPanel> private class MyWPFUserControl:UserControl { private SomeControl Foreign...

Mercurial - Is it possible to merge changes from the trunk to a branch, within the same repo?

Mercurial - Is it possible to merge changes from the trunk to a branch, within the same repository? If yes, is it possible with TortoiseHg? ...

What do I miss here so that my asp:Repeater does not work?

I have this class: public class RateResultsSummary { public RateResultsSummary(string labelText, string dataText) { LabelText = labelText; DataText = dataText; } private string _labelText; public string LabelText { get { return _labelText; } set { _labelText = value; } } ...

Asp.Net MVC - Open HTML Controls

I'm new to asp.net mvc. I'm looking to create some control for reusing html. I have a complex HTML box for example: <div class="Box"> <div class="Top"></div> <div class="Content"> <div style="padding:10px;"> [CONTENT GOES HERE] </div> </div> <div class="Bottom"></div> </div> Previously using web...

ReportViewer format text with HTML Tags

Is there a way to simply format text within the ReportViewer Control so it is formatted correctly and the tags do not display. I have text within a database field stored similar to the following: this is some text.<p/><p>more textaslkdflsdlfkdslskfasldf<p/><p>&nbsp;</p><p>asdkfksadjf &ndash; aslkfdskfd</p> I'd like it to display norma...

Fileupload control unable to upload .swf file in ASP.Net

Hi Brilliant brains. I am working on a project, in which I need to upload the .swf file by using ASP.Net fileupload control. But, when I click upload button, it doesn't work even not arises any related error, but "Internet Explorer cannot display the webpage" this error arise which is not related to by problem. While, instead of .swf fi...

WPF Custom Control based on TabItem and Themes

I have a Generic.xaml theme created that sets styles for all common controls, including TabItem This them is applying ok to all controls in the application When I create a TabItem control and display it, it gets the Theme OK. TabItem t = new TabItem(); t.Header = "Normal"; MainContentControl.Items.Add(t); However when i create a Cu...

How to caputure an Bitmap created from a Windows Forms control to a BitmapSource?

Hello. I want to caputure an image of a control which is an ActiveX imported control and display that image in WPF. The reason I do not use the windows forms host is that it is too slow (i want to create a list with these activex controls) : so far i have: public Bitmap CaptureCtrl(Control ctrl) { // Ein neues Image mit...

Evaluate beyond one level within Hold in Mathematica

The mathematica documentation on Evaluate at possible issues says: Evaluate works only on the first level, directly inside a held function Why does Mathematica have this limitation? So if I have an expression with more than one level take this simplified example: Hold[Plus[Plus[2, 2], 2]]] Now suppose I want to see what the an...