I've installed the System.Data.SQLite ADO.NET Provider from http://sqlite.phxsoftware.com/. I can connect to the database from within Visual Studio, I can open table schemas, views etc.
I'd like to use an existing SQLite database to create an Entity Framework model in Visual Studio 2008.
When I try to create a new ADO.NET Entity Data M...
I'm having trouble deploying .NET application which uses Microsoft Access automation.
I've installed the Access 2007 Runtime and Primary Interop Assemblies (PIAs) on the target machine:
Access 2007 Runtime
Office 2007 PIAs
However, when I try to create the ApplicationClass:
Application access = new ApplicationClass();
I get the fo...
I am not sure how to put the correct title.
but here is the brief explanation.
With Microsoft .NET, i created a server side custom control using C# to be used in ASP.NET pages. I distribute the DLL generated as a component. developers will include that and use in their ASP.NET project.
Likewise, how can i do for Java based web compon...
I have successfully implemented printing and print preview for my app using the PrintDocument, PrintDialog and PrintPreviewDialog classes of .NET.
However my app uses a toolkit to improve the appearance of the standard .NET controls. There are versions of most .NET controls in the toolkit, but none for the Print controls.
Therefore to ...
I'm trying to round a number to it's first decimal place and, considering the different MidpointRounding options, that seems to work well. A problem arises though when that number has sunsequent decimal places that would arithmetically affect the rounding.
An example:
With 0.1, 0.11..0.19 and 0.141..0.44 it works:
Math.Round(0.1, 1) ...
Is there a good resource out there that explains the concept of enumerators and custom enumerators? Particularly one with a good solid example of why you would want to implement IEnumerable yourself and how you would use it effectively?
I occasionally come across yield and I am trying to get a better understanding of it.
...
When we have new in C#, that personally I see only as a workaround to override a property that does not have a virtual/overridable declaration, in VB.NET we have two "concepts" Shadows and Overloads.
In which case prefer one to another?
...
I have trouble to expose a .NET assembly in COM. It seems that I must be missing some basic step because I think I followed all tutorials and documentation I found as well as common sense, but still when I do (in a test VBScript):
Set o = CreateObject("MyLib.MyClass")
It keeps saying that the object cannot be created.
Here are the st...
Hello, I need to implement concurrent Dictionary because .Net does not contain concurrent implementation for collections(Since .NET4 will be contains). Can I use for it "Power Threading Library" from Jeffrey Richter or present implemented variants or any advice for implemented?
Thanks ...
...
Somehow, using linq I can't test it with this CUF field in the beginning:
<NFe>
<infNFe versao="1.0" Id="NFe0000000000">
<ide>
<cUF>35</cUF>
<!--...-->
</ide>
</infNFe>
</NFe>
With the following code:
XDocument document = XDocument.Load(@"c:\nota.xml");
var query = from NF...
I have a requirement to change a very small part of the WPF ComboBox's template.
If I take a copy of the existing template for the Luna theme and make the change it all works fine initially. But if the user has a different theme, my ComboBox retains it's custom theme, (Which is obviously based on Luna) so looks out of place.
Is there a...
We currently have an application that depends largely on stored procedures. There is a heavy use of temp tables. It's an extremely large application.
Facing this situation, I would like to use Entity Framework or Linq2Sql for a rewrite. I might consider using Fluent Hibernate or Subsonic, as i've used them quite extensively in the past....
I'm looking for any recommended validation frameworks, or patterns for an N-tier client application, I want to write the validation method once and bind it to a WPF GUI, and if possible also for server side and client side related business logic.
...
When do we need to use [Browsable(true)]?
EDIT (by SLaks): He's asking (I assume) why one would need to pass true as the parameter, given that it's already true by default.
...
I have an application that must check a folder and read any files that are copied into it.
How do I test if a file in that folder is currently being written to? I only want to read files
that have had all their data written to them and are closed.
...
Right,
Another question from me:
I have the following piece of code:
class Foo
{
public Foo()
{
Bar bar;
if (null == bar)
{
}
}
}
class Bar { }
Code gurus will already see that this gives an error. Bar might not be initialized before the if statement.
So now I'm wondering: what IS th...
How to fetch processor CPU flags in C# .net ?
I am particularly looking for VMX bit/flag.
...
When the .NET System.Uri class parses strings it performs some normalization on the input, such as lower-casing the scheme and hostname. It also trims trailing periods from each path segment. This latter feature is fatal to OpenID applications because some OpenIDs (like those issued from Yahoo) include base64 encoded path segments whic...
Hi all,
I have a little bit seen the representation of an array in memory with Windbg and SOS plugin.
Here it is the c# :
class myobj{
public int[] arr;
}
class Program{
static void Main(string[] args){
myobj o = new myobj();
o.arr = new int[7];
o.arr[0] = 0xFFFFFF;
o.arr[1] = 0xFFFFFF;
o.arr[2] = 0xFFFFFF;
...
Server.UrlEncode("My File.doc") returns "My+File.doc", whereas the javascript escape("My File.doc") returns "My%20File.doc". As far as i understand it the javascript is corectly URL encoding the string whereas the .net method is not. It certainly seems to work that way in practice putting http://somesite/My+File.doc will not fetch "My ...