.net

Removing multi-value properties from RDF by Rowlex

Hello, I'm trying to remove properties with multi values, from RDF and it seems about this RDF, I should make below code for removing includeResource: <Ontologyowl:StudyList rdf:about="stdl827181"> <Ontologyowl:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string"&gt;Basic learning materials</Ontologyowl:title> <Ontolog...

How to convert TabControl into wizard style in .NET?

I want to have my form in a wizard style and so I used TabControl to have the pages of the Wizard as my TabPages. There were small issues to be corrected, such as, making the tabs being displayed in runtime. I inherited the TabControl and I added a property called "TabsVisible" and corrected it. It worked fine. (See : http://dotnetrix.co...

About PropertyStore and MDI child form.

This is .net WinForm question about MDI setting. When the main form creates an MDI child form, the main form's PropertyStore holds a reference to the MDI child form. I wonder whether this will cause the child form to be alive even if it is closed. If so, what shall I do when disposing the child form in order to remove this reference? T...

Embedded vs. .NET/Applications Careers

I'm a fairly junior engineer (2-3 years exp) about to make the jump from an embedded software environment at a large aerospace/defense company to a position at a smaller, private medical device company working on a large windows application (.NET/C#). The move was more or less inspired out of necessity due to the recession, pay cuts, an...

Web Application not working in Safari

We have developed a web application in .NET framework 3.5. Presently our application is compatible with IE and firefox browsers, but we are not able to browse the application in Safari. When we browse the application using Safari , page is getting loaded as blank. Please advice how to make the application compatible with Safari. ...

Windowsforms: How to draw lines/bars on a DataGridView?

I'm using a DataGridView in a Windows application (.NET 3.5) showing some colored bars (basically "tasks in time"): What I need now is, to show a custom graphical "completed" bar on the cells depending on a percentage value. Here is a photoshopped image: Any hint how I could approach the problem or a creative solution? Thanks! Ed...

Fluent Interfaces - the number of objects being created

Hi guys I am in the process of creating some fluent interfaces for some simple validation stuff that I am playing around with. One thing that I have noticed is that I have a lot of different objects being created. For instance given the below statements: Check.Assertion.ForValue.That(value, "value").IsNotNull() : void Check.Assertio...

I need a regex that validates for minimum 7 digits in the given string.

Hi I wanna validate a phone number. My condition is that I want mimimum 7 numbers in the given string, ignoring separators, X, parantheses. Actually I want to achieve this function in regex: Func<string, bool> Validate = s => s.ToCharArray().Where(char.IsDigit).Count() >= 7; Func<string, bool> RegexValidate = s => System.Text.RegularE...

Measurement Unit Conversion

hi all, My application needs measurement unit conversion build in. The unit conversion is based on user settings, not regional settings. The user just needs to define in what unit he wants his interface (C or F, Pa or Bar, ...) Someone knows of a good (free) framerwork that provides this functionality? Thanks ...

Should a control be disabled and hidden or just hidden?

When manipulating controls on a .NET windows form which of the following is best practice and why? //Hide control from user and stop control form being useable oControl.Enabled = false; oControl.Visible = false; or //Hide control from user and stop control form being useable oControl.Visible = false; I've been using the first case ...

Silverlight file path separator issue

Hello everyone, I find when reading from a local file from Silverlight, we have to use special path separator "/" other than normal path separator "\" or else Silverlight can not get related local file, for example we need to write as c:/test/abc.wmv, other than write as c:\test\abc.wmv. Two more questions, Any simple solution to use...

String.Format exception when format string contains "{"

Hello everyone, I am using VSTS 2008 + C# + .Net 2.0. When executing the following statement, there is FormatException thrown from String.Format statement, any ideas what is wrong? Here is where to get the template.html I am using. I want to format this part m={0} in template.html. string template = String.Empty; using (Stream...

Multiple images in a listView

Can I show multiple images in a ListView ( .NET only ) In other words more than one column should be an image column I cant seem to find any way to do this ...

Exiting the Zone of Pain - NDepend

Hi all, I was just running one of my projects through NDepend and the report put my assembly right in the corner of the zone of pain. I was just wondering if it's something that I should be worried about. What does the zone of pain really mean? Doesn't it mean that there is a lot of coupling and things can't change very easily. I...

MMC .Net Runtime Version

Hey All, I am currently developing an MMC snap-in but have hit a big snag - it's done using the .Net 4.0 framework; and MMC is loading a previous version of the runtime. Using an older version of the runtime isn't really an option, as the entire project is written for 4.0 (so far 5000 LOC); this is merely a management front-end (fancy ...

Application Strangler Pattern Experiences & Thoughts

Just recently I came over an idea called the Application Strangler Pattern. As I understand it it is a solution to the problem with large legacy systems. The idea is to create a new application around the old application. The cost and risk of this will be much less than a complete rewrite of the system. Slowly, over time, the new applica...

Charting tools for reporting

What are the available charting tools in the market for comparison. It should support both Java and .NET. It can be open source as well as cost.Please mention the licence type. Mention it needs any other external softwares like Flash player or other external plugins Any tutorial/sample links for each if possible/available. It need not be...

Access Denied Error When using Windows Authentication Mode for WebServices

Hi, I have Windows application which calls one of my WebService. I am using Windows Authentication Mode for my WebService. a)When I try to access the Web Service it throws an error- System.Net.WebException: The request failed with HTTP status 401: Access Denied. I have set And also I have switched off Anonymus Mode for the WS. ...

How do you use the Reddot .NET folder

Can anyone briefly explain how to use the .NET folder type in Reddot, I can't find any documentation. I'd ideally like to be able to use master pages and user controls outside of Reddot to make development easier, and the .NET folder seems like it might allow me to do it. ...

Best strategy for branching SVN code and maintaining Visual Studio project references

We have a main visual studio project stored in SVN using the standard trunk/branches/tags structure. However, this project references external projects outside of this structure, so when we create a code branch all the references to the exteranl projects fail as they are one level out. ie. trunk/MyProjectCode becomes branches/MyFeatureB...