From API
In a typical multiple-tier implementation, the steps for creating and refreshing a DataSet, and in turn, updating the original data are to:
Build and fill each DataTable in a DataSet with data from a data source using a DataAdapter.
Change the data in individual DataTable objects by adding, updating, or deleting DataRow objec...
I have the SQL2008 version of SMO and although it uses this class internally I can't figure how to bring it into scope so I can declare variables to hold values of this type.
Yes I know I could declare them as object but then I'd still be unable to cast them to pass typed parameters.
What reference do I need to add to my project and w...
I'm trying to get the integer value of The number selected of the item.
For example
[Sample List Box]
Beans
Rice
Can
Potatoe
[/Sample List Box]
Rice is number 2
How can I do that in C#?
...
While converting a project that used SlimDX, and therefore has unmanaged code, to .NET 4.0 I ran into the following error:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Googling around gave me the solution, which is to a...
Quick version of my question:
Is the only time you need to use "lock" when you are accessing the same instance of an object? For example, if i am instantiating everything new within my thread entry method, do I have to worry about locking any objects?
Detailed Explanation of my question:
My scenario is, I have a work object with a ...
Is it possible to draw some strings onto a listview?
I overridden the OnPaint event but I don't see any change. I checked out some code on custom listview, but it seems like people are using p/invoke, etc. Why?
Isn't list as customizable as other winforms, like the Button control?
I am not gonna customize wildly, just paint some more ...
I have a .NET c# form with a tabcontrol on the base form. This tabcontrol is absolutely loaded with sub controls and tabs. If I launch my application and immediately open another window (in my app), I can wait about 3-5 seconds and the tabcontrol in the back of the newly opened window will redraw itself and the areas that get refreshed...
I'm trying to get it to verify that it has the same item in the List as the one that's currently selected in the listbox
Why does this code not work, It should work unconditionally because the text generated from the listbox is taken from the List choicetitle
if (RemovePackages_Listbox.Text == choicetitle[RemovePackages_Listbox.Selecte...
Hi,
I have a class as follows :-
interface IFilterCondition
{
List<Name> ApplyFilter(List<Name> namesToFilter);
}
class FilterName : IFilterCondition
{
public NameFilterEnum NameFilterEnum{ get; set; }
public List<Name> ExcludeList { get; set; }
public char StartCharacter{ get; set; }
#region IFilterCondition Me...
With RIA services, I have a Contract that has a list of Orders (1 to many relationship). Given a Contract, is there an easy way to load all of its orders? Currently, I am creating a method on the service that takes a ContractKey and returns a query that selects all Orders on that ContractKey, and I pass that query to the Context.Load m...
Has anyone used one of the big 3 credit agencies and interfaced to them to get a Credit Report? We need to do in house financing and would like to automate the credit check. .NET preferred.
...
I have added functionality to the Accounts Controller -> Registration ActionValidateRegistation function to test for blanks in the user registration form. I now want to throw an error to the form if the email address the user entered is already in the system. I have added the function checking for the duplicate email address at the en...
I am developing an application which processes (video processing, etc) and sends large files (up to tens of gigabytes) over a network. I am sending the files using FTP. To improve the performance/memory consumption of the application, I would like optimize the buffers so that i dont send packets which are too large and get fragmented. Th...
I am a computer science engineering student and I've been programming on the .NET Framework for 2-3 years but I haven't used Linux. I thought, for my final year project, a Linux distro would be good.
I was thinking of a few ways to implement it, when this crazy idea occurred to me:
Can we implement the .NET Framework first on the Li...
i have make a c# form in csharp and i want to call it on visual c++.how would i call my forms in visual c++.please give me some sloution.
...
I am trying to get the WindowsIdentity for the computer account the current user is logged into.
Currently I am using the following code to get the group membership of the current user:
WindowsIdentity currentIdent = WindowsIdentity.GetCurrent();
foreach (IdentityReference indentity in currentGroups)
{
String groupName = indentity.Tr...
I'm using VB.NET.
I want to build a large List (Of MyClassOrStructure) that becomes static after its initial population.
I'm going to have multiple threads that need to iterate through this list to read data (no writing, inserting, or deleting)
Are there any very bad things that I need to keep an eye out for?
Thanks.
...
If I write a DynamicMethod with an ILGenerator and the code that I output is thread safe would the resulting delegate be threadsafe?
My concern is that the IL gets compiled the first time the method runs. If that is true what happens if some other thread tries to run the delegate while it is compiling?
...
I'm using VB.NET.
I am performing a select query that returns approximately 2500 rows, each containing 7 fields.
I am using a SqlDataAdapater and filling a dataset with the single table returned by the Select query (from the local database). (I only perform the data-retrieval once (see below) and I don't even start the StopWatch until...
Hello everyone,
I am using VSTS 2008 + C# + ADO.Net + SQL Server 2008. When connecting from another remote machine, normally TCP/IP protocol is used by ADO.Net client to connect to SQL Server 2008. When connecting locally (ADO.Net client and SQL Server on the same machine), normally shared memory or named pipe is used.
My question is, ...