control

Applying a single style to multiple controls (and tweaking each style)

Hi all, I have a WPF application that is using a custom style. In it I have a set of buttons that each have a custom background image. For each button, I'm supplying a normal and a mouse down image. Is there a simple way to do this with a single style (and customize each button on a case by case basis)? Currently I'm creating a ne...

Event handling in Dynamic asp.net user Control

Hi all, I Have a page, where I want to dynamically add asp.net user controls. The scenario is that we want that on specific event of a control, It disposes itself and loads another control in the page. I am not able to have solution how to do this? any one have decent Idea, Please help.. Thanks Singh Ajay ...

SQLDataSource Control DataSourceMode

This is from the book "The ASP.NET 2.0 Anthology" In a discussion in Chapter 3 on the SQLDataSource Control this suggestion is made For simple binding scenarios, however, it's a good practice to switch your DataSourceMode from DataSet to DataReader. but never states why. Does anyone know? Is is faster? ...

Silverlight XML editor / syntax highlighting

Hi, I am looking for a Silverlight text editor control that provides XML syntax highlighting. I found a few answers in Winforms or WPF, like here on Stackoverflow, but I didn't manage to convert them to Silverlight. The fact that Silverlight is missing System.Drawing is probably a big problem. The only text editor I found for Silverlig...

Stop and start running again processes in Linux using C++

Hello, I have two process and a shared memory zone, my workflow is like this. The process A write some data in the shared memory, after that it should wait and send a signal to other process B to start running. The process B should read some data from the shared memory do some stuff write the result, and send a signal to the process A t...

Should CONTROL permission be given on a Stored Procedure in SQL Server 2005?

I'm running into an issue where granting EXECUTE permissions on a specific Stored Procedure in SQL Server 2005 is not working. Some of the testers messed around with the permissions - and found that if they also granted CONTROL permissions on the Stored Procedure - then it ran fine. They are now convinced that granting CONTROL permissi...

Are there alternative methods for saying 'next' in a pl/sql for loop?

So I've got a for loop that processes a list of IDs and has some fairly complex things to do. Without going into all the ugly details, basically this: DECLARE l_selected APEX_APPLICATION_GLOBAL.VC_ARR2; ...snip... BEGIN -- get the list ids l_selected := APEX_UTIL.STRING_TO_TABLE(:P4_SELECT_LIST); ...

How to embed a Java control on a C# winforms control?

Can I put a Java control (SWT, Swing, ...) on a C# control? I know it's possible with web controls but I don't like this way. ...

Can I change the input behaviour of a DateTimePicker control?

The default input behaviour of the DateTimePicker when entering a date is like this: YYYY(Right Arrow)MM(Right Arrow)DD The user want to enter the date like this: YYYYMMDD Is there any simple way of modifying the input behaviour of the DateTimePicker so that is does behave like the user want it to? TIA ...

WPF RichTextBox Performance

WPF's RichTextBox control's performance is real slow when a 50KB text document is loaded. Scrolling laggy and pressing Ctrl-A to select all the text takes more than 10 seconds. (This is intantaneous on Notepad). I'm not doing any fancy bitmap effects. Is this normal? Even typing on an empty RichTextBox seems a bit laggy than normal. ...

C# Silverlight Forum component

Has anyone encountered such a beastie? I'm thinking about a tree-like display, database, login and registration etc. Ideally ready to bake as time is short. Ideally BSD or similar license but if neccessary might persuade the beancounters to cough up some beans. Alternatively if anyone is interested in creating something please comment ...

Accordion control gets 'extended' when we switch to designer

Hi, I add an Accordion AJAX toolkit control. When I switch back to designer view and get an error like 'Error creating control'. When i switch to the code view all the AJAX controls have been replaced by ACCORDIONEXTENDER with the same ID and so gives an error like 'Toolkit Accordion does not have Extender property'. Why does Visua...

Binding a DataTable to a FormsView control in ASP.NET

Hi, I have a FormView control which uses the DataSource control for binding. It has the Item Template and therefore automatically displays the New, Edit , Delete buttons which then pick the appropriate queries from the DataSource control queries. If i had to do the mapping of the New, Edit and Delete buttons of the FormView control fro...

NHibernate crashes when being called from a web user control in ASP.Net

I have a very strange problem: NHibernate crashes when being called from a web user control. I am working on a ASP.Net (2.0) web page which uses NHibernate to access a database. And I have a simple factory class to access a column CurrentStepNumber in the table ProjectInfo: public class ProjectEntity { private int? _currentStepNum...

Multiple custom controls that use mouseMoved in one window...

At first I had one window with my custom control. To get it to accept the mouse moved events I simply put in it's awakeFromNib: Code: [[self window] makeFirstResponder:self]; [[self window] setAcceptsMouseMovedEvents:YES]; Now I'm doing something with four of them in the same window, and this doesn't work so pretty anymore. First off,...

How to determine which control on form has focus?

Hi, I've read elsewhere on here that to capture "Enter" key stroke in a text box and use it as if pushing a button I should set the KeyPreview property of the form to true and check the value of KeyDown. I want to be able to use this functionality on several TextBox controls which each are associated with a different Button. My quest...

Delphi control that could mimic "Add-ons|Extension list" of Firefox?

My aim is to update the look of the GUI in my app. Currently my GUI contains a lot of listboxes which are used to edit some objects in an old fashioned way, that is, user double-clicks an item and a dialog is shown to modify the corresponding object. I think a good modern approach is how Firefox displays the extensions installed (a sna...

getting innerHTML from asp:Table control

I would like to capture the "innerHTML of a asp:Table control from a button click. i.e. webforms page has an asp:Table control that is dynamically populated at run time. I need a quick/dirty print button to print the contents of the table. Ideally, I'd like to just have a simple way to grab the markup of the rendered table to squirt to a...

Handle events for dynamic (run-time) controls - VB.NET

I have a WebBrowser control that is created and added to the form during run-time. How do I connect this control to subroutine that can handle its events at run-time? ...

Character Alignment with an OwnerDraw ListView in C#

I'm trying to implement a .NET control that functions like the Firefox Awesome Bar. To that end, I'm trying to bold and underline searched for characters inside of search results displayed in a ListView. I've set up OwnerDraw and I'm using Graphics.MeasureCharacterRanges to figure out how big the characters are. The problem I'm having...