.net

PDF Converter for use from .net application

We have a project where we need to convert the following file types to PDF: application/msword .doc application/rtf .rtf application/vnd.ms-excel .xls application/vnd.ms-powerpoint .ppt application/vnd.oasis.opendocument.presentation .odp application/vnd.oasis.opendocument.spreadsheet .ods application/vnd.oasis.opendocument...

Get location and size of all open windows using .NET (C#)

Is there a way to detect and store the location and size of all open windows, as well as their state (Minimized, Maximized etc) I've never developed anything that gets information from the actual operating system in this way. Does it require a call to a Windows API and involve unmanaged code? If this is not clear please comment and I w...

IE8 problem using flash inside a ModalPopupExtender (AJAX)

Hi I’m using flash charts from http://www.maani.us/xml_charts/ in an ASPX page. I Want to display a simple chart inside a Modal Popup Extender (From AJAX). Actualy Works fine at Firefox, but in IE 8 isn’t it perfect when I put it inside the Modal Popup Extender. In IE I can't see the flash animation. Do you have any idea? Page Code: ...

Help with C# programming Reuters Triarch, specifically SSLConfig and SSLInsert

Hi, I'm having terrible trouble getting SSLConfig/SSLInsert (V1.2 of both) to connect at all, or even give me an error message if it can't. (There is a whole production application already working fine with SSLInsert, etc, but I need to generalise it a little and appear to have gone backwards.) Does anyone have experience of programmi...

Why casting to object when comparing to null ?

While browsing the MSDN documentations on Equals overrides, one point grabbed my attention. On the examples of this specific page, some null checks are made, and the objects are casted to the System.Object type when doing the comparison : public override bool Equals(System.Object obj) { // If parameter is null return false. if ...

Connecting to Informix using .NET

Server Information Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001 Server: Informix Dynamic Server Version 7.31.UD3 Information: Link: http://stackoverflow.com/questions/192477/connecting-to-informix-database-from-net Article: http://www.ibm.com/developerworks/db2/library/techarticle/dm-0510durity/ I am running Vi...

Help with InternetOpenUrl and InternetReadFile in <WinInet.h> API

I am trying to simply access a page using the WinInet APIs. Once I access it, I'd like to be able to read the contents into a string. I've already initialized the root node. Here's what I got so far: HINTERNET hChildURL = InternetOpenUrl(hInternetRoot, LPCTSTR(CString("http://www.google.com/")), ...

Mono Compiler as a Service (MCS)

I'd like to consume Mono's compiler as a service from my regular .NET 3.5 application. I've downloaded the latest bits (2.6.7), created a simple console application in Visual Studio and referenced the Mono.CSharp dll. Then, in my console app (straight out of a sample online): Evaluator.Run("using System; using System.Linq;"); ...

.Net Treeview Event Handling

I am in the process of migrating a VB6 app to .Net and we must provide like-for-like functionality at all times. In one form is a treeview with checkboxes that has three levels of nodes. The first level serves only to group the next level down and they are not checkable. The second level nodes are checkable by the user and when checked o...

X509 Certificate for securing http handler - what is secure enough'?

We have a C# .NET http handler that we are trying to secure by using X509 certificates that are shared between our structure servers and a customer's work stations. However, there is relatively little documentation on how to handle 509 cert authentication on the code level. The client's cert will be attached to the web request, and the...

How can I mock an internal interface using NMock2?

If I try this, I just get an exception: System.TypeLoadException : Access is denied: 'Namespace.IInternalInterface'. Making the interface public is not an acceptable solution. I don't want to change the visiblity of my API in order to test it. ...

How Can i convert string to Date Format

Hi my string is as follows string s ="20000101"; I would like to convert to Date format. How can i ...

Adding a help window to an application - C#

Hello, I've already searched on SO to see if there has been a similar question but I haven't found anything so far. I'm looking to add a help window to my application, similar to the ones found in many other applications (Example below): As you can see the help window allows you to give plenty of instructions for particular function...

Delayed Job for ASP.NET to running async code?

Is there a plugin or other to mimic Rails Delayed Job in ASP.NET? What's the best way to run async code or jobs in an ASP.NET application? ...

Select top 5 from a merged list (MVC)

I have two lists that have been merged. After a order by linq statement, I would like to select the top 5 from that complete list. I was thinking about using the linq statement to pick the top 5 from the list. var ListSort = from list in NewList orderby list.EntryDate select list;//Tried to select the top 5 from here Any other sug...

Telnet, Emulator ...and other issues

I was assigned to maintain a .NET application that use .NET emulator to connect to legacy mainframe system. The application uses library called PowerTCP emulator. But I see people use Putty to connect. I hear lots of terms that I cannot make sense off, because I have no knowledge at all about mainframe / emulator / telnet world. Like I h...

Strongly typed datasets and schema changes

Hello, I have a project which uses strongly typed datasets. Let's assume I want to change the database schema of the database used by this application. I have a table named Country and I want to add a new column named "IsADemocracy" (that's an example) of the SQL Server datatype BIT. Now, how do I update the strongly typed dataset so ...

How to change the timezone setting of Windows2k8 with .net

I have tried to change the timezone of my system with c# code for a few days now and nothing I'm trying is making much sense or working at all. I started out trying to use the PInvoke syntax for SetTimeZoneInformation that I've seen on other questions here. [DllImport("kernel32.dll", CharSet = CharSet.Auto)] private static extern bool ...

Using types in a T4 tempate that exist in the same project as the template

I'm working on my first T4 code generation tool to add some Stored Procedure helper code to my project. I've created custom types (e.g. StoredProcedure and StoredProcedureParameter to help with my code generation and have included the assembly and namespace references in my code: <#@ template debug="false" hostspecific="false" language...

Third party controls for a radio button list in WinForms?

Are there any controls that can dynamically create a group of radio buttons from a list of objects? Something similar to the CheckedBoxList control, but with mutually exclusive selection. This question points out this control doesn't exist natively for WinForms but are there any third party controls that do this? ...