Improve The Performance Of A Windows Forms Application?
Jan 18, 2012How can I improve the performance of a Windows Forms application?
View 5 RepliesHow can I improve the performance of a Windows Forms application?
View 5 RepliesHow can I improve the performance of a Windows Forms application?
View 1 Repliesi'm developing vb.net application. There are 10 ways of transactions. I want to produce 'Purchase register report'. For that I want to find what amount of effect has been made by each transaction on ledgers of 'Purchase account'. Purchase account has almost 30 ledgers. And transactions can produce about 10000 rows in database for a year. Now if I produce month wise report for a year, there will be 10000*30=300000 row scanning which makes it very slow in execution.
View 6 RepliesI'm trying to improve my app with some error catching. I have a module that downloads a file from the Internet to a local folder. At the moment, if the local folder doesn't exist, it just crashes here:
strLocalFile = New FileStream(pPath, FileMode.Create, FileAccess.Write, FileShare.None)
with error:
System.IO.DirectoryNotFoundException was unhandled
Message="Could not find a part of the path 'C:Documents and SettingsSimonDesktop estdownload.zip'."
Source="mscorlib"
How can I do something with that error and stop my app from crashing? Ideally, have a messagebox show saying 'directory not found' or similar.
i have a datatable with about 10000 rows and few columns (4)I have noticed that the process of reading a big table its quite slow..is there a way to improve performance in reading a datatable?
View 15 RepliesI have a repeater which takes 270 seconds to render and actually ends up crashing all browsers. The SQL to retrieve the data takes about 10 seconds. I wanted to remove the Eval's to see if that speeds up things a bit, but I am having trouble with the correct syntax. I have doubts that this would actually improve performance as I am dealing with 150,000 records. Would a GridView or other control be faster? Would using LINQ to SQL improve performance? Here is the code for the Eval:
[Code]...
improve performance of Contact fetching using EWS managed API?
View 1 RepliesIf I took a COM object (specifically Excel 2003 workbook) and made it an embedded resource of my executable, would that improve the notoriously slow .NET-COM interop at all?
View 1 RepliesI'm currently working with a gridview that has a huge underlying dataset.I'm almost certain that I saw something about a new facility in Visual Studio 2010/.NET 4, which would improve the performance (e.g. doesn't download all the data on databind, but rather only what data required for current page). My guess would be that it was using AJAX.I didn't need it at the time I saw it, and now I can't find it, even though I've been hunting online for a while.
View 2 RepliesI want to import data from excel and move that to Datatable in VB.NET 2008. I wrote and working but its taking too long time.. for 1500 records its taking 4.40 min.
[Code]...
I've developed a VB.NET application with Visual Studio 2008. The application communicates with SQL Server and processes a text file.
My question is about performance. While I run it from Visual Studio 2008, it takes 3 sec to complete. The same is when I run the executable created by the Setup Wizard on my desktop (Windows XP sp 3). But if I run the executable installed on a Windows 2003 Server, it takes 15 sec to complete! What could be the reason of degrading performance on the server vs. the desktop? The .Net framework 3.5 SP1 is installed both on the desktop and the server.
I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.
[Code]...
I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.
Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?
I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service
View 7 RepliesI am making a System Tray Application when i minimize my form its hide itself in the tray but whenever i click on the tray icon my form shows now when my form shows up i would like to disable my Background desktop same as CardSpace when its shows up.
View 1 RepliesI have a windows forms application written in VB.NET which scrapes information from serveral web pages (who doesn't right)? Anyway, I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.
Resuming execution shows that it really is stuck on this line (it does not reach the next line of code). It also hangs about the same point each time I run it (at least its consistent). Since System.Windows.Forms.Application.DoEvents yields to other threads on the same processor and then resumes execution of the current thread, I think the problem is that some other thread is not behaving well (not returning from some event handling code). I thought Windows 7 was pre-emptive, which makes me
doubt that theory but I really don't know.
[Code]...
The program scrapes somewhere between 12 and 14 pages before it gets stuck on the call to DoEvents. Does anyone have a clue why this would happen? Why would any call to DoEvents hang?
I am trying to use the System.Diagnostics.Process class.I have the following Windows Forms application. It consists of 1 Button and 1 TextBox. The only code is for the button click event as follows.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myProcess As New Process()
[code]....
I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?
View 9 RepliesMy boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form. How can I achieve this?
View 2 RepliesMy boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form.
View 4 Repliesi Have a programa that has starts in a main sub, it executes some code and after that code it opens a form using
System.Windows.Forms.Application.Run(General)
General is a form but also a class, so I wonder what it the pros or cons of using :
System.Windows.Forms.Application.Run(General)
vs
Dim gen as general
System.Windows.Forms.Application.Run(gen)
In the first I am opening a form using the name of the class, and I read that it is best to declare the instance as an object variable.
We have an application in Access for UI and MS Sql server as Database server. We now decided to build a new application in web application for UI. This web application is only used by the employees who work for the company. But later we decided to host this web application on outside server. So the user (from this company only.) can able to login anywhere in the world. First I thought creating the web application using 'windows' authentication thinking we may be using it as an intranet web application. But now my manager asked me to use both 'Forms' and as well as 'Windows' for using this application and this web application will be hosted on outside server. I really don't catch his point of using both types of authentication.
View 1 RepliesCould i Create a windows forms application that would have a console application form I'll use an example: say i was creating an application that would need some text written in the command line. i create the windows forms application because i want a GUI for the start page. then when i click a button, it should open a console program that is inside the windows forms application (not a seperate project)
View 7 RepliesPublic Class NAND
Private inputA As Integer
Private inputB As Integer
Private outputQ As Integer
[Code].....
I have this code and I hope that this is correct. I build a dll component from the class file that contains this code and I am trying to use it as a reference in windows forms application. I have allready made this forms application and added the ddl to the reference but I do not know how to use it in there. I would like to activate (insert value 1) inputA & inputB using checkbox and that the outputQ is displayed in textbox (1 or 0). Do I have to use a vb interface to do this? And how can I use this code as dll component in the forms application?
I'm trying to design a windows form application. By default, .NET had put Tahome 8,25 on toolbar and Microsoft SansSerif 8,25 on everything else. To improve general look and feel of the forms I'd like to change them.
Which font family should I use as a default? And what size should they be?
For:
Classic data input form (label + textbox, label + combobox...)
Data grid
Is there any recommended way?
Application is a classic business app, you can think of it as an accounting type.
How can you write a VB.NET Windows Forms Application via CodeDom? I have tried everything, the closest i got to it is the code below, which first of all shows command prompt window which is not good, and then shows the form for like a second and everything disappears.
[Code]...
I have a windows forms app (32 bit) written in VB2010 which occassionally hangs in windows when minimised to the task bar You click on the icon on the taskbar and it will not come back up on the screen
No other modal forms are open in the application when the hang occurs Other programs respond OK
I ran Process Explorer against when it was Hung but do not know how to interpret the stack page, or even if it is helpful STack page with my application selected and Threads tab selected with CSwitch Delta column sorted descending. Then double clicking the top entry (my application .exe)
Note: This is running on an x64 machine, but also hangs on x32 machines
[Code]...
I want to allow the user to write a little script (JScript, VB, whatever) with a function called by my application that returns an XmlDocument object (a string would be ok).I did some research, and it looks like the scripting engines are obsolete.
The best solution I could find is here: [URL]..But I was wondering if there is a better and more "official" way.
I'm building a windows forms application that's supposed to run on a remote/isolated machine and send error notifications by email to the admins. I've tried employing System.Net.Mail classes to achieve this but I'm running into a strange problem:
1. I get an error message:
System.IO.IOException: Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host.--->
System.Net.Sockets.SocketException: An existing connection was forcibly closed by
the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset,
[code]....
I understand that I cannot use the System.Console to output information from a Windows Forms application because the standard input, output, and error streams are not run through the console in winforms apps. But I can't seem to find any documentation on where the standard input, output, and error streams are being directed to! Basically, I have a winforms app that accepts command line arguments and can be run in batch mode, however, I just want to direct some feedback to the user based on whatever method they're accessing the program. The app is used to redirect a client-server application from one server to another. In some instances, the user does it by hand (with a mouse), and other times they're doing it in batch mode (using SAS, command shell, VBScript, etc...). In those instances, I'd prefer NOT to use MessageBoxes because it will kill any processing they're doing.
View 6 Replies