Hello,
I am developing a .NET 3.5 Windows Forms app. I have two projects, the UI and a Library.
UI uses strongly typed settings that are stored, as usually, in the app.config file. I read them using UI.Properties.Settings class (generated by Visual Studio).
Library uses its own strongly typed Settings (the Settings.settings file that ...
I am trying to get started working with NHibernate. I went to download the latest production release at https://www.hibernate.org/6.html. The NHibernate download says development beside it, whereas other downloads say Production.
Is this what I want?
...
I have class like this:
public class object {
[Key]
int number;
String mystring;
OtherObject anotherobject;
}
WHen i sent this over RIA my silverlight application can see object.number and object.mystring, but not object.anotherobject!!!
What should i do?? Please help me.
...
Is there a good .Net component for drag/drop/resize drawing in 2D with connections (like Visio) ?
...
How to achieve low latency of WCF server in publish-subscribe scenario? Specifically, clients subscribe to data and receive updates, latency in question is between data changing and client receiving the change? CPU, memory, bandwidth requirements are not important and can be high.
Basics are obvious: binary serialization, named pipes, e...
I've got a WCF service hosted on my server. I've set up 2 seperate endpoints on the service, 1 wshttpbinding for communicating with .net 3.5 service references and 1 basichttpbinding for commuicating with all other web references.
When i reference the service as a service reference in a .net 3.5 project everything works fine. The servic...
I have a collection of custom "PlanarMember" objects exposing Boundary and Openings properties. The Boundary property is a custom "Polygon" class exposing vertices and segments, etc. The Openings is an IEnumerable basically describing openings in the larger polygon. I can guarantee that the openings do not overlap/intersect, the outer ...
I'm starting a new back office scheduling app for a doctor's office. .Net 3.5. I'm trying to save time and money. Can anyone recommend a suite of tools (Infragistics, etc) that are best of breed for a scheduling application? More advanced than that, if anyone has a codebase they are willing to share or sell the base of, I would be in...
Assume we have a single Windows form with a button called SimpleButton1. The following code results in an uncontrollable amount of memory usage. What am I doing incorrectly?
My understanding is that at every iteration of the for loop, GC cleans up any TestClass objects, and would take care of any associated events as well since there ar...
I have an interface with a CopyFrom() method that copies all properties from another object. I have a test that performs several VerifyGet() calls to ensure that each property was retrieved from the passed object, e.g.:
Thing target = new Thing();
IThing source = new Mock<IThing>();
target.CopyFrom(source.Object);
source.VerifyGet(t =...
I'm probably missing something very basic but I cannot figure out why I get a compilation error with a certain code and I don't get it in an almost identical code.
So I do get an error here:
//parent.GetChildren() returns a IEnumerable<IBase>
F1<T>(T parent, Func<string, T, string> func) where T: IBase
{
F1(parent.GetChildren(), ...
Hi,
I have a WCF error handler that uses the IErrorHandler interface. In the HandleError method of this error handler I write the error exception to the log. This all works fine. However, I have a requirement to also write the actual message that raised the exception to the log as well and this is not something passed into the HandleErr...
I am stumped.
I have a solution with a couple projects. Among them a little side project that doesn't do very much more than doing some XML reading / writing. It is a C# project and I am using XDocument / XElement from the System.Xml.Linq namespace. The project is targetting .NET 3.5 framework.
Now, when I try to run it, I get this stra...
Dear All,
I have a list of all words in the document. I want to index it and latter I want to retrieve a particular word and some near by words (10 words before the result and 10 words after the result).
What is the proper way of indexing and searching in Lucene.net?
Please reply me as soon as possible.
Thanking you,
Ashish
...
I want to draw one picture over another and dump it to HttpResponse. My code looks like this:
//file name points to a gif image
System.Drawing.Image originalImage = System.Drawing.Image.FromFile(filename);
System.Drawing.Image smallImage = System.Drawing.Image.FromFile(smallFilename);
using(Bitmap tempImage = new Bitmap(originalImage))...
Is there a way to remove an item from a listbox based on a string?
I have been playing around for a few minutes and here is what i have so far but its not working
foreach(string file in LB_upload.Items)
{
ftp.Upload(file);
int x = LB_upload.Items.IndexOf(file);
LB_upload.Items.RemoveAt(x);
}
I could just loop through each...
Is it possible to implementation Sphinx (full-text search) in .net - MSSQL Application.
if so , any help how to implement the same, a small description will help a lot.
...
I've created an Ajax enabled .NET Server control. This control inherits a Panel and implements the IScriptControl (in order to enable the Ajax component of the control).
It's pretty simple actually. It's essentially a Panel that has a style of overflow:scroll (it's a "scrollable Panel") and it remembers it's scroll position between asyn...
Hi I use the following code to connect to an orace database in Visual Studio 2008 and it is falling over with the exception of ServerVersion threw an invalid operation exception at line 3:
m_strConnectionString = Settings.GetMandatoryConfig("databases", "SourceDB");
m_strQueryTerminator = Settings.GetConfig("databases", "QueryTerminator...
I'm new to the world of UniObjects as I've been in .NET land since it debuted. After building a simple app to return the select list of a UniCommand statement I noticed that there are some major differences in how UniData and how UniObjects parses the UniCommand statments. From what I've found it looks like it is differences in the flavo...