I am now refactoring a code written by someone else and I have found a construct that I have mixed feelings about. There is a ListView-like control and each of its items can raise 'DialogOpened' event. However, it may be cumbersome to register external event handlers to each of the items (and the items may be added or removed dynamically...
I'm doing a sample in .NET remoting. I want to know is it possible to exchange data between a computer in my network to a computer in another network?
...
I am now trying to understand some code and I have found a pattern, which seem a bit strange to me. There is a user's control class with 'EditorOpen' event. At first, I thought this name is incorrect, because it does not end with '-ing' or '-ed', as MSDN suggests. However, later I have found out, that this event does not INFORM about som...
How can I know under which IIS version my web application is running in development server?
As .Net framework 2.0,3.0,3.5 have support built in IIS....
Thanks
...
On my .NEt projects I'm used to the tool called ReSharper but my current project is c/c++ and I so miss my loved ReSharper any one know of a tool with at least kinda the same capabilities for c/c++ (Especially refactoring and dead code analysis)
...
Hello,
I have a .NET TextBox with AutoComplete feature on the form. The form has also AcceptButton and CancelButton defined. If I try to commit a suggestion with Enter key or close drop down with Esc, my form closes.
How can I prevent this behavior?
...
I have a WCF service reference (= client proxy) generated by Visual Studio 2008 (.net 3.5 sp1). The generated code contains a data contract with DateTimeOffset properties so naturally VS decorated it with KnowTypeAttribute(System.DateTimeOffset).
Whenever I invoke a WCF operation that returns the above mentioned data contract, I get th...
Hi,
I need help using the PasswordRecovery control in .net 2.0. My situation is the application has changed from storing the passwordformat in Hashed to Clear.
The problem is the newly created users have a clear password stored and there are still users with hashed passwords. When I use the passwordRecovery control as below for users w...
Hi All,
What are DataContracts in WCF ?
I have an XML file , how can I create a DataContract for this?
...
I have a WCF n-tier solution. When used in a Microsoft AD shop i can specify a domain account in AD that can use delegation so when i run the WCF servics under that account i can pass the users logged in identity across physical bounderies and to the ultimate destination - is this possible to do in a Novell shop? Does Novell offer a si...
So I'm trying to parse some XML, the creation of which is not under my control. The trouble is, they've somehow got nodes that look like this:
<ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(MORNINGSTAR) />
<ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(QUARTERSTAFF) />
<ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(SCYTHE) />
<ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(TR...
I just can't find a "good" explanation for this...
...
Is there an easy way of dynamically building a filepath in .Net? At the moment I'm building the filepath by concatenating various strings (from application settings, user input and Date.ToString) but this relies on there not being double '\' characters or illegal characters etc in the strings. Obviously I can manually validate the string...
I've manually created some classes in the Linq-to-sql designer and when looking in the xx.designer.cs file the class doesn't implement INotifyPropertyChanged interface.
This works if I create the entity by dragging from the server explorer.
Does anyone know why this is and if I am doing something wrong or if there is somewhere to set...
Hello,
I formed class template that represent two dimensional array :
template<class T>
class Array2D {
protected:
public:
T *data;
const unsigned rows, cols, size;
Array2D(unsigned r, unsigned c) : rows(r), cols(c), size(r*c) {
data = new T[size];
}
~Array2D() { delete data; }
void...
Hi all,
I want to change the behaviour of the editable ComboBox. This is the behaviour I want:
Make the TextBox (PART_EditableTextBox) only visible when IsEditable is true and when the ComboBox is open. I've worked this out in the ControlTemplate.Triggers part:
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsEditabl...
I have a web application project called Site, and in it is a folder called SITE (I know, not the best naming conventions, but that's another story).
When I check the designer generated code it starts like this:
namespace Site.@__SITE__ {
Why is the at sign added? I can remove it and the project compiles and runs fine. Also, with or w...
I want to use in my WinForms application a font used in .net console application.
What font do I need to use?
Lucida Console is not the font that is being used in .NET Console application as I see it. So Lucida Console is not the one I want.
...
Windows forms has the handy ControlPaint.DrawImageDisabled to paint a color image in a grayed-out, disabled state. Is there a way to determine, for a given color, what the disabled color would be (as if it were drawn by DrawImageDisabled)?
...
Oh, man. I'm feeling the WPF pain this week. So for my next trick, I'm now unable to figure out how to select an item programmatically in a ListView.
I'm attempting to use the listview's ItemContainerGenerator, but it just doesn't seem to work. For example, obj is null after the following operation:
//VariableList is derived from Bi...