control

Tricking a Usercontrol to allow "." namespaces...

I have a 3rd party control (Visifire) which has a namespace that uses the "." format. This works fine in a WPF application, but not in a UserControl as it generates a "can't find assembly" if you try to include the namespace. This means I have to use code to add the control, set up the bindings, etc, etc, which is quite annoying as I wou...

Version Control with XML diff and merge

Hi, I'm looking for an open source version control tool which can diff and merge XML files. The difficulty I have to find such a tool is, that I need a correct merge of a XML file comparing the nodes and not the lines. Any idea? Thanks! ...

Problem with .net dynamic control generation

Hello to all. I'm working on an asp.net website (using C#). I have implemented a detailsview as part of a data entry system for this website. The detailsview contains a drop down list used to associate a category with the record being submitted to this data entry system. The code behind file accesses a datasource (an SQL server 2005 d...

How can I move all the controls in a panel on form resize?

I'm playing around with a project, C# .NET 4, and I'm kind of stuck. I have with a panel that will be dynamically filled with checkboxes based on the number of items in a folder, which works fine. But when I resize the form I want the checkboxes to move in the panel, like a little grid of checkboxes that takes up what space it can. Th...

How to force a Server Control in asp.net to accept only one type of children?

Hi, I am trying to make a server control in asp.net and force it to accept only one type of child elements. I mean something like this: <cc:foo runat="server" ID="myCC"> <cc:bar runat="server" ID="my2ndCC"></cc:bar> </cc:foo> But I want to allow only children of type bar and nothing else. Does anyone have any idea how to achieve t...

RBAC Access Control in tree structure

I am implimenting role based access control in a tree structure (organization) that normally would be stored in LDAP but this time is in MySQL. Part of my requirement is to give people acccess to part of the tree. In LDAP I would use a ACI to filter part of the tree. I am just not sure on the best way to do this in PHP/MySQL. What is th...

Bind gui controls within a UserControl to another UserControl and its containing controls in WPF

Hello I have UserControl1 which is a FormatButtonBar with format buttons AND I have UserControl2 which is a DataGrid with RichTextBoxes as cell editors. I want to reuse UserControl1 at different places of my application. This is what I want to achieve with pseudo code: <UserControl1> <ToggleButton Content="bold" IsChecked="{Binding I...

How to maintain state in (asp.net) custom server control?

Hi, I am trying to make a custom server control which inherits from DropDownList. I give the control an XML input containing some key/value pairs and my control shows them as a DropDownList. I make the list items in the override Render method like this: foreach (XElement child in root.Elements("Choice")) { string title = child.Eleme...

Render a RequiredFieldValidator to an HtmlTextWriter

Hi, I am creating a custom server control in which I place a RequiredFieldValidator. In the the Render method and I want to dynamically create a RequiredFieldValidator and render it to the HtmlTextWriter. The problem is, when I call RenderControl on the RequiredFieldValidator, it only generates a span for me with no javascript or client...

A good html capable richedit replacement for winforms?

Hi Can anyone recommend a html replacement for a winforms (c#) richedit control? I would like a control like the build in richedit control, that just use HTML instead of rtf to store the text. I don't want it to edit HTML, just to present a editor with images and styled text that store the result in html. I would prefer a free contro...

MS Chart Control Two Y Axis

I'm building a chart to show items by volume by category. So far I've been succcessful in showing items by volume as it's a simple x/y chart, however I'd like to show y2 and I know MS Chart Controls has a built in AxisY2 however when I try anything with it the Chart get's all funky. Here's what I'm looking for (in ascii art): item1 |[...

Drupal 7 access control for nodes/content

I installed Drupal 7 but the only access control option available is for viewing published content. I want to be able to set different access control options for the different content I create. Some pages should be viewable by some people and other pages shouldn't. Drupal 6 has the Node Access module which is capable of this but it's ...

How to reselect date from calendar control after validation failed?

I have a textbox, a imagebutton and a calendar control inside a user control to pick the date from calendar and set the selected date inside textbox. All work well except the validation. I tried to validate the textbox's value to be a valid date. If it is not valid date, I want to reselect date from calendar. but looks like if valication...

WPF TabControl - Add New Tab Button (+)

What is the proper way of adding a '+' button tab at the end of all the tab items in the tab strip of a tab control. It should work correctly with multiple tab header rows. It should be at the end of all tab items Tab cycling should work correctly (Alt+Tab) ie the + tab should be skipped. I shouldn't have to modify the source collec...

Dynamically loaded user control databound controls not tracking viewstate

I load a usercontrol dynamically to a page on click of a button. This user control has dropdown list which gets populated on load of the user control. When I select an item from this dropdown list a post back occurs and I reload the Usercontrol again at oninit of the page. The dropdown list is not populated and hence the selection index ...

pause and resume Windows Media Player in C#

I'm making an VoIP application and I just want to be able to pause and resume (and probably check the player state) of Windows Media Player. Solutions I've found on SO refer to WMPLib but this is for embedding WMP in my .NET application. I simply just want to pause and resume the current instance if there is one. Is there documentation f...

How to have gtk control+c to be handled, or not?

I'm using pygtk, and would like to handle control+c sometimes to do a special copy action, but other times to let gtk handle it. For example, I'd like to put an object on my clipboard if it is available, or just let control+c be used in the normal fashion in a text entry. Currently I have an ActionGroup associated with "c" but that alwa...

[C# windows form]When invoking a listview in a thread, other controls doesnt work

I am new to C#, I hope my description of the problem is readable. Here's my problem, I am developing a app for a win6.5 mobile. The App should have some memu items, one is 'scan', when clicked, it scans repeatedly the wifi access points nearby, and displays them on a listview. So i create a thread with a while loop for scanning every 10 ...

Visual SourceSafe and VS2005 Without Full Integration

Is it possible to use VSS 2005 with VS2005 and not have the .sln and proj files included in the source repository? If so could somebody please provide a template for getting this working. It strikes me, that understanding of the project hierarchy would be a damned site simpler without the default integration between VS2005 and VSS. An...

looking for a web based file mgr, workflow (open source) app

hey guys. working on a project, that will involve 100s of files that go through a development/review/test workflow process. (knowledgetree is too large/bloated..) the developer checks the file out/in, where the reviewer then reviews (accepts/denies) the file which passes it to the next phase where it's tested and again (accept/deny). i...