.net

How to move to a location in a web browser component?

I have a .NET windows form page and a WebBrowser component inside. I load a page inside the web browser using the Navigate method as in: webBrowser1.Navigate("http://www.stackoverflow.com"); The pages length is longer than the browsers height, so the vertical scroll bar appears. Now I want to move the scrollbar down to a specific posi...

MVVM Light Toolkit throws an System.IO.FileLoadException

I'm running VS 2010 along with Expression Blend 4 beta. I created a MVVM Light project from the supplied templates and I get a System.IO.FileLoadException when I try to view the MainWindow.Xaml in VS 2010 designer window. The template already references System.Windows.Interactivity. Here are the details of the exception: System.IO.Fil...

Class design when working with dataset

If you have to retrieve data from a database and bring this dataset to the client, and then allow the user to manipulate the data in various ways before updating the database again, what is a good class design for this if the data tables will not have a 1:1 relationship with the class objects? Here are some I came up with: Just manipu...

dsoFramer, Find and replace does not highlight the searched string

I'm using DsoFramer to embed word document into winform, when using the Find and Replace window the searched strings are not highlighted, it seems that it is a paint issue. Is there someone who met the same problem, how can I avoid this. Regards. ...

Microsoft MyPhone - .NET access possible?

I've searched this as much as I can in the time available, but haven't turned anything up. Does anyone know if it is possible to access data backed up from a WinMo device to Microsoft's MyPhone service programatically, without having to restore all the data back to the device? I'm looking at a way of also keeping a local backup of cont...

Serialization of Entity Framework Models with .NET WCF Rest Service

I'm trying to put together a very simple REST-style interface for communicating with our partners. An example object in the API is a partner, which we'd like to have serialized like this: <partner> <id>ID</id> <name>NAME</name> </partner> This is fairly simply to achieve using the .NET 4.0 WCF REST template if we simply declar...

Use of RegularExpressionValidator in MS .Net Framework

Hi- I am trying to use the RegularExpressionValidator Control in Visual Studio to validate a textbox for email address expressions. Here's my code (very basic) Email:&nbsp; <input id="Text1" type="text" /><br /> <br /> <input id="Validate" type="button" value="Validate" runat="server" /><br /> <br /> <asp:Regular...

Is Infragistics.Excel V 10.1(Latest) compatible with Visual studio 2005 and .net clr 2.0?

Is Infragistics.Excel V 10.1(Latest) compatible with Visual studio 2005 and .net clr 2.0? Is there any service pack associated with Infragistics.Excel V 10.1 for fixes associated with excel macro? If so how to get that? Please help :-( ...

Why doesn't this Regex work in .NET?

I want a regex that will verify that a string begins with a letter followed by some letters, numbers, or underscores. According to my EditPadPro regex parser the following test should pass. But it does not. Regex.IsMatch("Class1_1", @"^\w[\w|\d|_]*$").ShouldBeTrue(); What am I missing? ...

How to replace a String twice with oldValues having same text within?

I am trying to take a block of text and scan it for specific text (name) and turn it into a URL, specifically: Block of text: Chairman Joe Smith has announced a new plan to decrease expenditures by outsourcing the planning of the new dining hall. Smith states the current project managers do not have excess time to commit to this new pr...

Is there a common practice how to make freeing memory for Garbage Collector easier in .NET?

I've been thinking if there's a way how to speed up freeing memory in .NET. I'm creating a game in .NET (only managed code) where no significant graphics is needed but still I would like to write it properly in order to not to lose performance for nothing. For example is it useful to assign null value to objects that are not longer need...

Addding Custom Controls to Toolbox in visual studio

Hi, I am trying to add a dll that contains some custom 3rd party conrtols and some in house user controls and am getting the following error - "The Assembly "MyASsembly.dll" could not be loaded. Check that any dependencies the file requires are installed" I am using Visual Studio 2003 and the 3rd part controls are C1. Does anyone kn...

Why is my GetNextChar() in my DecoderFallbackBuffer Specialization Repeatedly Getting Called?

I need to produce my own DecoderFallback and DecoderFallbackBuffer classes to implement some custom stream decoding. I have found that the stream reader making use of it is calling GetNextChar() repeatedly even when my specilizaed DecoderFallbackBuffer.Remaining property returns 0 to indicate that there no more characters to return. Th...

Nhibernate: building a List<string> through <component>

If I have a field in the db which stores a set of comma separated strings (says tags), how can I instruct fluent Nhibernate to pick it up at List<string>() e.g. Public IList<string> Tags {get; set;} Db field values: Mvc, .net, FNH ...

What are the requirments for ISupportInitialize code to be serialized in InitializeComponent? .Net

I need to add some code to the EndInit method of a PictureBox control but unfortunately its private and, from what I can gather, I can't shadow it and call base - at least not in VB.Net. What I can do is add a dummy property to my picture box class. The type of the dummy property is simply a class that just implements ISupportInitializ...

Delegate.CreateDelegate() and generics: Error binding to target method

I'm having problems creating a collection of delegate using reflection and generics. I'm trying to create a delegate collection from Ally methods, whose share a common method signature. public class Classy { public string FirstMethod<T1, T2>( string id, Func<T1, int, IEnumerable<T2>> del ); public string SecondMethod<T1, T2>( strin...

Property hiding and reflection (C#)

Declaring a property in a derived class that matches the name of a property in the base class "hides" it (unless it overrides it with the override keyword). Both the base and derived class properties will be returned by Type.GetProperties() if their types don't match. However, if their types do match, shockingly only the derived class'...

Load Assembly in New AppDomain without loading it in Parent AppDomain

I am attempting to load a dll into a console app and then unload it and delete the file completely. The problem I am having is that the act of loading the dll in its own AppDomain creates a reference in the Parent AppDomain thus not allowing me to destroy the dll file unless I totally shut down the program. Any thoughts on making this co...

What is the advantage of WSDualHttpBinding in WCF?

So far, no one can really offer any benefit of using dual channel over a client polling system except for the immediate notification you can get from the dual channel. Every other point says if you dont need immediate notice the dual binding provides negative value - anyone disagree with this? How much benefit would there be to using W...

possible to save pdf with .net from populated form by .fdf

I have a process that creates form data in the form of an .fdf file that then has a reference to the .pdf document that is its "parent". is it possible with any .NET process to save that .pdf file (populated with the data that came in from the .fdf)? I need this because I need to email the fully populated .pdf documents out. I've been...