How can I bind the default Window background color of the theme to a Window background?
I've tried the following:
<Window x:Class="Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Shell"
Height="300"
Width="300"
Background="...
Is there some software for visual studio to automatically group c# class members?
...
I have been using ADO.NET in favor of LINQ to SQL (or Entities) up to this point. I'm starting a new project that should be smallish, at least at first but I would like to have room to expand down the line.
I feel now is a good time to get into LINQ. I've avoided it for quite a while; however, I'm concerned by the current direction of...
I am wondering what is the order of the cells in DataGridView.SelectedCells? I assumed SelectedCells[0] shall return the first cell (top-left-most) and SelectedCells[Count-1] the last (bottom-right-most) but strangely enough with the following four cell grid
[ 1 ] [ 2 ]
[ 3 ] [ 4 ]
when I select these cells and try to get cell values ...
When reading the date and time a Windows event occurred using XP the time is +1 hour out, when using Vista the time is correct. Both machines have .Net 3.5 installed (same version 3.5.30729.01), the time zone is the same and the time correct, both have the Daylight savings checked.
If I run my program on Vista and read the XP event log...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 + ASP.Net. I am using WebClient.UploadFile to upload file to a server running with ASP.Net (I use http post to upload the file to a aspx url). My question is, how to save the content of the file at server side? I find from server side, if I simply save HttpContext.Current.Request.Inpu...
Good afternoon,
does anyone know whether it's possible to handle content changes or more precisely whether there's an event for that... one that would notify me if a document's content has been changed (ideally at what position/range etc)?
Cheers and thanks,
J
...
What I want to do is to read C# code, parse it, insert some method calls and compile it finally.
Now. Is it possible to convert C# source code (a list of strings) to CodeDOM objects?
...
After extracting a piece of text in my application, I might end up with a string like this:
"More kitchen supplies for the people"
Which in plain text would be:
"More kitchen supplies for the people"
Is there a component/method in .NET I can use to "process" the string into its plain text equivalent?
I'm able to assume r...
So I downloaded the .net 2.0 sp2 redistributable "NetFx20SP2_x64.exe" from the following site:
http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=5B2C0358-915B-4EB5-9B1D-10E506DA9D0F&displaylang=en
Deployed on my x64 win2k3 server from which I run IIS in x86 mode. On the same server I also run services and utilities in x64 b...
If I create a .NET application that uses a small SQL Server database that I create, can I then give that application to other people to run on their PCs even if they're not running SQL Server?
If so, is there anything special I have to do in the way I create/distribute it? And are there any special requirements for the PC's it is ins...
Hello everyone,
I am using VSTS 2008 + .Net 3.5 + C# + ADO.Net + SQL Server 2008 Enterprise. I am learning http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.clearallpools.aspx about SqlConnection.ClearAllPools method. I want to know the behavior of this method is, if any connections from connection pool is idle...
I just learned that we have some upcoming .Net projects that are going to be developed using C# in Visual Studio. I have not coded Java since 2001 when I started working in PHP in your typical LAMP stack.
What resources can you recommend for a LAMP guy to get productive using .Net and Visual Studio?
Books, tutorials, links, etc. all we...
Hi,
when i am using below code with windows application it always fires WOrkBookOpen event.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Microsoft.Office.Interop.Excel.Application app;
private void button1_Click(object sender, EventArgs e)
{
app = new Microsoft.Of...
I'm pretty new to ADO.NET, and I'm a little confused and frustrated by the number of options available for manipulating data. There's regular ADO.NET, LINQ to SQL, Entity Framework.
Right now I'm developing an IRC client and using ADO.NET (and the SQLite provider) to store settings like networks, servers, favorite channels, etc.
How ca...
Is there any functionality built into the .NET framework somewhere to tokenize C# code? I'm not looking to build a tokenizer in C#, I'm looking for something that can tokenize C# source code.
...
I've got a web site that I use to sell a downloadable .net 2.0 Windows Forms application. I use Google Analytics to analyze site traffic. The .net 2.0 application has an embedded WebBrowser control. One way I use the WebBrowser, for example, is to show the customer a page on my web site where they can register their email address. Based ...
I have an extension method to convert a DbDataReader to an IEnumerable object:
public static IEnumerable<IDataRecord> AsEnumerable(this DbDataReader reader) {
while (reader.Read()) {
yield return reader;
}
}
In my application, I query the database like so:
var records = context.Query("select WRKORDNBR from WRKORDER")....
Ok, I am going to try and give a very bried yet detailed description of what I need to accomplish.
First, I have a LinqToSQL datacontext defined that has an employee object. I then created a BLL (partial of employee) that handles my validations, inserts, updates etc. Everthing is good at this point. Next, I created a detailsview wi...
I provide a library that currently has .NET 2.0 as a pre-requisite.
I'd like to go to .NET 3.5, to take advantage of LINQ, and Action delegates, and so on, but I don't want to strand too many people.
Now that 4.0 is nearing release, is it time to move up to 3.5?
The library works on the desktop and CF versions of the Framework.
Does...