Like the subject says I have a listview, and I wanted to add the ctrl + a select all shortcut to it. My first problem is that I can't figure out how to programmatically select all items in a listview. It seems like it should be relatively easy, like ListView.SelectAll() or ListView.Items.SelectAll(), but that doesn't appear to be the c...
How can I Handle MDIParent Form events in childs forms?
for example in Parent Form I Have a option "search on child grid" and when that button got clicked, in the child form one row on grid get focused.
Im using C# 3.5 Windows Forms Application
Thanks in Advance
...
Sometime, when the Unit Test of a class has been done and method use _Accessor while the code has changed. What ever you compile many time it still doesn't "synchronize" the _Accessor file. The only thing that work is closing VS2008 and reopend it. Any trick to "regenerate" the Testing Accessor?
...
I understand the many benefits of providing an interface to access the members of a class indirectly. My question is: isn't that already something you can accomplish in just about any OO language using (something along the lines of)
public int NormalClass::getQuality() {
return this->quality;
}
and
protected void NormalClass::set...
What is the best way to inspect the calls & responses from a web service in .NET?
I'm interacting with a Web Service written in Perl and running into issues.
How can I capture the text of the call and response?
UPDATE:
Based on comment to clarify:
I'd like to do it via .NET so I can log it or email it when an issue arises.
...
Basically I am looking for a win32 method to invoke in C# to set the focus to a children of an unmanaged application.
But first I need to find the child control's handle which is the problem. Any useful win32 functions to solve this?
...
I know you can customise entities through partial classes, but what is the general approach for modifying properties on entities? What if i want to change the logic in the get/set? What about adding attributes? I don't want to edit the auto generated code - how do people get around this?
...
What ways there are for doing a one way XML serialization in .Net? XmlSerializer won't write properties that don't have a public setter. While this limitation is understandable for deserialization I would be satisfied with just serialization for web use. The JSON.Net serialization works great in this situation as it serializes the full o...
Is it possible to create a library that can be consumed from .Net 2.0 and also allows .Net 3.0+ consumers to benefit from DataContracts if they wish?
I don't see any technical obstacle for this other than the library that contains the different DataContract related attributes is a .Net 3.0 library. Can these attributes be implemented ma...
I am a MCAD.NET (1.x version). I would like to get some suggestions on upgrading my certification.
If my goal eventually is to get a MCSD with the least number of exams, should I be trying to upgrade from MCAD to MCPD and work towards MCPD?
Also, will MCAD be obsolete any time soon?
...
How can I capture keys on a WinForms application when the application is in focus?
I have tried using the Form_KeyDown and Form_KeyUp events but they don't work the way I want them to.
...
I have a ListBox bound to a list of Items (for arguement, lets say its got a string and two dates Entered and Done).
I would like to make the background color of items in the ListBox have a gray color if the Done DateTime is != DateTime.MinValue.
Edit:
Should I make a converter? and convert DateTime to a Brush based on the value of th...
I'm trying to use the ICSharpCode.AvalonEdit.TextEditor control from the SharpDevelop 4.0 project in a WPF app that I'm building, but I can't seem to get it to work.
I checked out a copy of the source code from svn://svnmirror.sharpdevelop.net/sharpdevelop/trunk/SharpDevelop/src/Libraries/AvalonEdit at revision 4304. Then, I built the p...
I populate a DataGridView from a collection serialized to a string of XML (example code: *).
My requirements are (1) to get images into the DataGridView and (2) the ability to set the bindingSource.Filter string and dynamically filter the table based on strings in the columns (for possibly thousands of entries). My weird XML to string h...
So I've got an app I want to deploy via ClickOnce. However, when you visit the deployment webpage, you're treated to a rather bland-ish default-style page with the application name and a "Run" button. How can I modify this page to have additional buttons, artwork, etc? I can't seem to find it in my solution anywhere.
...
I have seen how you can add custom routes to WebForms by using some code like this.
public class WebFormsRouteHandler : IRouteHandler
{
public string VirtualPath { get; set; }
public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
// Compiles ASPX (if needed) and instantiates the web form
return...
I would like to be able, at compile time, to ask any given method what possible Exceptions might get thrown by invoking it. The list of Exceptions should include any uncaught Exception that might get thrown in any nested method invokation.
Caught Exceptions should not be included in the list as I'm only interested in the Exceptions that ...
I have a solution which has 3 projects. One is a console app and other 2 are windows applications. Both windows applications uses console application so I added the reference of console application in both windows app projects. Now when I build windows projects, console application is being copied in output directory but the problem is t...
I know that anonymous functions are not supported as arguments to a dynamic method call. What are other such limitations of DLR in .NET 4.0?
...
How can I launch the print of a document from C# .NET application ?
the word document already exists in the hard drive. I just wish to start printing that word document upon the button click event.
...