Posts

Showing posts with the label Desktop

How to zip a file or folder using C#

Image
Download code example I had searched a lot to make files zip using c#, all the solution provided only support to zip a single file but my requirement is to zip a directory selected by used, I had tried so many utilities but unfortunately all does not works for me. Finally I found a solution which is using Java utility to zip file. This solution is quite easy to implement and debug. To implement this solution you need to add reference of “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjslib.dll” to your application.

Disbale JIT in .net / Application level Exception handling in .net

Image
Download Code Example I was developing windows application for a well known company of World. This application was in C#.net 2005. As per requirement I have to show user defined message whenever an Exception occurs in the application. The answer is very simply write a simple Try{},Catch{} statement to handle exception. Suppose I have a code of 1000 line unwanted code and error handling creates extra thread while executing the application. I had search on the internet and found a solution to disable the JIT debugger. It works but still it is showing the application information related to functions etc. used in the code. Now, a major issue had risen from client, i.e. he don’t want to show JIT information to user he wants to show his own message whenever any Exception occurs. Offf…. Now that’s the task to which needs to done. I cannot use Try{},Catch{} as this decrease the application performance. Finally I came to the solution. I had wired an event with application to handle applicatio...

Remote Desktop Access: Team viewer, Remote, Desktop, Sharing, Files Sharing, Data Sharing, Team Sharing, Team Meetings

Image
In today’s world of technology remote desktop sharing has become a common way of working on remote pc’s or servers. We all know how to access Remote desktop, but what if I have to share my desktop to give a demo of application or module or anything. Suppose I have to give a simple demo to a friend, like how to create a Power Point Slides. Now, the first idea is to create a document or to create a pictorial document or create a video and upload to youtube.com or some other alternate. But here is the solution. You can use Team Viewer http://www.teamviewer.com/download/index.aspx Install team Viewer to both the PC (From where you have to access and to which you have to access) Ask for the Id and password of the machine which you want to access. Now enter ID into box and click connect to partner. If ask for password provide password. Now, you can view desktop of your partner or friend. You can also take control into your hand. You can also view more option like file transfer etc. For mor...