I have to include a .NET application into another .NET application as a plugin. The plugin interface requires me to inherit from a template form. The form is then attached in a MDI when the plugin is loaded.
Everything is working so far, but whenever I register for drag and drop events, set the autocomplete mode for a combobox or at var...
I need to implement threading to improve load time in a compact framework app. I want to fire off a background thread to do some calls to an external API, while the main thread caches some forms. When the background thread is done, I need to fire off two more threads to populate a data cache.
I need the background thread to be able to e...
Given....
Public MasterList as IEnumerable(Of MasterItem)
Public Class MasterItem(Of T)
Public SubItems as IEnumerable(Of T)
End Class
I would like a single IEnumerable(Of T) which will iterate through all SubItems of all MasterItems in MasterList
I would like to think that there is a Linq facility to do this, or an extension me...
Hi.
I have a windows forms app where I have split different functionality into several user controls. I want each of these user controls to have an accept button.
Any best practices here?
My idèa is to detect which user control that has focus, and than set it in the parent Form.
Any other idèas?
...
Hi,
I have a template file in a folder " c:\template_folder".
At runtime, I will create a new folder " c:\new_folder" and wish to copy the template file to the new_folder only if the file doesnt exist.
description:
for the first time, I will copy the template file to the new_folder and rename it with username... so that after first ...
Need to batch a weekly purge of the System queue journal.
...
When creating a designable .NET component, you are required to provide a default constructor. From the IComponent documentation:
To be a component, a class must
implement the IComponent interface and
provide a basic constructor that
requires no parameters or a single
parameter of type IContainer.
This makes it impossible to...
I'm connecting to Informix 6.5 using the IBM OLE DB Driver.
Some clarification: Informix Dynamic Server Workgroup Edition.
Please note that there are many versions of IDS/WE - it helps to be precise about which version you have. It might be something like 10.00.TC1; the version number could be as old as 7.xx.TCx, or as new as 11.50.TC...
We are two companies who are working on the same project, in the same application. We exchange weekly base only our assemblies (not the code) and making reference on each other dll.We would like to know what is the best practices regarding the specificversion when adding reference to our project. Simply in what case should we use a speci...
i am updating/inserting/deleting values on more than 1 database and want to implement a transaction.
currently its done like
try{
db[1].begintransaction();
db[1].ExecuteNonQuery();
db[2].begintransaction();
db[2].ExecuteNonQuery();
...
db[N].begintransaction();
db[N].ExecuteNonQuery();
// will execute only if no exception raised du...
I've been trying to make a generic class to represent a range of values but am having some difficulty trying to work out what I'm missing (the compiler comlplains about a missing copy constructor, but all the implementations I've tried have failed). So my questions:
Is there a Range template somewhere I've missed to avoid me reinventin...
I just saw an interview with Luca Bolognese from the MS language team, and he mentioned that Anders Hejlsberg thinks developers should focus more on the BCL (base class library, framework) instead of lanugage features (C#, VB.NET).
Which class or interface in the current .net 3.5 framework should every developer know?
...
Our app has a very large number of System.Drawing.Bitmaps that are to be displayed with drop shadows. What's a quick way of drawing drop shadows, with a given blur radius and colour? It's a winforms app, no WPF. p/invoke preferred to unsafe code, but ideally neither; third-party libraries not allowed.
I've seen the 'Image Processing ...
I'm getting an error when trying to create a barcode image using a barcode font. This is happening in production but not in dev.
The method creating the barcode is:
/// <summary>
/// Create a barcode image by writing out a string using a barcode font and save it
/// </summary>
/// <param name="barcodeText">The text string of the barco...
I got some weird error with response.redirect and the project wasn't building at all.. when I removed the try-catch block that was surrounding the block of code where Response.Redirect was in it worked normally..
Just want to know if this is a known issue or something...
...
It's hard enough to find reliable numbers as to general adoption of the .NET framework. This questions concerns an even more specific case: what's the situation among home users?
I am wondering wether .NET is a good choice for a desktop application when targetting home users?
Assuming the application in question is a small-medium sized...
Hi all, I'm facing a stange issue. When I export a GridView as a power point attachment it shows fine using PowerPoint 2003 but does not show at all using PowerPoint 2007, is there any special tag or style I should use to show it correctly on PowerPoint 2007?
UPDATE: It does not even show a simple HTML saying Hello World :(
Thanks.
Th...
I am attempting to write a SortableBindingList that I can use for my application. I have found lots of discussion about how to implement basic sorting support so that the BindingList will sort when used in the context of a DataGridView or some other bound control including this post from StackOverflow:
http://stackoverflow.com/questions...
I have an application written in .NET. I would like to add the ability for users to control my application by using a mouse, e.g. a high end gaming mouse, with 10-15 buttons on it.
Is this going to be easy to do, or will I need a mouse vendor with a .NET SDK that I can use - can you recommend any?
I would like all control to be within...
I have a legacy Delphi COM library that accepts an ANSI string (code page 1252) as parameter.
The generated .net wrapper accepts a string for this parameter. Passing in a regular string however doesn't end well. If passed in the '°' character a question mark takes up it's spot.
How can I go and debug this? Is it the com wrapper not reco...