Make Application Working Better And Never Freeze / Make Application Working With Any Count For Loop Without Freeze
Jan 19, 2012
I'm using loop to read data from sql and then make some calculations then save it again to another table but when application loop for 3 or 4 times it's freeze but the job is done but if loop = 10 or more then it is freeze and hangup for long time .i need to learn how to make my application working better and never freeze and make application working with any count for loop without freeze .
View 7 Replies
ADVERTISEMENT
Mar 20, 2012
I got multithreaded scraper and it laggs alot and sometimes it freezes totally.
It works like this. Start Scraping -> Url List -> Scrape -> Add info to datagridview -> Verify info.
Im using threadpool on it. Any tips to make it lag free? What causes it, what I should not do etc?
View 6 Replies
Nov 13, 2011
Ive been working recently on a chat. Ive been using FTP to comunicate through both forms but it need to constantly download the new data and make the application freeze. Even with a Backgroundworker. So my question is : is there a way to keep a constant connection between the form and the host? And not LAN ,I mean that doesnt need to be on the same router.
View 1 Replies
Mar 15, 2009
I'm having some wierd problems with my Looping. I'm was using a thread to start a looping routine to sample the keyboard for pressed keys. The loop worked fine when I made a call to it from the thread in my form load routine. However when I just made a call to the samplekeys routine without using the thread my application will freeze and it won't load.I'm making the call in the form load routine. Private KeyThread As NewThreading.Thread(AddressOf SampleKeys)hen start the thread in the form loading procedure , but if I just make a direct call to the samplekey routine without using a thread my application freezes.Here is the the thread don't think there is a problem with it.
Public Sub SampleKeys()
Dim N As Integer
N = System.Environment.TickCount
[code].....
View 1 Replies
Oct 15, 2011
I use these codes to download/upload to my FTP host , they work perfectly but since i have to handles few download/upload , sometimes the application freeze during download
'Upload :
Try
' set up request...
Dim clsRequest As System.Net.FtpWebRequest = _
[Code].....
View 7 Replies
Jun 12, 2009
Can we make the Combo Box not drop down if we click on it even though it have item in the list, button not click-able even though it have the on_click event..textbox not allow to set focus but not in disable mode...everything like design time.. because I want to do drag and drop control like visual studio.. but I can drag now, just when I want to click the control to drag, the control still remain the default function...
View 1 Replies
Mar 23, 2012
i'm trying to make a simple email sender and the problem is that during the sending process my application freezes, therefore my progress bar also freezes so is there anyway i can try to make application not to freeze?
View 2 Replies
Feb 14, 2009
My following code hangs my VB IDE. What could be the reason. I am of the opinion that by 'sleep' I am avoiding a tight loop and so the program should not freeze. What should I do?
[Code]....
View 3 Replies
Jun 8, 2011
I am making the simple timer module which will display time in count down format as if user want 1 hour 3 mins and 30 sec so it will count in revers. I have almost half code done but after trying the all tricks and logic I didn't got any thing the out put is not proper as which I want.
The code is as follows
Public Class Form1
Public hh As Integer
Public mm As Integer
Public ss As Integer
Public totalsec As Integer
[Code] .....
View 6 Replies
May 4, 2009
I am trying to stop the following piece of code from taking up too much processing power of the PC by using threads. But I keep getting errors when I use threads:
[Code]...
View 3 Replies
Dec 22, 2010
I have this code.I need to loop through it, until button 2 is pressed.I also want to count how many times its looped and show how many times in a label.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code].....
View 3 Replies
Jun 3, 2011
I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!
Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.
Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click
[CODE].....................
View 2 Replies
Apr 19, 2009
I just saw in some wordpress plugins, there are auto tag plugin, auto RSS fetch, just you install the plugin and it keep working for ever without calling it.What i want to do is to put a dll file inside my Images folder and it will monitor the uploaded files and edit them based on some options, i want this dll to work automatically just when uploaded in the right folder, and keep running forever This can be done? If no, there is another options to do so? "i know that i can use a windows service or startup applciation, i mean other options" UPDATE: i want any other options, because the server may be shared so have no access on its windows to make a service or a start up.
View 3 Replies
May 15, 2012
I have this code to get images width and height from header file without full loading the image..I convert it automatically from C# to VB.NET by [url]....The source C# code here:http:[url]....
Now I need this code to work with .net framework 2.The code doesn't work after converting even with .NET 3.5
Imports System.Collections.Generic
Imports System.Drawing
Imports System.IO[code]..........
View 3 Replies
Mar 27, 2011
I have a dgv, I populate it, and I insert a row at the pos 0. And I want to freeze this row even when the user sorts the dgv.
How can I make this? The frozen property alone seems to be not enough.
View 5 Replies
Dec 22, 2008
Currently I have to retrieve over 2000 records from DB and bind with combobox. and then follow with another 3 retrieving (less than 20 records)
My problem is when I call this function, my GUI became freeze.
I try to use Application.DoEvents() method but it still didn't work.I read some post and pages, they mention about BackGroundWorker and .Net 2.0. But what i use it MS 2003 with 1.1 so i think i can't access BackGroundWorker.
View 10 Replies
Apr 24, 2012
So I have a form with a textbox1 thats supposed to enter in a set of keywords and then ebay will give you the"Instant suggestions" in return, but when I have my textbox1.text send the text over to the ebay form, ebay will not return any suggestions, unless I use the sendkeys.send method. Well, I do not like the sendkeys.send method because it's way too buggy &only works under the right conditions.Here's a pic of google instant and ebay does the same thing. So here's what I'm trying to get ebay to do:Here's the code that I have:
Dim theElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("input")
For Each curElement As HtmlElement In theElementCollection
[code].....
View 11 Replies
Jun 3, 2009
i have few questions:
A) How do I create an application that works in the background where there is no instance of it visible at the screen.
B) How do Create application that will load right after windows you start windows?
View 6 Replies
Feb 8, 2010
Has this ever happened to anyone? It has happened to me and one of my customers in the past but I have no idea how he diagnosed it and it is happening with another one of my clients now. The application runs, but the HTTP requests do not. The application works 100% perfect on my own computer but not the customers. He has both the 1.1 and the 3.5 framework installed, and uses Vista (same as me). Can anyone shed some light on this situation because this is a huge huge huge problem that I would rather not have to worry about in the future with other clients.
View 6 Replies
Nov 30, 2010
I am currently going through Murachs Beggining .net programming book. I am trying toimplement an application for an exercise at the end of chapter 5. The applicationspecification is as follows.
View 4 Replies
Sep 26, 2011
I am trying to get Linq going on. I have a CustomClass named Ordr with the properties OrderID, EmployeeID, _ShipRegion
I do a simple query:
Dim query = From c In dbcontext.Orders _
Where c.EmployeeID = 2
Select New Ordr With { _
.OrderID = c.OrderID, _
.EmployeeID = c.EmployeeID, _
.Shipregion = c.ShipRegion}
Then I bind this query to a DataGridView:
DataGridView1.DataSource = query
Now, when I try to save any changes with dbcontext.SaveChanges() no changes are saved. OrderID is the primary key. How was I supposed to do it properly without loosing the ability to save changes?
View 1 Replies
Aug 23, 2010
How do I make a item on a form working in another one without moving it?
View 3 Replies
Feb 9, 2010
In this example I want the loop button works in all mdi child forms at the same time; now in the first mdi child form it will work, but when getting a new mdi child form with that, it will stop in the first one!
View 3 Replies
Feb 9, 2012
Public Class Form5 Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
txtfinaltot.Text = Format((pizza + extratotal), "currency")
View 4 Replies
Jun 14, 2011
I am attempting to freeze the top pane of an excel spreadsheet, which I have opened via my application. The most used method from various internet sources is: [code]
View 2 Replies
Feb 18, 2010
ok i have this code for a banner changer i wrote for an app but i have an issue the code works it gets the banner url from the mysql database useing this code[CODE]......
so im at at loss how do i get it to work so the GUI is still useable while it gets the banner ?
View 12 Replies
Dec 14, 2009
Using DataGridView with VB.Net 2008.I would like to freeze the left column so that when/if scrolled this column still remains in place.
View 1 Replies
Apr 26, 2010
is it possible to make one application send a task to another application and recieve the result from that secondary app?i made a text editor program and i added a scan feature and i made another app that has ocr capabilities.The scanner ability is in my text editor program, the ocr program doesnt scan you have to input an image into it and it will give text result a few seconds later.the prob is alot of times the ocr code uses sooo much memory and crashes when its incorporated with my text editor, but individually each application works fine and doesnt take too much memory. Memory wont be even an issue if the ocr program is standalone so that when it is done decoding image the application can be made to exit. now here is the question, how do i make my text editor send the image to the ocr program and how do i make my ocr program send the text back to my text editor? is it possible? i mean the only way i know off is creating temp files in a certain folder and having a timer on each program that keeps waiting for temp files. That just seems like pretty lame coding to me i was wondering if there's a better way?
View 11 Replies
Apr 21, 2011
I have win7 pro, on my win form is a traffic light icon(when it starts it is red, when finished it is green), so that I know when job is finished. But when I run application icon isn't changing and form hangs it self, can not do nothing until job is finished. Only in the end, I see that icon is quickly changes to red and then back to green.
View 1 Replies
Oct 29, 2009
I keep getting an error that says hte application has stopped working and Windows is searching for a solution. When I click to debug, it tries to start a new instance of VB, but then tells me that a debugger is already running. Why is this happening?
The error is a uncaught Win32 exception and occurs somewhere inside a thread that I create, but I have no idea where.
View 3 Replies