Actually I came across that item but it is in the "Restrictions on Regular Connections" and not in the "Restrictions on Context Connections" section on the same page so I must argue that such a plain statement leaves some questions about the context.
Is that what you were trying to say in your earlier post as I can't quite see the link.
Using VS 2008.
I have a ToolStripDropDown with a ToolStripControlHost containing a ComboBox (plus other controls).
I have a handler attached to the ToolStripDropDown Closing event.
The ComboBox has 8 items.
When the list is dropped down the lower 5 items protrude beneath the ToolStripDropDown
and overlay the form beneath.
(At this point ToolStripDropDown.AutoClose is set to True.I need it set to this at this point)
When any of these lower 5 items are selected in the list, the ToolStripDropDown Closing event is fired
with ToolStripDropDownClosingEventArgs of ToolStripDropDownCloseReason.AppClicked.
If any of the top 3 items ( the items of the list within the bounds of the ToolStripDropDown )are selected,
it works as expected ie. no Closing event.
If the Closing event handler is disabled temporarily, any of the 8 items can be selected.
I'm guessing that when the portion which is overlaying the form is clicked,
the dropdown list disappears and somehow the click is seen on the form?
Is this normal behaviour? If so is there a way to work around?
i wanted to re size the form dynamically and smoothly, i got it done , but now come across a problem, when the resizing is happening
it shows the background in black , but i want to change that color to normal control color. so any idea how to do this..
maybe this one will be easier.
i need to serialize this list
List of A _l
Loop 1 to 3
A a = new A();
List of B _l;
Loop 1 to 3
_l.add(new Class B());
first, thanks for the answer !!
second, your second example seems to be what i need, but it a bit different...
instead of declaring 2 aggregated object of Class Mini inside Class Combo, i've a list of Mini inside Combo...
and also i've a list of Combo... (and here i fail...)
third, why do you use private ctor in this example ? (for both classes)
The access attributes aren't really relevant. Some of the default constructors are not used explicitly by my code, however they are needed by the serialization; making them private suits this, as serialization is based on reflection, it can access anything it finds!
If you want to do this in C# you'd have to use System.Management namespace. It contains the classes to do WMI in .NET. It's too bad that access of remote machines wasn't build into the DriveInfo class of the System.IO namespace.
It should do, but think of the consequences:
You would have to map every drive of the server to get at all of them.
And when enumerating your drives with driveInfo you have to filter for the
network drives and then look only at the ones from the server you're interested
in. Since you might want to inspect other servers too you'd need to do this programatically.
So I need to enumerate the drives on the remote computer ...?