.net

Where can i find a sample showing an Occasionally Connected Application in NET?

Where can i find a sample showing an Occasionally Connected Application in NET? Preferably in C# and SQL CE ...

can't generate SSDL from SQLC

I can't generate SSDL from SQLCe. --------------------------- Microsoft Visual Studio --------------------------- Could not find the appropriate DbProviderManifest to generate the SSDL. The supplied provider invariant name 'System.Data.SqlServerCe.3.5' is not valid. --------------------------- OK --------------------------- Is it...

Form inside a form, is that alright?

Whether we can have a form inside another form?. Is there any problem with that. ...

Winforms data binding: Can a TypeConverter be used instead of the Format/Parse events?

In a Winforms form, I want to provide visual cues to the user when an input field contains an invalid value. To that end, I want to bind the ForeColor property of a input field's label to the (boolean) IsPropertyValid property of the underlying model such that the label turns red when IsPropertyValid == false. What I currently have is a...

SmartUI developer trying to expand his horizons, can you explain what Dependancy Injection is?

Possible Duplicate: What is dependency injection? I've read the Wikipedia page. I've read an articulate explanation from a book from Apress. I still don't understand what it is, or why it's useful. StackOverflow seems to be the best place to ask this. :) Can an expert give me an easy to understand explanation? ...

Way to differentiate Click from DoubleClick

I have in a panel a GDI drawing with some objects. When the user clicks on one object, this object should be selected, if doubleClicks on it, a new pop-up (properties) window should open. Now, I overrided OnMouseClick => obj.Selected = Not obj.Selected OnMouseDoubleClick => (New Properties(obj)).ShowDialog() The problem is that when t...

Is it possible to "zoom" the text in a WPF RichTextBox?

I noticed the WinForms RichTextBox has a ZoomFactor property that I assume is exactly what I want--unfortunately this seems to be entirely missing on the WPF variant. Is there any way I can achieve the same functionality (increasing/decreasing the visible text size of the whole document without actually changing the underlying RTF)? Up...

Well documented open source project in .net

Hi, im seaching some good quality open source project in .net, according this topic http://stackoverflow.com/questions/143088/open-source-c-projects-that-have-high-code-quality i found intresting open source projects like "Sharp develop", its great because i can build & run it without problem, but i would like learn how it was developed...

Recommended Open Source C# algorithms & data structures libraries

What algorithms libraries can you recommend? The basic criteria are: Capabilities Object Oriented Design Performance Algorithms libraries I have used and can recommend: QuickGraph - for graph algorithms C5 - for data structures that have not been included in .NET framework NetTopologySuite - for spatial processing and algorithms ...

Changing the name of AutoGenerateSelectButton

Using C# & ASP.Net In my webpage am using gridview Code. In a GridView First Column is displaying as select option(name as "select") for each row, i want to change a name "Modify" instead of select. How to change the name. ...

Seeing AssemblyConfigurationAttribute value in Windows Explorer

When viewing properties for a .NET assembly via Windows Explorer a set of values are shown in a section titled Other version information (on the Version tab). The value set for the AssemblyConfigurationAttribute is not among these values. Is there any way to find out this value (other than writing a small .NET application yourself)? ...

any special reference needed for c# 4.0 Parallel.For ?

I am following this article: http://blogs.msdn.com/b/csharpfaq/archive/2010/06/01/parallel-programming-in-net-framework-4-getting-started.aspx and in my console app Parallel namespace is visible, but "Parallel.For" fails compilation with "type of namespace For does not exist in namespace 'Parallel'". I've scoured the net, but not seei...

Does an event need to have at least one handler?

Why event needs to have at least one handler? I created custom event for my Control and somewhere inside of code of my control, I call this event: this.MyCustomEvent(this, someArgs); it throws a NullReferenceException if there is no handler subscribed to it. When I added a single handler in control's constructor, everything works...

What is a simple way to log all items in a list using log4net (or other logging frameworks)?

I usually have methods returning IList. I need to log the result coming back in this list. Is there a better way than looping on the items inside the list and printing them one by one like this? foreach(string productName in productsNames) { prodsNames.Append(productName + " "); } Logger.Debug("L...

How to embed an XML file and deserialize from it in C#?

Is there any way in C# to embed an XML file where I serialized some classes in my project, and then open it and deserialize my classes from it? ...

Label does not change value inside a while loop

private void button1_Click(object sender, RoutedEventArgs e) { int i = 0; while (i < 500) { label1.Content = i.ToString(); // System.Threading.Thread.Sleep(2000); ++i; } } I am trying to update the content of a Label each time a variable is incremented, but what happens...

Is c# a suitable language for Chatterbot development which involve in Natural Language processing????

I am doing my final year project and at the beginning of developing a chatter-bot mostly based on ALICE techniques.I have done research comparing two main chatter-bot systems ELIZA and ALICE and selected ALICE method of developing the chatter-bot. The knowledge base will be developed using AIML and the searching algorithms will be used...

What are some good questions to ask when beginning a new ASP.NET project?

I am beginning a new ASP.NET project soon, and although I have worked fairly extensively on ASP.NET projects in the past, I have never started one from scratch, or been solely responsible for the entire thing (Aside from personal projects). What are some good questions or resources that would help tease out need to know info durring the ...

Is there any book that teaches C# & Java simultaneously?

Hello, I know little bit of both. Both these languages beautiful and are similar in many things. I'm going to teach OOP. I thought of C# as language but then I felt why not teach both C# & Java simultaneously? Explain the concept then explain how its done in both these languages and then explain and glitches they need to know. I would l...

Sample problems to improve knowledge of data structures

I have seen majority of web programmers (writing some script with sql to make CRUD applicationg) do not know how to build a business logic in relatively complex situations like, using Stack, or Queue or write recursive algorithm. These programmers have habit of simply searching code on google and paste it, but dont understand which data ...