Hello,
I'm using a PagedCollectionView to bind an ObservableCollection<T> to a DataGrid in my Silverlight app. In this case, the source collection can incur an unbounded number of updates during its lifespan. It seems, however, that if I'm using a PropertyGroupDescription to group the elements in the DataGrid then I need to reapply that...
I have an event Load
public delegate void OnLoad(int i);
public event OnLoad Load;
I subscribe to it with a method:
public void Go()
{
Load += (x) => { };
}
Is it possible to retrieve this method using reflection? How?
...
I'm trying to do something like this:
public interface IRepository<T>
{
T Get<T>(int id);
}
public interface IFooBarRepository : IRepository<Foo>, IRepository<Bar>
{
}
IFooBarRepository repo = SomeMethodThatGetsTheActualClass();
Foo foo = repo.Get<Foo>(1);
I'm getting a warning:
Type parameter 'T' has the same name as the type pa...
Looked to build an add-on for IE that records the websites visited by the user. Can't seem to find any code or samples...
...
I have a .NET application that was supposed to be compiled as a 32-bit only application. I suspect my build server isn't actually doing it.
How do I determine if a .NET application is actually set to run in 32-bit mode?
...
I am using c# on a windows mobile 6.1 device. compact framework 3.5.
I am getting a OutofMemoryException when loading in a large string of XML.
The handset has limited memory, but should be more than enough to handle the size of the xml string. The string of xml contains the base64 contents of a 2 MB file. The code will work when the xml...
i am trying to disconnect a client from a server but the server still sees it as being connected. I cant find a solution to this and Shutdown, Disconnect and Close all dont work.
Some code for my disconnect from the client and checking on the server:
Client:
private void btnDisconnect_Click(object sender, EventArgs e)
{
...
I wonder if there is a code comparison tool that take into account the call hierarchy of your code. Something like this: you provide the two projects to compare and which method and the file containing it to use as the head of the hierarchy. The tool would extract all methods potentially called by this method (polymorphism and dynamic ca...
I have a project that is for a piece of software. So I reference DLL libraries for that software in my project so I can code and make some nice plugins and extensions for the software via their API.
The problem is that the software has many kinds of versions: Enterprise, Lite, version 1.6, version 1.7, version 2.0, etc. If I want my pro...
I think I should first mention that I have never worked with anything that has to do with Facebook before.
I should also mention that I'm using .NET.
My question is: Is it possible to access the name tags of photos in Facebook (given a specific member's name) ?
What are some good resources on the subject (starting with the basics..)?...
Hello!
I'm using WebBrowser control to allow user navigate to intranet web-portal and keep user in c# desktop application. In some cases user can clicks on link on html-page and child window with WebBrowser control opens(to do that, I subscribed to NewWindow event on parent WebBrowser control).
There is "Close" button on child window's p...
Recently a VB 6 application using .NET 1.1/2.0 components stopped working on my companies XP machines. The IT department was installing Windows patches at the time, so I'm wondering if anyone has heard of an update breaking VB 6/.NET interop?
...
Microsoft naming conventions for .Net put constants in Pascal Case. In fact, it explicitly tells us to avoid using all caps for constants:
You might also have to capitalize
identifiers to maintain compatibility
with existing, unmanaged symbol
schemes, where all uppercase
characters are often used for
enumerations and consta...
Is there a way, when creating a WinForms Custom Control/User Control, to get a reference at runtime to the form the control is placed on, so as to access various properties of that form? I would rather not pass a reference to the form into the constructor of the control, as, for various reasons, I need to keep a default constructor with ...
I'm not sure if "token replace" is the right phrase but here is what i'm trying to do:
In a string if I find two or more consecutive white spaces (\s) aka - spaces, new lines, tabs etc. I want to replace whatever it matched with only one instance of itself.
Example:
a b b
would become
a b b
and:
a
b
c
Would become:
...
Hi All,
I am trying to print a report from Reporting Services, the approach I am taking is:
Render the report to get the Byte[]
Create a file in the client (Something.pdf)
Load that file in Read Mode to a FileStream
Then I try to make a call to the procedures described in http://support.microsoft.com/kb/322091/en-us
If you in method S...
We are planning to develop a email marketing system. We are trying to decide if we shall use LAMP stack or MS.NET with SQL server.
I understand MS.NET is faster/easier to develop and has support from MS but in the long run it will cost more considering the licensing cost.
I guess LAMP will cost less and can also be scaled as good as MS...
I'm kind of stuck working out where I'm going wrong with the below entity framework mapping. What I've done is:
a) created a Sqlite database (see below, noting Sqlite doesn't allow FK constraints)
b) created a blank Entity Data Mode & then created the model from the database
c) issue is then trying to add the Model association so it pi...
Hi...
I want to maintain model state between method calls on the controller.
Is that possible?
A controller is created at the call of some of its methods and destroyed when the called method finishes its execution?
If not... how can I maintain the state between method calls?
If that is possible... how has it to be written?
thanks
...
I need to get all events from the current class, and find out the methods that subscribe to it. Here I got some answers on how to do that, but I don't know how I can get the delegate when all I have is the EventInfo.
var events = GetType().GetEvents();
foreach (var e in events)
{
Delegate d = e./*GetDelegateFromThisEventInfo()*/;
...