control

Getting screenshot from Webbrowser control from single method as return value.

I need to write method which returns Image for passed URL or HTML. Am using WebBroser control to get screenshot, only problem is I am capturing screenshot at documentcompleted event, and I could not do this in single function say 'GetBrowserScreenshot(string html)' cause this event is getting fired asyc (this is what I think). How to w...

Backing WebDAV directory with version control

I want to export a directory with WebDAV. Then any file written I want it commit to some version control. Maybe GIT? Maybe copy to old file directory? Must be automatic. How to? ...

How to get control in ASP.NET PreInit event?

How to get control in ASP.NET PreInit event? Pointers are null and FindControl method returns null. I am using master and content pages. Markup of the content page looks like this: <asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" runat="server"> <asp:Table ID="Table1" runat="server" Width="100%"> ..... </asp:Ta...

how to center a repeater on a page when it has a scrollbar

I have a repeater that I have added a vertical scrollbar to, if there are more than x number of records. If I have less than x, the repeater displayes centered and all is well. If I have more than x, the scrollbar is added but the repeater is all the way to the left. No matter what I do, I cannot get it centered. One of the things I ...

WxPython custom styled controls

I'd need to make a new style for buttons and text entry controls. It should look something like Is there a way to do this? ...

Objective-C: How to implement TextView orphan control

I'm working on an iPad app that does a simple display of text similar to iBooks. I would like to display ONLY full paragraphs on each screen (ie, no orphan/widows on a page). Similar to iBooks, I want to allow the user to change the font and font size and continue to keep all lines in paragraphs together. The user will be able to page...

asp.net setting up build process msbuild and cruise control

Where do I start , I need to set up a developement environment using msbuild and continuious integration, NUnit etc. I am quite new to this kind of thing as it is normally already set up in most environments ive worked in. I am quite short of time as well and dont have have the time to read huge volumes in order to get an understanding (...

Imported ActiveX controls are non-visual

I have imported ActiveX controls before and were able to use them same as regular VCL controls. Every now and again I bump into a control that imports fine but doesn't show up at run-time and only show a little block in the designer. The latest one is an ActiveX wrapper for the Scintilla editor and it shows me a grey block 100 pixels wi...

ASP.net Calendar Control with an embedded textbox for each day

We want to use the calendar control to fill it with some text for each day, we tried two methods: Defining all the textboxes (one for each day) statically in desing mode and moving them (e.cell.Controls.Add(tbDay1)) to each day cell on the OnDayRender event. But there is some problem with viewstate as the textboxes appear 2 times (the ...

Control a shell program through command line, giving it multiple instructions/data

I need to control a program in c++ (windows), I need to call it, then pass data to it as I collect it, finally after a certain command that program will use that data. I need to open the prog.exe and then line by line or value by value supply it information, it works manually through cmd. I have tried system() but this will stop after ...

getting music player control in lock screen like Pandora app in iphone.

Hi. iphone Pandora app(in ios-4) supports controlling the audio from the lock screen like play,pause,next and prev. How to get the music player control action from the lock screen. can any one give me an idea about getting the actions of these control to native application from lock screen like pandora app. ...

Is there a way to launch Voice Control programatically on the iPhone?

Is there a way to launch Voice Control programatically just like you can launch Safari? If so, how? ...

Silverlight - open to specific XAML page and the object tag

I have a Silverlight app with two XAML Pages - MainPage and OtherPage How can I add a reference to a page to open the Silverlight control to the specific page? I have this <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="ClientBin/Test....

ASP.NET - Is it possible to render a TreeViewControl as an unordered list instead of a table?

Is it possible to render a TreeViewControl as an unordered list instead of a table? ...

Populate TextBox From Public Property From Code-Behind

I am trying to use a property from the code-behind to populate a textbox instead of using in the code-behind textbox.text=. I am using vb.net. Here is the code for the aspx page: <asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server"> <asp:TextBox runat="server" ID="roleTextBox" Text='<%# CurrentRo...

Can we control bluetooth programmaticaly in iPhone ?

Hi all, I have heard about bluetooth via GameKit and external accesory framework in iPhone . But I don't know much about it . So Before reading the whole documents I just want to know that can we control bluetooth programmaticaly in iPhone . Thanks ., ...

WPF Image Control Acual Size.

Hello All, I have a problem in getting Actual height and Acual width of Image control in WPF. When user selects the image file. I want to resize the selected image based on the dimentions of the image control. I tried to get the Image.ActualHeight and Image.ActualWidth when window initializes, but I found that both properties of Imag...

Using a C# WinForms control in a C++/CLI (WinForms) application

How do I use a WinForms control written in C#, in a WinForms C++/CLI application ? If at all possible. ...

Enable or disable the next button based on a live text control value in Wix?

I created a custom dialog page in wix and it has a text box. I want to disable the next button of the installer if the text box is empty end enable it if the user has typed a value. The following code works partially. It does not disable the next button but it does not navigate to the next page unless you fill the value. The problem I ha...

My control is awfully slow. Anybody know an EASY-to-USE, FREE profiler for c# development?

Possible Duplicate: Any Good Free .NET Profiler? I am currently developping a control that is supposed to draw a heatmap in realtime at about 20Hz. This consumes an awful lot of CPU resources and I would like to know which function calls are slowing it down that much, sine I got the impression that I am already using a fairly ...