DataSet Editor is missing from the “Open With” dialog in VS2008
Is there a way to get this option back? it's defaulting to an xml editor. It would be nice to have dataset designer back so that I can edit the typed dataset. Thanks in advance. ...
Is there a way to get this option back? it's defaulting to an xml editor. It would be nice to have dataset designer back so that I can edit the typed dataset. Thanks in advance. ...
Given the following code: Dim stemmer As New Lucene.Net.Analysis.PorterStemmer() Response.Write(stemmer.Stem("mattress table") & "<br />") // Outputs: mattress t Response.Write(stemmer.Stem("mattress") & "<br />") // Outputs: mattress Response.Write(stemmer.Stem("table") & "<br />") // Outputs: tabl Could someone explain why the Port...
I am running into the same exact problem as asked in this question: Entity Framework, Foreign Keys, and EntityKeys where my Foreign ID key values are being reverted back to 0 before I am able to send the information to the database. This results in the error: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Sel...
I have an application that requires at least Windows XP SP3. How can I go about checking for it either in the application itself, or in the MSI, and automating the installation? ...
Hello: I'm trying to port a .NET application from Windows to Mono, but certain code that was working on Windows is no longer working (as expected) on mono: WebClient client = new WebClient (); Console.WriteLine (client.DownloadString("http://www.maxima.fm/51Chart/")); it seems to detect correctly the encoding as UTF-8 (and manually s...
First of all, my knowledge of C++ is effectively zero. I'm a .NET developer but even my interop experience is minimal. I have found an example of a control written in C++/CLI that grabs and displays a webcam feed using DirectShow. I'd like to take this example and utilize it from my WPF application. I've tried (and butchered) several d...
My objective is to allow users of my app to bringup what I'm calling my debug console by pressing CTRL + F11 on their keyboard. Simply put, I need to call a ToggleDebug(); method, which will enable my debug tracing code and display the window. I'd like for my application to do this at any point when CTRL + F11 is pressed, regardless of...
I'm trying to construct an X509Certificate2 from a PKCS#12 blob in a byte array and getting a rather puzzling error. This code is running in a desktop application with administrator rights on Windows XP. The stack trace is as follows, but I got lost trying to troubleshoot because _LoadCertFromBlob is marked [MethodImpl(MethodImplOption...
try { try { throw new Exception("From Try"); } catch { throw new Exception("From Catch"); } finally { throw new Exception("From Finally"); } } catch (Exception ex) { Console.WriteLine(ex.Message); } The above code's output is: From Finally. Why it's not From Catch? -or- ...
Given the following code from a Microsoft example: public class EngineMeasurementCollection : Collection<EngineMeasurement> { public EngineMeasurementCollection() { Add(new EngineMeasurement { Speed = 1000, Torque = 100, Power = 20 }); Add(new EngineMeasurement { Speed = 2000, Torque = 160, Power = 60 }); ...
Is there a way to get number of attached event handlers to event? The problem is that somewhere in code it continues to attach handlers to an event, how can this be solved? ...
This isn't like new versions where newer versions will still have backwards compatibility. What I mean is something like, when the designers of C#, .NET, CLR realize that they made a mistake or they overlooked something that could be hugely beneficial but now they couldn't pursue it because of backwards compatibility, they could branch ...
I noticed today that if you declare a nullable DateTime object you don't get the same set of functions as you do when you have a standard DateTime object. For example: DateTime? nullableDT = DateTime.Now; DateTime regularDT = DateTime.Now; in the code above nullableDT cannot use any of the following functions: ToFileTime ToFileTim...
This Question has been languishing un-answered on the MSChart forum for over a year. I'm continually getting an overflow exception on a chart. I'm setting up my chart as follows: InstrChart.Legends.Clear(); dataArea = InstrChart.ChartAreas.Add("Instr1"); dataArea.AxisX.MajorGrid.Enabled = false; dataArea.AxisY.MajorGrid.Enabled = fa...
In my desktop-based WPF-application I want to implement a toolbar with key actions (add, update, delete etc.), something like you can see in any web-interface mail-service. In order to make it I have a large PNG-image with all possible icons (regular, active, disabled, etc.) So, my question is how to show not the whole image, but only ...
I have a application that clients connect to via socket. The application is multi threaded, does lots of number crunching, and consumes a huge ammount of memory. (1.5 - 2 GB) Occasionally it throws this error in a seemingly simple area of code. Attempted to read or write protected memory. This is often an indication that other memory i...
.NET 4.0 don't use medium trust it got a different kind of security, does that mean it's ok to use like NHibernate on hostings that support .NET 4.0? I mean straight out the gate with it no modifications with proxy. ...
I have the following classes defined: public interface IShapeView { void DoSomethingWithShape(Shape shape); } public interface IShapeView<T> where T : Shape { void DoSomethingWithShape(T shape); } public class CircleView : IShapeView<Circle>, IShapeView { public void DoSomethingWithShape(Circle shape) { MessageB...
I want to find all the method calls in one class which are made on another class. For example: If class1 calls class2.Foo() but not class2.Bar() then I want to know about it. Almost like an analysis of coupling. Is this possible with reflection? ...
I'm in the job of writing a compiler which compiles a project-specific DSL (with the features of a basic scripting language) into an project-specific assembler language. The platform is written in C#, so a native .NET-Compiler would be the perfect solution. I already did a lot of research and it seems ANTLR would fit in the job of build...