.net

Is there any console "graphics" library for .Net?

My basic goal here is writing a .NET remake of Kingdom of Kroz. For those not familiar with the game: http://www.indiefaqs.com/index.php/Kingdom_of_Kroz http://www.youtube.com/watch?v=cHwlNAFXpIw Originally it was supposed to be a quick distraction project to give me a break from all the generic enterprise WCF/WF/LINQ2SQL/etc work pro...

How to update .dbf file from .NET application

I want to update a .dbf file from my .net application. I was able to read the .dbf file into a grid but not able to update the .dbf file from my .net application. I have used following code to read the .dbf file. Reading is okay. But, not able to update .dbf file. using System; using System.Collections.Generic; using System.Component...

download multiple files as zip in .net

i have a file list with check box for each files , if the user checks many files and click download i have to zip all those files and download it... like in mails attachments.. i have used the code mention in this post for single file download pls help how to download multiple files as zip.. ...

Does MSDeploy require .net 4?

Does MSDeploy require .net 4? http://www.iis.net/download/webdeploy ...

Rebuild existing webapp : .NET or PHP

We are looking at doing a 'version 2' of our web application that is currently written in PHP with a MySQL database. Since it has been in a constant state of development for about 5 years with numerous developers, over time you look at it as a whole and think 'we could do this so much better if we started again'. So we are looking at do...

Generating JSON input objects for .Net WebServices

I am testing my web services using the Http Resource Test plugin. For that I need JSON stubs for my web methods. Is there any way I can automatically generate them. For primitive types I can do some regex based replacements in notepad++ on the function signature. But when custom types are being passed as arguments, this requires alot of ...

Error occured when debugging the programme i copied as a sample from others

Hi guys, You can call me marcus. I'm currently studying in a polytechnic in singapore and i'm doing my final year project. And my task is to create a application which is able to connect to my own server. Well, before i start off with anything, i did my research and came across a website, Building Your First Windows Phone App with Silver...

ArgumentOutOfRangeException Writing File with BinaryWriter

I have function on client side that get file, make a byte array from it and send that array to the web service on server! This is the function on client side: Public Function GetFile(ByVal filename As String) As Byte() Dim binReader As New BinaryReader(File.Open(filename, FileMode.Open)) binReader.BaseStream.Position = 0 Dim...

C# Word Interop

I have an application in which I need to be able to print an existing Word 2007 format document. Looking around I can't see any free components that will facilitate this without the need for Word to be installed. Does anyone know of any? Assuming that I have to have Word installed to print the docx file, I was going to use the COM inte...

Are global variables bad?

I have developed certain financial and accounting packages on the basis of global variable which is I want to share. Here I present the small example of global variable which is communicated between multiple forms. Form1 :- Component require :- 1. ComboBox 2. Button using System; using System.Collections.Generic; using System.Com...

gzipstream.copyto alternate and easy way in .net 3.5

hi in this code in .net 4 i used copyto method of gzipstream System.IO.MemoryStream ms = new System.IO.MemoryStream(byteArray); GZipStream DecompressOut = new GZipStream(ms, System.IO.Compression.CompressionMode.Decompress); MemoryStream outmem = new MemoryStream(); DecompressOut.copyto(outmem); ...

How to stop Socket.BeginRecieve()

Ok My chat application when successfully set up, both server and clients start their Socket .beginrecieve() operation and listens throughout thier runtime. private void Accept(IAsyncResult iar) { Socket winsock = (Socket)iar.AsyncState; g_server_conn = winsock.EndAccept(iar); //Function that exchanges...

Microsoft Analysis Services Translations

Dear StackOverflow gurus, I have the following scenario: From .NET (v3.5, c#) I connect to an OLAP Cube using the Microsoft.AnalysisServices namespace and objects in order to manage dinamycally the translations of dimensions, measures, attributes,etc. A sample code updating an attribute caption translation looks like this: foreach (D...

facebook and twitter in .net

can any one give the demo how to implement facebook like box( single sign - on) and twitter's tweets for a web application using .net(c#) ...

How update xml file settings

I have my own xml settings file in winform app. It is installed on some location. And I need to update this file (add some new atributes/settings) without loosing old settings. Example old xml setting: <settings> <someSetting>Old Value</someSetting> <settings> Example new xml setting file: <settings> <someSetting>default value...

Progress update in Parallel.For() loops

As you can guess the index of the Parallel.For() loop jumps from one value to the other. How can I estimate the amount of the work done? Thanks. ...

Change webservice reference in dotnet 1.1 application

Hello All Few years ago I had create a web service in dot-net 1.1 and deployed it in many application which are developed in dot-net 1.1 and 2.0. Now i want to convert this web service in dot-net 2.0 with some changes. My problem is i can't changed reference and build applications again where i had deployed this web service. Please tell...

Dialog stops the execution of the code,is any way to stop it in c# ?

I am displaying dialog on the main form, now one for loop is working behind but when that dialog will displayed code execution will be stopped, but I don't want to let stop the execution of the code, is any other any way to do that ? EDIT: I am using now thread to do that and my code is like Thread t; private void StartParsing...

Introductory learning resources for .Net globalisation/localisation

Hi, I am trying to find some good articles for .Net developers on how to ensure Winforms apps work correctly for non-English users. Articles explaining potential pitfalls and advice on how to test for these pitfalls would be perfect - but I haven't yet found any yet. Areas I am most interest in are: decimal amounts, Dates and setting ...

.NET Windows 7 Deployment: Error on adding event viewer entry

My WPF application works fine on other machines. However when i deployed it on a 64-bit Win7 box it crashed when attempting to add an entry in the eventviewer. I could retrieve the following error details. Any ideas? Please help. Log Name: Application Source: Application Error Date: 10/21/2010 2:47:39 PM Event ID: ...