Hey there I got a problem with my code, I compared three ways of implementing a query on a database
Standard SQL Query (From * Select ...)
LinQ Query
Precompiled LinqQuery (CompiledQuery)
Now the result I got is that the Precompiled LingQuery is 5 times faster than the LinQ Query but much more interesting ist that the Standard SQL Q...
How can I get the double value from a textbox in .NET using C++. Do I have to get the text and do an atof() or is there an easier way?
...
Hi
Microsoft provided some header files for c++ to work with DMO.
Likewise to work with SQLSMO in c++ is such type of any header files are provided???
using managed c++ code is the only way to work with SMO in c++??
Plz Help me....
...
The default behavior of property BackColor of a TextBox is as follows: when enabled, it is White (SystemColors.Window), when disabled it is Gray (not sure what SystemColor this is).
If I change the BackColor property, the same color is used for both Enabled and Disabled. How do I reset the BackColor property (after it has been changed ...
I'm wondering which collection-type in System.Collections.Generic will support this scenario, if there is one:
Public Class MyCollectionBase(Of ItemType, KeyType)
Inherits System.Collection.Generic.???
Default Public Shadows ReadOnly Property Item(ByVal key as KeyType) as ItemType
Get
....
End G...
Situation: My report uses several ReportViewer Textbox controls which grow and shrink, depending on the size of the bound text. When the text in the ReportViewer textbox control is too long to fit on the current page, a page break occurs before the textbox and it is then wholly rendered in the next page. This often results in a large e...
How to convert an equation into formulas for individual variables? I am thinking about a math equations like:
c^2 = a^2 + b^2
I would like to have a function that could process any formula, and give me the individual variable formulas. The above equation would produce the following:
a = (c^2 - b^2)^0.5
b = (c^2 - a^2)^0.5
c = (a^2 +...
I'm surprised there's not an overload that can take a string array. Anyway, what is the best way to avoid nesting calls to Path.Combine?
pathValue = Path.Combine(path1, Path.Combine(path2, Path.Combine(path3, path4)))
This seems inefficient since it results in 4 new strings being created just to get 1.
...
As our projects have evolved over the years many .cs files have been removed from projects, renamed etc. but they remain in source control. So when you pull latest code you get all these .cs files that are no longer referenced in any .csproj file.
Anyone know an easy, reliable mechanism for detecting these files and eliminating them?
...
Hello,
I've got one quick question. Is there any simple way to detect if .net 2.0/3.x winforms application is run from visual studio (in any configuration debug/release/custom) ?
Best regards,
Tomasz.
...
Does anyone know of a 3rd party data import wizard that can be embedded into applications? It should import from Excel, Access, SQLServer, csv, tab-separated flat file, XML, Oracle etc. We have a fixed data structure within our application and the user should be able to configure the wizard to match his/her import fields to our own data ...
I have a Windows forms application was developed in Visual Studio 2005 and deployed to an IIS server via ClickOnce. I've upgraded to VS2008 so I decided to upgrade and redeploy the application (in test). I ran the upgrade wizard, manually changed the project's target runtime to 3.5, removed all of the old publish files from the deploymen...
Hi,
In fact, the question says it all. I have a lot of images (JPGs) and I want to create a movie from them programmatically. Is there any such library for .NET(preferrably free) through which I can do this? I have done some googling and couldn't find any such thing.
Thanks.
Related: http://stackoverflow.com/questions/539257/working-w...
I'm stuck trying to turn on a single pixel on a Windows Form.
graphics.DrawLine(Pens.Black, 50, 50, 51, 50); // draws two pixels
graphics.DrawLine(Pens.Black, 50, 50, 50, 50); // draws no pixels
The API really should have a method to set the color of one pixel, but I don't see one.
I am using C#.
...
I have a windows service with a timer. Its very hard to debug it. Because I start the service and put break points in different parts of the code. When I attach the process, I expect the service to start from the very beginning instead of some randome place in the middle code where I have break points. Its hard to debug like a normal app...
Duplicate: http://stackoverflow.com/questions/299703/c-delegate-keyword-vs-lambda-notation
I understand the anonymous methods can be used to define delegates and write inline functions. Is using Lambda expressions any different from this?
I guess I am a little confused on when to use what.
Edit:
Also, appears that to use either anony...
I was kind of expecting my ScrollViewer's child controls to hand the MouseWheel events back up the the ScrollViewer automatically, and that's not the case.
I have a ScrollViewer with a ListBox in it. If I manually resize the width of the ListBox to be less than the ScrollViewer, the MouseWheel works on all of the ScrollViewer but has n...
Say I have an old class, dated from c# 1.1 and I would like to add more methods, fields to it. Now I am using 2005, and thus the most logical solution is to use partial classes. However, it seems that I have to pretend word partial to every class in a file where I define it.
The problem:
What if I cannot change the class declaration i...
I have an old skool professor that requires that we print out all of our project source code for him to review. I am writing this app in VS 2008 and the solution contains a C# Web App and several Class Libraries (consisting of probably 100 files total).
Anyone have experience with a good method of printing out many source files like th...
Objects that derive from HashAlgorithm such as MD5CryptoServiceProvider have a Dispose() method, but it's private. Instead it has a Clear() method which "Releases all resources" used by it.
WTF?
Is this how to correctly dispose of a HashAlgorithm then?
var hasher = new MD5CryptoServiceProvider();
byte[] hashCode = hasher.ComputeHash(...