I'd like to be able to catch the DoubleClick or MouseDoubleClick events from a standard winforms radio button, but they seem to be hidden and not working. At the moment I have code like this:
public class RadioButtonWithDoubleClick : RadioButton
{
public RadioButtonWithDoubleClick()
: base()
{
this.SetStyle( ControlStyles.Standard...
How do you get the ActiveCaptionText color when a window is maximized?
The color is correct when the window is restored:
But is the wrong color when the window is maximized:
How do you get the active ActionCaptionText?
Note: Same question for ActiveCaption, InactiveCaption and InactiveCaptionText.
It seems like there should be...
In our .Net application, some of our business objects use lazy loading to access data from the server. While debugging, if I want to inspect a property I have to be very careful and not "look at" or access those properties because this causes the IDE to try and evaluate those properties, which fails. Is there an attribute I can put on ...
I am creating some reporting software that will generate excel workbooks with charts and all related data. Besides the built in libraries and .NET Office integration features, is there any other tools or code that people found useful to creating similar projects?
EDIT: I am targeting winforms.
...
Is there a way of determining the name of a constant from a given value?
For example, given the following:
public const uint ERR_OK = 0x00000000;
How could one obtain "ERR_OK"?
I have been looking at refection but cant seem to find anything that helps me.
...
I can't open an Excel spread sheet with .NET on an x64 server using the following connection string
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + filePath + "; Extended Properties=Excel 8.0;"
I get The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
I installed the 2007 Office System Driver: Data Conne...
Hi,
I'd like to allow my user's to switch between different databases on the login page at runtime.
I've currently got the ConnectionString stored in my App Settings file and all the dataset's refer to this setting.
I have tried modifying this setting at runtime, but this seems impossible.
How is the best way to do this?
Thanks,
...
I have to design a page in which I have to place few flv video files. In general under upload.aspx page I uploaded few videos which are stored under videos directory in my site. I want to put them in my videoview.aspx page. Now can anyone please help in saying how to put videos in videoview.aspx page. Just I want the code to put .flv vid...
I have:
IDictionary<string, IDictionary<string, IList<long>>> OldDic1;
(just for illustration purposes, it is instantiated and has values - somewhere else)
Why can I do this: ?
Dictionary<string, IDictionary<string, IList<long>>> dic1 =
OldDic1 as Dictionary<string, IDictionary<string, IList<long>>>;
Basically dic1 after execut...
One way to increase your understanding of design patterns is to discover how patterns are used in the .NET framework.
Have you found any examples of design patterns in the .NET framework? In your answer please give a short description of the pattern, and example of how it is used in the framework.
Example answer:
The Strategy Design P...
Hi,
the XmlReader has following content:
<ns0:Fields>
<omm:Field DataType="Utf8String" Name="ROW80_3">
<omm:Utf8String> Latam News </omm:Utf8String>
</omm:Field>
<omm:Field DataType="Int32" Name="RECORDTYPE">
<omm:Int32>228</omm:Int32>
</omm:Field>
<omm:Field DataType="Utf8String" Name="ROW80_4">
<omm:Utf8String>A...
Is there a way in .NET to have a class property have a second name or an alias. I want the alias to show in Visual Studio Intellisense? The reason is for me to know what property maps to what column in a database and if I put the column name somewhere with the corresponding property, I can easily know how the mappings work.
...
What is java's equivalent of ManualResetEvent?
...
Hi,
When loading a text file that contains FormFeed characters, the .NET RichTextBox control strips them out. Is there a way to keep this from happening?
Thanks.
--Lenard
...
Could I store DataContext for a long time? What would be with Connection?
...
Html Agility Pack was given as the answer to a StackOverflow question some time ago, is it still the best option? What other options should be considered? Is there something more lightweight?
...
If I'm running a suite of tests, is there a reason I would NOT want to collect code coverage data for the tests?
What's the expected cost, in terms of runtime, storage, or anything else?
I'm trying to decide if I would ever want to run with code coverage data collection OFF.
...
We have a scenario where some .NET code is attempting to access the current instance of a COM (actually DCOM) object.
The object being accessed was developed in VB6. A current instance of it is available on the remote system, and appears to be accessed correctly from VB6 code.
Attempting to call Marshal.GetActiveObject, specifying the ...
I'm trying to abort a socket connection such that the client at the other end will get a "WSAECONNABORTED (10053) Software caused connection abort." error message when it polls the connection.
Close() and Shutdown() will disconnect gracefully. I don't want a graceful disconnection. I want to do an Abort so that the client senses somethi...
I have a COM method which returns a MFC CRect:
GetMFCRect(LONG* pRect)
*((CRect*)pRect) = m_currentRect;
In my .NET application I try the following:
int pointer = new int();
Rectangle rc;
IntPtr pIntResult;
unsafe
{
int* p = &pointer;
_COMobj.GetMFCRect(ref *p);
pIntResult = new IntPtr(p);
rc = (Rectangle)Marshal.PtrT...