.net

Is it possible for the .NET WebBrowser control to use IE9?

I realise it's an early release and unstable. I wouldn't dream of swapping out the default webbrowser control for IE9 in any other project, but in this case I specifically need IE9 to compare alongside other versions. I'd like to have the .NET WebBrowser control use IE9 instead of the default version of IE on the machine. I have full co...

Convert one file into ten by splitting the data

I have a file that has > 10 rows. I want to create 9 files that each contains equal number or rows, with the 10th file containing that equal number plus any left over. I currently get the data from the main file by the following: Dim sData As String Using sr As New StreamReader(vsFilePath) sData = sr.ReadToEnd End Using Dim oData...

How do you convert a file in memory to a byte array?

I am using IonicZip to compress video files and store in a blob field. I have the zip file created just need to convert it to a byte array. How is this done without writing to the harddrive? Thanks, Dave ...

Powerpoint chart created in Aspose is not very clear.

Hi, I am using Aspose for reading a powerpoint as a tempate and creating a new powerpoint as a report. In the template power point I read the chart and populate the data for the chart. But in the report powerpoint, thechart is fuzzy and is not very clear. But when I edit the chart and save it( I donot change any values or properties )...

Why does Visual Studio use backing fields for WCF Service References?

As many of you will be aware, I can use the DataContract attribute to mark a class for serialization into XML in a WCF service. For example, I can create a DataContract thus: < DataContract() > Public Class fooClass < Datamember() > Public fooString as String End Class When I add a service reference to the code that wi...

Making a DLL COM accessible

I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did: I Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module. I opened the project properties and went to "Assembly Informat...

Get the RadioButton Value on click using jquery and disabling, enabling text boxes accordingly, Asp.net mvc

I have two radio button input type = radio name = "Level" value = "P" input type = radio name = "Level" value = "S" I have two textboxes: input type = "text" name = "inpu11" disabled = "disabled" input type = "text" name = "inpu12" disabled = "disabled" My question is, How Can I identify to which button I've selected ? How can I...

Problem with stored procedure in LINQ-to-SQL

Hi all, I'm having a never-ending problem with trying to call a stored procedure from a controller - if I could I'd add a bounty to this as it's taken way too much time already and I don't know what else to do (but I don't have the points). Based on my research it seems it's a known bug, but not of the workarounds have worked for me so I...

How can you read the count of an MSMQ on another machine?

My program is successfully using .NET's MessageQueue class to read from an MSMQ. The queue is user configurable, and is sometimes on the local machine, and sometimes on a remote machine. The user can specify the remote machine either by name or IP address, and the queue name (and I'm only using "Private" queues). I want to display to ...

How closely is Entity Framework tied to WCF RIA Services?

I'm trying to build a simple proof-of-concept "business application" in Silverlight and I keep running into a wall in trying to get data in and out of the database. I'm currently trying to learn WCF RIA Services, but I'm stuck because I can't get Entity Framework to work with existing tables in my database (they don't show up in the mod...

INotifyPropertyChanged and Auto-Properties

Is there a way to use INotifyPropertyChanged with auto-properties? Maybe an attribute or something other, not obvious to me. public string Demo{ get;set; } For me, auto-properties would be an extremely practicall thing, but almost always, I have to raise the PropertyChanged-event if the property value has been changed and without ...

CEP Engine for .NET

Are there any CEP Engine/Platforms that works friendly with .Net (ie, it has .Net API), other than Nesper and the Microsoft StreamInsight ? ...

Sample TCP Client/Server Application

Hi I need a sample application of the following scenario 1) IOCP TCP Server capable of accepting request 2) client make request and send receive operation 3) SERVER close the connection 4) client open another socket for connection and do send receive operation With this example i want to see how a client can open a connection and after ...

Using interrelated listboxes to represent available combinations in Windows Form/Control

I'm trying to provide a simple way for our users to select a desired shipment method (ie: UPS ground) without having to know it's corresponding ShipmentMethodID. There are three key aspects of every shipmentmethod that uniquely identify it: Courier (ie: UPS, FedEx, OurTruck, To Be Determined) Service (ie: Ground, 2Day10am, To Be Dete...

ASP.NET MVC Routing for Master / Detail Views with "Detail Children"

I have the basic Master / Detail Views working great with the default ASP.NET MVC Route; however I would like to build some URLs like this: /Class/Details/5 -- General Detail view [Working] What I'm not sure about (and I'm not tied to this URL format, just something roughly equalivent.) /Class/5/Details/Logs -- Detail View with Logs ...

Why put standard dialogs on a form?

I have some legacy code in C#, .Net 2.0 where someone dragged OpenFileDialog and SaveFileDialaog from the toolbox onto the form. This results in the open and save dialogs being instantiated when their parent dialog is created and remaining until the parent dialog is closed. The open/save forms are really only used in one place each for a...

Error When Instantiating an Object

I am in the middle of (trying) to create a Class Library available for use in VB6/VBA. With some assistance received here I have now done the following: Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module. Learned I needed this wonderful thing called an "Interface"... Made one of those:) I o...

.NET Parent/Child XML Deserialization Help

Hi, I have a XML doc with parent/child references that I want to deserialize into .NET objects but am unable to do so. Below is the XML snippet: <family> <parents> <parent id="1" name="Sam" /> <parent id="2" name="Beth" /> <parent id="3" name="Harry" /> </parents> <children> <child id="100" name="Tom"> <paren...

Can I run .NET 4.0 web applications on Windows Server 2003?

Does .NET 4.0 work in windows server 2003 and iis 6? ...

.Net optimizations for absolute, no-holds bar fastest running code possible?

First off, code-readability goes out the window for this question. I'm all for code readability but speed comes first here. When your code absolutely, without a doubt, no exceptions has to run as fast as possible in the .Net framework, what are some optimizations that can be done? I know there are flags for the compiler to optimize it a...