control

Programatically Controlling a UIWebView with iOS 4

Hi I am creating an iPhone app for checking your school timetable. At the moment you have to manually enter your timetable, which is very very time consuming, and I don't think that anyone would even bother with it. However, my school has a V.L.E. on it's website and we can access our timetables online by entering our username and pas...

How do I automatically switch to one subversion repository if another one fails?

I have a subversion repository on a network shared folder. It is not a subversion server, just a disk that multiple computers can read and write to. Different computers map network drives in different ways. How do I make it so that if svn can't find the folder on one path it automatically tries another? Or more generally, how can you s...

WPF buttons are outside the datacontext and could not be bound

Hello, I have 3 Buttons add,delete,open as RelayCommands in my DocumentViewModel. Below you see how I have bound them. Of course those binding does not work, because the data is set to the ItemsSource of the ListBox and the buttons are outside of that... What I tried then is to set the DataContext at the first StackPanel you see in my ...

C# selectively turn off monitor

Hi, is there a way in C# to identify all monitors connected to the system and choose which ones to turn on, off or low power? The previous questions i found on SO just turn off all monitors. ...

Why tabcontainer(ajax control toolkit) and tab panel is not showing in chrome but working fine in IE8 anf FF3.6.9?

I am using a tab container and inside that different tab panel <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2" ForeColor="Blue" AutoPostBack="true" Width="100%" EnableViewState="True" OnActiveTabChanged="TabContainer1_Click"> <cc1:TabPanel ID="view1" runat="Server" HeaderT...

How to know If an element is going to be render out of bounds?

Hello all, I am currently developing a control that shows a "linked label" everytime the user adds a visual item to another UI component. When that happens, I link the label in the control to the item added and by clicking over the label the item in the list will be shown. Well, the problem is that this control can be included in a Fi...

How do you replace a control's postback processing in ASP.NET MVC?

I’ve developed a Web User Control with ASP.NET Web Foms that uses client side binding and allows to the user to enter a series of items. During a post, the JavaScript code of my control serializes the items in JSON and put them in a hidden field so the server code of the control can take this JSON string, deserialize it and expose the en...

How do you replace control's postback processing in ASP.NET MVC?

I’ve developed a Web User Control with ASP.NET Web Foms that uses client side binding and allows to the user to enter a series of items. During a post, the JavaScript code of my control serializes the items in JSON and put them in a hidden field so the server code of the control can take this JSON string, deserialize it and expose the en...

Microsoft Chart Controls compiles to C# exe but won't run

I'm building an exe file using Microsoft Visual C# and I've installed Microsoft Chart Controls as an add-on. But whenever I try to run the exe on a different computer, it won't even open and it just crashes. I've tried creating the exe using both 2008 and 2010 editions. The problem is that the other computer doesn't have Microsoft Chart ...

Accessing windows applications controls from Linux

Hello everyone, I'm currently using Linux as my main OS and I run some Windows applications via Wine. Let say I'm running Notepad under Wine for example purposes. Is there a way I can access the text entered in notepad from Linux ? (Java, C, C++, C#/mono). Language doesn't matter Thanks in advance ...

How to change disabled background color of TextBox in WPF

I've seen the following thread which is related to my question: http://stackoverflow.com/questions/2388833/wpf-combobox-background-color-when-disabled The above deals with changing the Content Template for a ComboBox. I am working with WPF, am somewhat new to Styles and Templates, and I want to change the dull gray background color o...

Simple middleware server for control and monitoring

Hello! I need a server. A simple one, to control a couple of computers. There are already a couple of programs in the lab, that perform some calculation and monitor tasks. They are executed on these computers. So I need a server to control them - to see the real time data from these computers, I want these programs to upload the calcula...

Setting XAML attributes gets overwritten at runtime?

When I use the following line, implementing a templated control from a Silverlight class library; <labelSliderControl:SliderControl x:Name="sldX" Label="X" Value="4" /> I see in the VS Disign view the Slider getting the value of 4. But when I run the app the Slider starts at 0. So when I change the attribute in XAML I can see the c...

How to set Cache control for external cloud files

Hey Guys, I was bent on improving my page speed factors and yesterday I got some cloud space on rackspacecloud. Now before this i was serving static content from a cookieless domain with proper cache control through htaccess. Now after I moved on to cloud my htaccess does not control the cloud files. There is a TTL parameter on rackspa...

basic haskell control statements - statement that always runs possible?

If i wanted to do the following: function1 stuff | condition1 = "yay" | condition2 = "hey" | condition3 = "nay" and i wanted to have a statement that always ran, unconditionally, (e.g. "because"), how could i do this? The strings are placeholders. Thanks! Edit: Before i give up on this, i want to try and rephrase it in terms of ...

Disable the internet without touching the hardware

How would I go about disabling the internet on my computer without touching the hardware (modem, router, etc) and without disabling it from the Network Connections of the Control Panel. Is there a way to tweak it on the registry instead? I'm wanting to achieve this to control my younger sister's usage of our computer at home. She's kind...

Webbrowser control in silverlight does not refresh the pdf content in Adobe Reader 8 & 9

Hi, I hava a web browser control in my silverlight application to display pdf documents. The problem is the content does not get refreshed even after changing the source of the web browser control. The first pdf file that gets load is shown in place of all the other pdf links. The problem is weird since everything works perfectly fine w...

How to get a label value from web user control to a content page using master page

I have a web user control book.ascx and a formview: <formview runat="server" id="fv"> <ItemTemplate> <asp:Label runat="server" id="bookID" Text='<%# Eval ("bookId") %>' /> </ItemTemplate> </FormView> This formview is databind dynamically. Now i have a Content page Default.aspx: <%@ Register src="Book.ascx" tagname="Book" tagprefix="u...

How to set windows TreeView in VB.NET Windows7 Theme

Hi All, Does anaone know how to match a TreeView controls look, to the treeviews you see for example in my documents of windows 7? Thanks ...

ASP.net wizard Design

Hi, I have requirement to create an asp.net wizard control which will be re usable in a number of projects. I do not wish to use the out of the box ASP.net wizard control as for the number of pages etc for the systems it is too basic. At the moment i am trying to come up with a good re-usable extensible design which will be easily imple...