.net

How to exclude non-browsable members in a sandcastle xml documentation build

I'd like to be able to exclude members that, although Public, are decorated with EditorBrowable.Never. I can't see any where to do it in the options. Is there a plug-in out there where you can specify attributes to exclude? Cheers ETA: Looks like I may have found it - the <exclude /> Tag. I'm just testing it now.... ETA2: Yes it work...

Preventing a dialog from closing in the button's click event handler

I have a dialog that I show with <class>.ShowDialog(). It has an OK button and a Cancel button; the OK button also has an event handler. I want to do some input validation in the event handler and, if it fails, notify the user with a message box and prevent the dialog from closing. I don't know how to do the last part (preventing the cl...

How to let parent control know that its child got focus?

Hi there, imagine that I have a Form with 9 controls (TabbedStuffControl) in a 3x3 tile, and these controls contain TabControls containing another control (StuffControl) with ListBoxes and TextBoxes. I'd like to know a proper way to let TabbedStuffControl that its child has received a focus? e.g. user clicks into a textbox of StuffCont...

How to integrate conditional logic in postbuild events

Hi I have a visual studio project which includes postbuildevents in the following form: MyTool.exe $(ProjectDir)somesrcfile.txt $(TargetDir)sometargetfile.bin Now I want to add some logic saying that these steps are taking place only if the files have changed. In peudocode: if (somesrcfile.txt is newer than sometargetfile.bin) { My...

Desktop Notifications, aka Internal Alert System

It has become apparent that where I work needs, internally, a "notification system". The issue being that we are very spread out throughout multiple buildings and the bulk of the work force regularly keeps there email closed for hours at a time. I need to create a simple way to be able to push out a message and have it "pop up" on ever...

How do use OpenOffice components without installing OpenOffice.org ?

Hello. I'm working on solution for printing office documents based on OpenOffice.org UNO. My project is writing on C# .net. So my question is - it possible to use only required OpenOffice components without installing complete OpenOffice.org. My problem - deploying solution for end users. Thanks for advance. ...

i don't solve "must declare a body because it is not marked abstract, extern, or partial" problem?

How can i solve "must declare a body because it is not marked abstract, extern, or partial". This problem. Can you show me some advices? Full Error message is about Save, Update, Delete, Select events... Full message sample : GenoTip.DAL._AccessorForSQL.Save(string, System.Collections.Specialized.ListDictionary, System.Data.CommandTyp...

How add imagelist in Infragistics.Win.UltraWinGrid ?

In past, I am using Listview and using below code can show a particular image for particular memId. But now I need to replace listview with Infragistics.Win.UltraWinGrid problem arise how i show image for ultragrid. For Each LItem As ListViewItem In Me.dvParticipants.Items If CInt(LItem.SubItems(2).Text) = memid Then ...

How to call base abstract or interface from DAL into BLL?

How can i access abstract class in BLL ? i shouldn't see GenAccessor in BLL it must be private class GenAccessor . i should access Save method over _AccessorForSQL. ok? MY BLL cs: public class AccessorForSQL: GenoTip.DAL._AccessorForSQL { public bool Save(string Name, string SurName, string Adress) { ...

How do I change the name of a default .config file in a .net project

I have a .net Console Application called FooConsole. When I build and deploy it, I see that the App.config file from my project is deployed to FooConsole.exe.config. How can I deploy the .config file to Foo.config instead of FooConsole.exe.config and still have it read as the default .config file? UPDATE: I realize this sounds like an...

Problems with inheritance query view and one to many association in entity framework 4

Hi, I have situation in with I stucked and don't know way out. The problem is in my bigger model, but I have made small example which shows the same problem. I have 4 tables. I called them SuperParent, NamedParent, TypedParent and ParentType. NamedParent and TypedParent derives from superParent. TypedParent has one to many association ...

Asp.NET link: Page losing port number

In this asp.net page, there is a link that leads to another page in a certain subfolder, It has always worked. Recently, for technical reasons (irrelevant) , the port number had to be changed (80 to 81). Every link keeps working, but there is ONE that doesn't keep the port number no matter what. <asp:HyperLink runat="server" Text="link...

Parameterise Service start option in WiX installer

I have a ServiceInstall component in a WiX installer where I have a requirement to either start auto or demand depending on parameters passed into the MSI. So the Xml element in question is <ServiceInstall Vital="yes" Name="My Windows Service" Type="ownProcess" Account="[SERVICEUSERDOMAIN]\[SERVICEUSERNAME]" Display...

At which line in the following code should I commit my unit of work?

I have the following code which is in a transaction. I'm not sure where/when I should be commiting my unit of work. On purpose, I've not mentioned what type of Respoistory i'm using - eg. Linq-To-Sql, Entity Framework 4, NHibernate, etc. If someone knows where, can they please explain WHY they have said, where? (i'm trying to understan...

How and when to dynamically add columns to a Grid in WPF

Hi we are trying to add ColumnDefinition to a Grid in WPF dynamically from code behind. The question is: when do you do that? In the Usercontrol's Loaded event? We have a ListView that utilizes a DataTemplate which in turn uses the Grid. How do you access that Grid instance (the one inside a DataTemplate) from code behind? It does have ...

The maximum nametable character count quota (16384) has been exceeded while reading XML data

When I am trying to read a meta data I got this error any Idea here is My code WSHttpBinding binding = new WSHttpBinding(SecurityMode.None); binding.MaxReceivedMessageSize = Int32.MaxValue; // DPNote: This may actually be too big. see how it performs. binding.ReaderQuotas.MaxNameTableCharCount = 99999999; MetadataExchangeClientMode ex...

Is it possible to have a connection to LotusNotes and use it as a data source for a C# project?

Is it possible to have a connection to LotusNotes and use it as a data source for a C# project? We use LN for email/calendar. Management wants a web page that would interact with the calendar. I think this can all be done within Notes, but I would much rather do it in .NET. Some very specific functionality is wanted, some of whic...

Impact of Multiple .ToUpper()'ing

This is not a question of premature optimization per se. On the garbage collector and memory in general, what would hundreds of ToUpper() operations (many could be duplicated) do to a program, mainly in regard to the immutability of strings? ...

Associating an object with another object for GC clearup

Is there any way of associating an object instance (object A) with a second object (object B) in a generalised way, so that when B gets collected A becomes eligable for collection? The same behaviour that would happen if B had an instance variable pointing to A, but without explicitly changing the class definition of B, and being able to...

How do I manage application configuration in ASP.NET?

I am having difficulty with managing configuration of an ASP.Net application to deploy for different clients. The sheer volume of different settings which need twiddling takes up large amounts of time, and the current configuration methods are too complicated to enable us to push this responsibility out to support partners. Any suggesti...