I have a UI with a search text box and a button that that should be clicked when the user want to preform the search. (like a search engine UI)
I want that the same event handler will be called when the user hit the search button and when the user hit enter in the text box.
I can easily hack it but my guess is that WPF has it's own 'r...
This seems to come up alot in my code, i'm wondering if there is some way of removing the switch statement, or if there is a more elegant way of doing it?
public class MetaData
{
public string AlbumArtist { get; set; }
public string AlbumTitle { get; set; }
public string Year { get; set; }
public string SongTitle { g...
I have introduced the SOLID principles to my team and they understand and are excited about using the principles.
S - SRP - Single Responsibility Principle
O - OCP - Open/Closed Principle
L - LSP - Liskov Substitution Principle
I - ISP - Interface Segregation Principle
D - DIP - Dependency Inversion Principle
I have given them a coup...
Is there any event which allows me to get informed when a client accesses any of the listening WCF service methods ?
...
How can i send task /appointments to Microsoft outllook using dot net ? I searched in net and found that we can do this with Microsoft Outlook 10.0/11.0 Object Library
http://www.vbdotnetheaven.com/UploadFile/sridhar_msd/TaskInOutLook07022007023227AM/TaskInOutLook.aspx
http://www.codeproject.com/KB/cs/sendtaskspgmticly.aspx
Now my q...
I created and deployed a pretty simple WCF Service. but when accessing it from IE, I get this :
HTTP Error 500.19 - Internal Server Error
Description: The requested page cannot be accessed because the related configuration
data for the page is invalid.
Error Code: 0x80070005
Notification: BeginRequest
Module: IIS Web Core
Req...
I want to apply an attribute which accepts a delegate as an argument, but I can't find the syntax to do it.
For example, to pass a class, you have to use typeof:
[SomeAttribute(typeof(SomeClass))]
What is the syntax for a delegate (I am trying to pass a static method)?
[SomeAttribute(??? SomeStaticMethod ???]
...
Is there a simple .Net wrapper for Firefox or Chrome so that I could implement a web crawler and other web stuff?
I might need post-form functionality also.
...
I have a .NET Windows service that I would like to port to Mono on Linux.
What would be the proper way to install the service on Linux so that it works like a Windows service (i.e. autostart, runs when no users are logged in, etc)?
...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I want to using appcmd to add a new web site, my scenario is like this.
All my web site files are under folder c:\template;
I want to add my new web site as a virtual directory under default web site, the virtual directory is called "testsite1";
I want to use the default ...
I'm developing a Silverlight application where I want to simulate a console. There are a lot of ways to represent this - StackPannels, grid of TextBoxes, etc - and I was wondering what the bets fit would be?
Requirements:
Display an 80x20 grid that scales based on parent size
Be able to update an individual cell's character
Be able to...
With the upcoming release of .NET 4 in mind, what are the reasons that Microsoft doesn't automatically update and upgrade the .NET Platform on all installed Windows System? Is it a legal issue?
Even Windows 7 doesn't ship with Silverlight on board and it hurts my heart everytime a customers doesn't want to install a new release of my s...
This question may be very similar to my one, but I cannot see the answer I need in it. I have a class, called CASM, that has a List<Action>. I want to serialize this class (using the BinaryFormatter or something similar). This class and all classes referenced in the Actions have got correct [Serializable] and [NonSerializable] attributes...
I encountered a strange problem this week that I can't explain: I switched my application to use the signed version of some third party assemblies (Xceed Grid and some of their other components) and the application start time went into the toilet. Each time the application loaded a signed assembly, it took 30 seconds to load. Applicati...
Is following thing possible?if yes how?
I have some core functionily already implemented in java.Now i want to create a GUI for it.
I am finding it difficult to make a GUI in java using swing.I can build a GUI easily in C#.net.
So i was thinking if it was possible to create a library in java that i can access frm my C# code.
Shorty: my...
I'd like to write and distribute a help system with my application, that allows people to search for keywords, look at tables of contents, etc.
I also want the same help available offline and online.
What utility should I use?
...
I'm trying to write my own toy My Toy Language -> MSIL compiler in order to get a better understanding of how compilers work. I got the parsing and lexing working, I have built the expression trees and using the System.Linq.Expressions expression tree API, I have a working interpreter. Now I would like to emit some real MSIL assemblies.
...
Why does this work,
private void buttonBoo_Click(object sender, EventArgs e)
{
GeckoBrowser.Navigate("http://www.google.com/");
}
and this not?
private void buttonBoo_Click(object sender, EventArgs e)
{
Thread thread = new Thread(delegate()
{
GeckoBrowser.Navigate("http://www.google.com/");
});
thread.Start();
}
...
This is just a question on how to write my code for a COM import.
My understanding of the correct implementation of interop interfaces is that the main criteria is that:
All method signatures must match in a compatible way
Methods must appear in exactly the same order in the .Net interface as they do in the unmanaged interface
When th...
Setup project with Visual studio 2008 really sucks. Do you know if there is other free alternatives ?
...