I've got a list of Definition objects (definitions), each Definition object has a list of its Arguments and Parameters. This code works fine:
private void BindDefinitions()
{
definitionsComboBox.DataSource = definitions;
argumentsComboBox.DataBindings.Add("DataSource", definitions, "Arguments");
...
Hi,
In my project, I'm trying to reach trays of the installed printers and successfully doing it. If some paper sources of the selected printer are not installed I don't show them in the paper source combo. In the mean time, Word also don't show them in the print dialog - paper/quality tab. But when Word shows non-installed trays with a...
Hi,
Please tell me the basic difference between dotnet 2008 and 2010(3.5 and 4.0)
Regards,
jignesh chauhan
...
How to set with FluentNHibernate the default value of 1 or 0 for a BIT column of the table generated from my entity for the field of type bool. I think it doesn't matter but in any case the database is sqlserver2005.
...
I noticed a strange behaviour of File.Copy() in .NET 3.5SP1. I don't know if that's a bug or a feature. But I know it's driving me crazy. We use File.Copy() in a custom build step, and it screws up the character encoding.
When I copy an ASCII encoding text file over a UTF-8 encoded text file, the destination file still is UTF-8 encoded...
What option should I select for compliing assemblies on a 64bit plaform for a 32bit platform server. As currently I am trying to publish to a 32bit server. I am using VS2005 on a windows Vista machine to build my project and then publish on server but I am getting errors. Any idea how can I solve this problem.
Should I use AnyCPU option...
Is it possible to mark an interface for export, so that all derived classes will be available for import?
[Export( typeof( IMyInterface ) )]
public interface IMyInterface { ... }
[Import( typeof( IMyInterface ) )]
private readonly ICollection<IMyInterface> m_Concretes = new Collection<IPlugin>();
I don't know which classes are implem...
Does the ADO Entity Framework support COM+ transactions ?
...
I have some XML that has creating using an XmlDocument object in C#.
I am then inserting the xml data into an XML column in SQL 2005 using the XmlDocument.OuterXml method to get the raw xml.
The problem I have is that the xml contains some special characters. Namely:  This is because the xml is built up from user input from...
I am using the ADO.Net SqlCommand type and I'm setting the CommandTimeout to 30 seconds.
My problem is that the connection/command keeps timing out causing unhandled exceptions that crash my system!
The data I am trying to retrieve is critical to the system – so I want to fix the timeouts rather than add exception handling retry logic....
In silverlight 2 it was possible to add new rows to the collection through the DataGrid. But in silverlight 3 I cannot figure out how to do this without using a DataForm. Any idea?
...
I've got a list of Validation objects - validations.
public class Validation
{
public IList<KeyValuePair<string, string>> Arguments
{ //(...) }
}
On a form there is a list bound to validations list and a DataGridView bound to Arguments list of current Validation from validations list. I allow user to edit selected Valida...
We are investigating alterntive control libraries for a new project we are working on. One of the requirements is to display data in the form of a surface map, as per the ComponentOne Chart below.
We've used the C1 control in the past but are not entirely happy with it - so wondered if anyone can recommoned some alternatives.
Having...
I have a page that uses GridView to display some data taken from a stored procedure
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString1 %>"
SelectCommand="p_get_all_students" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
One of the columns re...
I have example MultiThreading in VB. Net, I using thread to spider site,, I have a problem :
I have to
syncLock to lock
sql query select top 1 link from tblSite where process = 0 and i update process = 1 ,
End SyncLock
I spider content with links, and i update LastUpdate in DB, An Proces = 0...
..
I do it slowly, can i help about p...
We need to process some EDI messages for a client and i was wondering if any of you could recommend some components (not necessarily free) that could do the task.
I'm interested in a framework that can parse EDI messages into .NET structures and some kind of implementation of transport protocols (SMTP, FTP, HTTP, AS2) etc.
...
I am trying to send an email using c# using the following code.
MailMessage mail = new MailMessage();
mail.From = new MailAddress(fromAddress, friendlyName);
mail.To.Add(toAddress);
mail.CC.Add(ccAddress);
//set the content
mail.Subject = emailSubject;
mail.Body = emailHeader + "\n" + emailBody...
Hi,
I have never used datagrids and such, but today I came across a simple problem and decided to "databind" stuff to finish this faster, however I've found that it doesn't work as I was expecting.
I though that by doing something as simple as:
var q = from cust in dc.Customers
where cust.FirstName == someString
se...
How to change the color of scrollbar of a listbox in ASP.NET?
...
This question is similar to another one I asked, but whereas in that case I wanted to know about forcing a binding to update from XAML or a view model, in this case I'd like to know about wrapping this up into a custom WPF FrameworkElement.
The functionality I'm after is a span of text that indicates how long ago something happened.
<T...