Hi, I have a .NET 2.0, application with several types of Controls (Check boxes, Buttons, etc), that I need to Enable or Disable them according the kind of License that the user bought. I wonder if there is a way to support this as an Aspect, like using Injection or a Proxy that can intercept the call to Enable or other Properties of the ...
Solution: Just to add the solution: sectionGroups do not seem to have attributes. The proper way seems to have a ConfigurationSection as the parent and ConfigurationElement as each children. There is also ConfigurationElementCollection for Collections. An example from the .net Framework: <roleManager> is a Section, <providers> is an Elem...
I am using Listbox for display a list. I need select all above item if an item is selected and also do not allow unseleted above items.
...
Hi,
Can anyone help for getting the list of all the datatypes of motorola PLC.
Thanks,
Khan
...
Hi,
I made a application and its working fine in XP, but getting UnauthorizedAccessException in vista. Basically I am creating a folder through code and writing a XML file in it.
Is there a way I can make the application run as administrator through code or something.
Thanks.
...
In some languages (e.g. C++) you can't use operators like == for string comparisons as that would compare the address of the string object, and not the string itself. However, in C# you can use == to compare strings, and it will actually compare the content of the strings. But there are also string functions to handle such comparisons, s...
Hi all, this is probably a n00b question, but even so...
Apart from MS Office, I have not used the Win OS for anything other than playing games.
I think maybe with Win 7 it's time to get up to speed with .net and whatever other windows-focussed libs will probably be useful to know.
Until 4 years ago, I had worked primarily in mainfram...
Many times there is a clear method, that removes all the items from the collections, are these items disposed also.
Like,
toolStripMenuItem.DropDownItems.Clear();
is sufficient, or should I have to call like that:
foreach (ToolStripItem item in toolStripMenuItem.DropDownItems)
{
toolStripMenuItem.DropDownItems.Remove(item);
ite...
I've read in this post: "The joy of Rx: The event-based asynchronous pattern vs IObservable" that the use of EBAP is discourage. What is the best way to design an asynchronous component with the new Rx extensions (something like the PrimeNumberCalculator example of msdn)?
Thank you in advance.
Update
I managed to write my own prime nu...
Hi all,
Is it possible to handle exceptions on the AppDomain.CurrentDomain.UnhandledException callback?
I want to do the following:
Show my own "an exception has
occured" dialog, with a "Send Report"
button
After the user dismissed the
box, I want to close my app, but I do
not want to Windows default crash dialog "The
application nee...
I have a class where inside this class is one private method and many public methods. This private method must be called every time before any other method is called.
The simpliest approach would be calling the method in every method, but I don't like this approach. Is there any other way to achieve this ?
...
Hi,
do you know about any XHTML validation library for .NET? I found that it's possible to use W3C API. But the problem I have is that I need to validate passwords protected pages or page on local server. All libraries I found are using URL as parameter for W3C validator.
Do you know about any library?
...
upgraded some visualstudio 2005 websites to visualstudio 2008. now it is working fine while debugging. There is an error while compiling the website. the following is the error.
Error 1 C:\Program Files.............\DirectScanToServer\licenses.licx: Could not transform licenses file into a binary resource. (1) : error LC0004 : Excepti...
Linq to Sql handles every insert/delete/update operation on an object with separate query. Is there a way to unite multiple operations in single query?
I know this is not possible with the default behavior of the framework. I'm looking for an extension method or workaround. I want to use the queries generated by Linq to Sql, not my own...
We're aiming to implement a scripting mechanism, using DLR's Microsoft.Scripting and hosting assembly.
Now, someone knows about any performance difference between IronRuby 1.0 and IronPython 2.6?
To my understanding they have different compilers, but IronPython seems more mature and tested, but if anyone has documentation or knowledge ...
I have a simply Class that is intended to be a simple POCO - it just holds data. With one exception: It contains a Collection of Notes. I want to lazy-load this collection so that I don't have to fetch the Notes on Pages that don't need them. The stub for this is this:
public class MyDTOClass
{
private ICollection<Note> _notes = n...
In Java or .NET, how would you create a server that listens to a specific port?
(Just a dummy server, I just want to get the high level idea.)
...
What do you think of the following table mapping style for domain entities?
class Customer {
public string Name;
}
class Order
{
public TotallyContainedIn<Customer> Parent { get { return null; } }
public HasReferenceTo<Person> SalesPerson { get { return new HasReferenceTo<Person>(0,1); } }
}
//...
[TableOf(typeof(Customer))]
clas...
Hi,
I am trying to build a generic repository that wraps SubSonic.
I have this code:
Dictionary<Type, SubSonic.Repository.IRepository> repositories =
new Dictionary<Type,SubSonic.Repository.IRepository>();
private IDataProvider dataProvider = ...;
private SubSonic.Repository.IRepository getRepository<T>()
{
if (this.repositor...
Hello
There are multiple threads(a, b, c etc.) about the fact that Clear() ing items in the .NET component containers does not Dispose them(by calling Dispose(true).
Most frequently, IMHO, the Clear-ed components are not used anymore in the application, so it needs explicitly be Disposed after Clearing them from the parent containers.
...