The first column below works perfectly except I can't set the background color. The second column has the background color working most of the way except when using the arrow keys to move around in the grid, the cell isn't visually changing. What is the easiest way to just change the gosh darn background color on a text column? Extra poi...
I have an loaded an XML document with the following structure:
<?xml version="1.0" encoding="UTF-8" ?>
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<sheetData>
<row r="1" spans="1:2">
<c r="A1" t="s">
<v>...
I am looking for a solution to create subdomains pragmatically in ASP.NET, ASP.NET MVC and PHP. Specifically, a user profile page should resolve for both: www.domain.com/profilename or http://profilename.domain.com.
...
Project is C#.
So I have a bunch of multithreaded code that is designed to be run as a library. It's in a seperate project from the UI.
My library has a central object that needs to be created before anything that would fire off events is created.
Is it possible for this master object to be passed in some objects so that my events can...
How can I force .NET's XmlSerializer to add an xsi:type="FooClass" to a member/node of type FooClass?
The scenario is a currently-released app, where in v.1 :
FooClass inherits FooBaseClass
FooPropertyA is on FooBaseClass
FooPropertyB is on FooClass
FooBaseClass is decorated with [XmlInclude(typeof(FooClass))]
BazClass has member Foo ...
I have vs 2008 and vs 2010 installed on my machine as well as the code contract from devlabs (version 1.2.21023.14). It works fine with vs 2008. However, with vs 2010, there is no "code contract" tab. Is there something I should install?
...
I'm having trouble using Rhino Mocks to assert that a method was called (and ideally with a particular parameter). The Method is ILog.Debug(FormatMessageHandler) in Common.Logging 2.0 using the new lamba syntax. It works fine using the old way plain ILog.Debug(string).
// Sample Code to Test
public int TestFuncLambda(ILog log,...
using vsto, C# fx 3.5,
how to check Excel Workbook or sheet is password protected or not?
...
Has anyone tried to integrate check scanners with .NET applications? If you have, please help me get them to work.
Thank you.
...
Can anyone tell me why the formula for the the actual maximum Value of a vScrollBar control is Maximum + LargeStep -1?
Is there a way to configure the control so that the Value is 0 when the scroll bar is at the bottom of the screen?
...
I want to ask if a System.Timers.Timer instance runs on a single thread, a thread pool, or something else?
If it does run on a single thread, what do you think would be best for this example:
I want to update all character's health every minute
I want to update all character's energy every 2 seconds
I want to update all character's sp...
Had a quick question.. Googled but nothing worthwhile found..
I have a simple type like shown below.
public class DummyClass
{
public string[] Greetings()
{
return new string[] { "Welcome", "Hello" };
}
}
How can I invoke the "Greetings" method via reflection? Note the method returns array of strings.
...
Say I have a Customer class with the usual properties: CustomerID, Name, etc.
As a result of a query, I get a generic list of Customer objects: List<Customer>
Is there an elegant way to get an array/list of CustomerID or Name property values from this generic list? (i.e. string[] customerIDs = ???? )
I know I could do a foreach and fi...
Are shopping cart and paypal 2 different things ? And how to implement them in ASP.NET
...
I want to know about the latest .net framework and visual studio versions avalilable in the market.
...
Assume I have a class called Customer. Now I need to render the customer on view. So I created CustomerViewModel to use in binding. I am looking for the best way to create the CustomerViewModel class. Following are my thoughts on creating it.
1 - Create all the properties in the customer again on the view model. Inject the customer inst...
I have wsdl that needs to be interpreted by wsdl.exe (.net sdk 2.0)
This wsdl is generated on runtime by axis engine, and it is reading a wsdd file to generate this.
One of my return types have java.util.Map inside and here is the schema for a map in wsdl (just one part of wsdl)
<schema targetNamespace="http://xml.apache.org/xml-soap"...
How do I call a stored procedure from a web service method without having to wait for the stored procedure to finish, and just let the method finish all other activities?
As an example (not actual situation but much simpler to understand):
I have a table houses with 10 million rows, and each year I have to calculate what each house is ...
Recently our application encountered a strange problem.
The application has a win32 window in the WPF window,
when resize the WPF window, the problem occurred.
StackTrace:
Exception object: 0000000002ab2c78
Exception type: System.OutOfMemoryException
InnerException: <none>
StackTrace (generated):
SP IP Function
00...
Hi all..
i googled lot, i am not getting the way to build the icsharp source code for .net compact framework..
here is the link i,e http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx were i am able to download source code, but i am able to build for .net framework not for compact framework 3.5.. i checked the configuration...