Is the June 2009 WPF Toolkit safe to use in applications that will be shipped out to customers?
I'm seriously concerned that my application will crash three days prior to release. This concern stems from the fact that that the WPF Toolkit does not seem to be endorsed by Microsoft, even though it appears to be developed by established ...
I'm working on a .NET 3.5 SmartDevice project and I could really use the ComboBox DropDown event, but the .NET Compact Framework version doesn't have it. Is there another way to be made aware of when the list has dropped down?
...
First let me say I have read this useful article thoroughly and am using the SafeThread class from CodeProject. I get the same result whether using Thread or SafeThread.
I have reduced my problem down to an app consisting of two forms each with one button. The main program displays a form. When you click that button, a new thread starts...
In company that I work for, I was given the opportunity to write an application, which would replace the old Excel workbook, which is used to plan the production queue. Because VBA was simple and Excel was easy to use, for few years this workbook was used by several people to plan/add changes/notes about current production status. Whole ...
I am looking for a regular expression (.NET) to remove trailing zeros:
11645766.560000001000 -> 11645766.560000001
10190045.740000000000 -> 10190045.74
1455720.820000000100 -> 1455720.8200000001
etc...
I am using regex, over String.Trim(), because the numbers are in one string, actual example:
!BEGIN !>>C85.18 POS_LEVEL...
Are there WinAPI functions that do the same what can do standard Windows utility reg.exe with import/export flags?
I'm know that there are RegSaveKey and RegRestoreKey functions, but the calling process must have additional privileges SE_RESTORE_NAME and SE_BACKUP_NAME. This means that it is necessary to ask user to elevate process (sho...
Which of these two platforms/ecosystems are better for writing web applications/websites?
I am not interested in language features, but rather in the available tools like: Monorail, MVC.NET, NHibernate, etc. These kinds of tools are usually used to build modern, data-driven, AJAX enabled websites.
Assume the choice of platform is up to...
I have a project that is using Unity and I am trying to implement NET Remoting. I have a NET Remoting Server for an existing Service Layer that has a Data Layer using the Enterpise Library Data Access Application Block. The problem is that due to Remoting requiring a parameterless constructor when the TestService is called I am
getting ...
I often run into the case where I want to eval a query right where I declare it. This is usually because I need to iterate over it multiple times and it is expensive to compute. For example:
string raw = "...";
var lines = (from l in raw.Split('\n')
let ll = l.Trim()
where !string.IsNullOrEmpty(ll)
...
I have developed two custom task pane addins to be used in Excel 2007. I set one to DockPosition = Left and the other to DockPosition = Top. This puts the Top pane all the way across the top, with the Left pane under it.
Is there a way to force the Left pane so that it goes all the way to the top, which would move the Top pane over (mor...
private string _itemId;
[Browsable(true),
Description("Required identifier for the Item.")]
public string ItemId
{
get { return _itemId; }
set
{
if (string.IsNullOrEmpty(_itemId))
{
_itemId = value;
}
}
}
How would I actually make that required when someone uses the control? I'm trying to find an a...
How do you unit test code decorated with the PrincipalPermission attribute?
For example, this works:
class Program
{
static void Main(string[] args)
{
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal);
var c = new MyClass();
}
}
[PrincipalPermission(SecurityAction.Demand, Role =...
I have a managed (asp.net, actually) project that references a COM DLL. Right now, the reference in the .csproj looks like this:
<COMReference Include="thenameinquestion">
<Guid>{someguidhere}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
</COMReference>
...
Is there a way to use reflection to completely "scan" an assembly to see if System.IO.File or System.IO.Directory is ever used? These are just example classes. Just wondering if there is a way to do it via reflection (vs code analysis).
update:
see comments
...
I have no code behind and the above error keep prompting on INSERT. The DBML is refresh!
Exception Details: System.Data.Linq.DuplicateKeyException: Cannot add an entity with a key that is already in use.
...
This is VB.NET.
Does anyone have any idea what might cause the expression mentioned in the title to return False?
Things I am certain of:
There are keys in the dictionary.
The equality comparer returns a different hashcode for each key and that hashcode is always the same for the same input.
Comparing someDictionary.Keys.First to a ...
I'm looking to write a simple proxy server in .NET. Does anyone have any good examples they could post here, or just a link?
...
I'm sure I saw this happening to me once. In a 64-bit OS with 8 GB of RAM, I would still get an Exception when an array will be ca. 2 GB. What's the exception name?
Please, don't tell me that my program is bad because I shouldn't be doing that. Believe me, it was required.
EDIT: The program was running as a 64-bit process.
...
I have parsed XML file into objects, in which each object has a 1:1 relationship with XML node in the file. This object tree implements Composite and Visitor design patterns as per Jeremy Miller's following blog entry:
http://codebetter.com/blogs/jeremy.miller/archive/2007/10/31/be-not-afraid-of-the-visitor-the-big-bad-composite-or-thei...
I have a WinForms TabControl that I am dynamically adding TabPages to at runtime. Each TabPage contains a WebBrowser control. I also have the ability to remove the TabPages at runtime.
Should I bother Dispose()ing the TabPage and/or WebBrowser controls?
It seems to me I should at least Dispose() the WebBrowser control since it is a bit...