.net

Creating an Excel file using .NET (C#) - Problems with columns headers!

Hello, I want to create & fill a .xls file using ADO.NET or LINQ, but I do not want to have the columns names in the first row. I just want to insert rows starting in row no. 1. I know I have to insert colums first, but... is there a way to 'hide' those columns headers? The problem is that, in first row of my spreadsheet, I must have ...

project plan scheduling...

I am looking for some algorithm/library to get functionality like microsoft project caters for scheduling tasks dates as if we change any task date then its parent, predecessors and successors dates get effected. is there any help i can get... in any way.. Thanks, ...

Should I use Base64 encoding or byte[] for returning binary data in .NET web service

I have a simple question. Should I return a byte-array or simply base64 encode my binary data, when exposing it through a web service in .NET? Is there any pros/cons with either method, which is mostly supported etc. ...

Creating and debugging a Sharepoint Services 3.0 WebPart

I am trying to create a WebPart for my locally installed Sharepoint Services 3.0 and I've followed various tips and guides to get it all working. However somewhere on the road I must have missed something or this is just not "in all the books". When creating an empty Sharepoint WebPart and just hitting F5 to debug it, I get the followin...

Multithreading or task parallel library

I have an application which performs 30 independent tasks simultaneously using multithreading, each task retrieves data over http, performs a calculation and returns a result to the ui thread. Can I use TPL to perform the same tasks? Does TPL create 30 new threads and spread them over all the available cores, or does it just split the ...

Changing DBML, how to change SQL database?

Hi all, A have an app with that uses an SQL database. The application is already released, but now I'm working on an update. In the update I've added an extra column in a table of my database. I've create the database from my DMBL using DataContext.CreateDatabase() (not the other way around, as I found out to be the more common scenari...

Usage of Biztalk SAP Adapter without Biztalk Server to connect .NET and SAP

Is it possible to use the Biztalk adapter pack whithout a Biztalk installation (Biztalk license is available)? I want to use the Biztalk Adapter for SAP RFC calls within a .NET Application (as a replacement of the SAP Connector for .NET, which is unfortunately no longer maintened by SAP and I don't can use third party products like "Er...

Using empty row as default in a ComboBox with Style "DropDownList"?

Hi board I am trying to write a method, that takes a ComboBox, a DataTable and a TextBox as arguments. The purpose of it is to filter the members displayed in the ComboBox according to the TextBox.Text. The DataTable contains the entire list of possible entries that will then be filtered. For filtering, I create a DataView of the DataTa...

How to add a Global runtime service to System.ComponentModel.Container ?

Hi ! Suppose the .NET Component Model. The Container class has GetService(Type service); But I'm asking myself, how can I register Global Services accessible to all added Components ? ...

[.NET] Where does Debug.Write() output to?

Hi folks: I didn't see any output in console or VS output panel from Debug.Write("WriteStatements() was reached") Where does the output go to? Thanks. ...

Managed and unmanaged code in .NET

What is difference between managed code and unmanaged code in terms of the .NET framework? ...

How to know the base type of an inherited generic type ?

Consider this code : class MyClass<T> { } class AnotherClass : MyClass<String> { } When I look at the BaseType property of the AnotherType Type, it says that it is Object, where I expected to see the generic MyClass type. Is there a way to know that AnotherClass inherits MyClass ? EDIT : The problem was that the MyClass type was ac...

How can I detect which callback from an unmanaged dll causes a protected memory exception?

I get a protected memory exception, but how can I know which call caused it, and why the callback function has moved? All the calls to unmanaged code are done in the same class as the callback functions, so I suppose that the addresses should not change, or am I totally wrong here? ...

Using the Callback Method on a View in ASP.NET MVC

I have a master page with that code: public string CallbackMethod; protected void Page_Load(object sender, EventArgs e) { CallbackMethod = Page.ClientScript.GetCallbackEventReference(this, "message", "Dodanie", "context", true); } /other code here/ then, in the View (which is bas...

When the property get and set method has been called?

i have the following property declaration Public Property IsAreaSelected() As Integer Get Return If(ViewState("IsAreaSelected") Is Nothing, 0, Cint(ViewState("IsAreaSelected"))) End Get Set(ByVal value As Integer) ViewState("IsAreaSelected") = value End Set End Property i wa...

.Net SDK or samples for OpenSRS API?

Hi, OpenSRS from Tucows has a reseller API (or rather several APIs) to allow you to register domains, manage DNS settings etc. They have API Toolkits for PHP and Ruby, but does anyone know of a .Net SDK, or have any sample code that they can share, as a basic starting point for the API? Many thanks, Tim ...

.net rtsp capture stream to disk

Hi I have a camera that sends h264 mpeg video over rtsp. I am looking for a solution in .NET to save this stream to disk as either a movie file or in some format I can later 'restream'. Have so far, without success, attempted to use vlclibnet for this but am unable to reliabely get it captured to a file. Any suggestions? Thanks ...

jni4net - how to set the absolute path to jni4net.j-0.7.1.0.jar

Guys, help me... I use jni4net in my WCF service. in the ctor of the service I try to create BridgeSetup object. var bridgeSetup = new BridgeSetup(false); bridgeSetup.AddAllJarsClassPath("."); Bridge.CreateJVM(bridgeSetup); As I understand in this moment jni4ne tryes to generate jni4net.j-0.7.1.0.dll from jni...

Warn user of .NET Framework requirements

So I have an app (tool) that uses .NET 3.0. When run on a machine that only has .NET 2.0 (like the default Server 2008 R2 install) it crashes miserably. What I've seen so far is that people are using a shunt that will first check the .NET version. Is there a way to build it or add some manifest somehow so that the user is warned of this...

How to set datetimepicker value to only date in (.NET)

Hi I have DateTimePicker on my form and I set a value to the custom format property to "dd/MM/yyyy" ant when I run this code: MessageBox.Show(dateTimePicker1.Value.ToString()); I get this value : "3/26/2010 1:26 PM". How I can remove the time part from value. I know we can use this method dateTimePicker1.Value.ToShortDateString(); ...