Answer Questions
SA12 System.IO.Compression not as good as compressed folder
I'm getting much better compression when I make a compressed folder (Windows XP) than I am using DeflateStream or GZipStream. I thought these were the same algorithms used in PKZIP and for compressing folders. Why such bad compression DeflateStream: 3544Kb -> 1261Kb GZipStream: 3544Kb -> 1261Kb Windows XP: 3544Kb -> 804Kb So how can I get the same compression ratio as Windows XP Thanks, Jeremy ...Show All
Tony Richards DataGridView able to display different tables from .mdb?
Hi, What I need to do is probably extremely simple to do but it seems I just can't find out how. I want to: -Display a form with a datagridview on it. -A button with an OpenFileDialog, which will be used to choose the .mdb file to load. -A combobox showing all the tables available in the .mdb -I want the datagridview to show the table selected the in the combobox...<---That's where I'm stuck... How the heck is it possible to do tha ...Show All
FredrikRN Server and client configuration with remoting
I'm getting an error stating that... System.Runtime.Serialization.SerializationException was unhandled Message="The input stream is not a valid binary format. The starting contents (in bytes) are: 53-65-72-76-65-72-20-65-6E-63-6F-75-6E-74-65-72-65 ..." I had the application working when I only have one wellknow object exposed on the server side of things as such <configuration> <system.runtime.remoting> <application& ...Show All
Michael Mullen Concurrency violation while row exists
Hey Guys, I'm having a weird problem. I wrote some simple application in c# which shows the data of a acces database in a datagridview. On the RowChanged and RowDeleted events of the dataset i do a dataAdapter.update(dataset). It works all fine, i can add new rows, change and delete excisting rows. All no problem. The problem starts when i add a new row and then try to delete that newly added row. I know that it executes the insert statement and ...Show All
Nuno Alves USB Programming and Communicating
I want to create communication between USB to USB, we put two computer side by side and connect it via USB cable. Now I want to create an application to manage the file transfer. Is there any pure using USB (not like virtual COM port). If we using virtual COM port, we must setup manually, I want my application do that setup. Then I look the MSDN and it said that virtual COM port can be programmed, I do that but always failed and said that the po ...Show All
RLG monitor
Hi, I would like to write a little program which monitors a specified Service, and if it isn't running, starts it how is this possible please Thanks great. Thank you Hi No, all you need to do is add a reference to the System.ServiceProcess.dll and then use the code that I posted. To add a reference, right click on your project within the Solution Explorer and select ...Show All
ion lucian Exception comments best practice, use of unique identifiers ?
While developping libraries, I naturally end-up with a lot of exception dispersed amoung the code (I am speaking of potential exceptions, the common case being if incorrect-args then exception ). Within a single class, I like to have a unique string prefix for all exception comment, i.e. a typical exception looks like throw new FooException("#E001 Hello World") . Such convention is quite usefull to identify a problem and ease the communication ...Show All
podi Installing .. advpack.dll
Not sure if this is where to put this question but I can't find anything else on these forums (shrug ). I'm trying to install the 2.0 redistribution package and get an error with c:\windows\system32\advpack.dll when trying to install. Any suggestions The reason I'm looking to install it is because I have an application that requires it. Maybe I actually need something different Ugh. lol Thank yo ...Show All
doctus A Question on GC
I have a MDI program in which user can open different document and edit it. After several user use it, they report that it becomes more and more slow. So I watch the memory usage of it carefully and found a problem : it seems the memory is never released after a document is closed. I watch the memory cost in Tesk Manager, and found that whenever a document is opened, the memory cost increases. However, after the document is closed, the memory co ...Show All
Erfan ASPNET user not found
Hi, Uses: Windows 2000 Server, Windows XP, Sql Server, ASP.NET 1.0, Visual Studio 2003, .NET Framework 1.1; I've an ASP.NET application, and thought of deploying it in a Windows 2000 Server installed computer which also takes the role as Additional Domain Controller. I've installed .NET Framework 1.1 onto it as well, besides have run the ASP.NET application exposing the SQL Server's "SA" password in the Connection String which is ...Show All
seeIT DataSet.AcceptChanges() doesn't accept all the changes!
Hi, When I do a dataset.AcceptChanges there's always one table that I must additionally accept the changes befora all my changes are accepted. dataset.AcceptChanges() dataset.tableX.AcceptChanges() There are no errors in the dataset. Does anybody know why Thanks, Filip can you post the code other then the acceptchanges I understand that after invoking DataSet.AcceptChanges90 you are still seeing atle ...Show All
Bmxpert Change Priority on the current thread
I'm new to threading in .net - I want to be able to change the priority of the current thread in a .net 2005 DLL so it can run a long process such as a data load. I would also be ok with launching another thread but I didnt know how to pass parameters through to it from the msdn examples. The caller can be (a) web services (b) a vb6 program run from scheduled tasks or manually (c) ASP or ASPX from IIS Here's what I've written. All ...Show All
dsnare How to troubleshoot remoting security problem
I have a remoting server hosted in IIS on my development machine (localhost), which is a member of a domain. IIS Directory Security is configured to disable anonymous access and to use digest authentication. 1. If I configure my client to use default credentials using <channel ... useDefaultCredentials="true"> in the app configuration file, everything works. 2. If I configure my client to use default credentials in c ...Show All
Blane Nelson BUG: TimeSpan.ToString() does not localize the result.
TimeSpan.ToString() always returns the same format, regardless of region settings. For example, if it returns 10:30:25 on an English server, it will return exactly the same thing on an Italian server. However, in Italy they use periods in times so the result should be 10.30.25 Thanks, Mike MikeS at Silect dot com I wouldn't call this a bug since the TimeSpan ...Show All
Ayyappan vertical label control (default values and autosizing)
Hi, I've been trying to create a label control that displays vertical text. I derived a class from Label and was able to display vertical text by overriding the OnPaint method. Although this is working fine, I'm having two problems: The AutoSize still sizes the label as if the text was displayed horizontally. I've been trying to figure out which Method to override to autosize correctly, but I was not able to come up with anything useful yet. H ...Show All
