I made a program that backs up data from the My Documents, Favorites, and Desktop folders on Windows XP to a server. When the data is brought down from the server, it brings it down in Windows 7 format. So, for example, the directory to My Documents in Windows XP is "C:Documents and SettingsusernameMy Documents." The same directory in Windows 7 is "C:UsersusernameDocuments."Everything works fine in terms of putting files and folders in the correct directory, but when bringing the data down from the server, the program sometimes freezes up and doesn't ever seem to get out of that state. It also makes the computer very slow and unresponsive after a while. Does anyone have any idea why this would occur?
Below, I have a code snippet of my copying code. I include a sleep command and a DoEvents command to halt the thread for a very short duration of time in order to make the UI more responsive.[code] I believe I may have to use some multi-threading to get this to work properly, but I've looked it up and cannot find out how to implement it in my program.
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
I am trying to write code for a login to my program. But the code I have written freeze's the screen. Basicaly I want to check if username (TextBox1) has text in it and then check if password (Textbox2) has text in it. if either textbox has no text then a MsgBox show's with an OK Button. and then I dont want the program to run. I want The login form to reload so the user can insert thier username & password. the code I have is below.
I have a visual basic program wherein i fetch information from two textboxes format the output of the textbox in the required form and then make the output come as desired I use two arrays to read textbox 1 and 2 separately and then i use for .. next statement to perform the same action for all the lines in the textbox 1 and 2..
Both of them have equal no of lines..I have also give a progress bar in the form and assigned the max value as the number of lines and i have given the incrementation within the program for the progressbar..
When i run the program it runs quite well for certain instant of time and the progress bar also responds according .. After some interval of time the form hangs and the progressbar also hangs at that place..Later after some more time the form is back to normal and the process is in finished form with progressbar at 100%..
Is there any reason why the form hangs..If there was a major problem i must have not got the output at all but i do get the output after certain interval of time..Can this problem be solved??
I have a datagrid which receives updates for every 1 minute from the database. Whenever it gets update my whole form gets freeze and I cant do anything. To add on when first I log in also the log in page gets freeze because the form is being loaded during the first time.
I am using the following code to receive data from a Public Address Controller.the programme sends data...waits for a reply....send more data...waits for a reply..etc.
[Code]...
is there some way of cancelling the BeginReceive after a delay so that the programme can carry on and inform the user that something is wrong and terminate gracefully?
Here is vb.net 2008 code is: Public Function CheckURL(ByVal URL As String) As Boolean
[Code]...
when a url is processing in checking it hangs my application for a while. Is this possible it checks smoothly all url list without hanging my application.. Is there any other fastest way to check urls? Note: I have about 800 urls in file to check all links a valid by website responce or not.
Creating an application that uses both namedpipes and TCPIP connectivity to pass data between 2 legacy applications. When there is actual data to pass everything works great. But when the application is looking to see if there is any data to read from the named pipe side and there is no data, the Peek hangs until there is data. Is there a problem in the way I have it coded or is there a timeout that needs to be set?
Code: ' ' declarations ' Private in_pipeName As String
I would like to place a brush under the cursor as I move the mouse around a picturebox, so the person can see what they lay down when clicking. How could I do this. I am working on a custom scribble application.
software developed in vb.net(communicating with serialport) hanging and it is giving these rexceptions 1.The device does not recognize the command2.Unhandled exception has occurred in your application. If you click continue, the application will ignore this error and attemptto continue. if you click Quit, the application will close immediatly
I'm not sure how to explain what's happening but it seems to be deadlock, i did search along the forum and actualy did find who had the same problem as i did. Unfortunatly i'm too new to this Threading and could not understand why does this deadlocks happen or how to avoid them.I'm using the following
Dim t As New Threading.Thread(AddressOf MyTestingSub) t.Priority = Threading.ThreadPriority.BelowNormal t.IsBackground = True
I am new to the forum. This looks like a cool site! I have a bit of experience in VB .Net, but not with threads or backgroundworker processes. I am sorry that the description is so long, I tried to make it as short as I can, but it is rather complicated. Here goes:
Edit 1: Uninstalled & Reinstalled Edit 2: Same problem. Seriously? Yes.I am having a problem with msvb7.dll eating 50%+ cpu on my dual core system. This usually lasts 10-30 seconds or so, during which time the IDE is non-responsive.
This occurs when I do pretty much anything in the text editor, and can be replicated by simply adding blank lines to a function, and then deleting them. Or pasting some code. Or... lotsa stuff.
SP1 installed I had DevExpress' refactor/coderush, components, and codeit.right installed, but have removed all 3 of them. (I had installed the latest version of Refactor Pro! (9.3.4), perhaps the day before)
I have tried a VS.NET Repair. There is a kb that referenced some cpu destroying with vb, but it was included in SP1
I have a really simple form with a button that fires a Sub I created which gathers data from ActiveDirectory and adds it to an Excel Sheet. The problem is, when I click this button the whole form hangs. So I figured the operation that gathers the data and adding it to the Excel sheet should be run in it's own thread, so that the form won't hang. Possibly it would be great to add a progressbar as well. The progressbar however is located at the Main userform that starts up once the projects is run.
I've got one MainForm.vb and one CodeFile.vb. I want most of the code in the CodeFile.vb so it's tidier. MainForm.vb Imports User_edit.CodeFile Imports System.ComponentModel Public Class MainForm Private Sub btnImportData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImportData.Click [Code] .....
Notice the ExportFromAD Sub I've got in the CodeFile.vb. This is what is actually doing the work. In the For each loop that adds data to the Excel is where I've put the MainForm.MyBackgroundWorker.ReportProgress(i * 10). Problem is, it doesn't actually update the label on the form. Which I find pretty weird because the form isn't really hanging or anything. Is it trying to access a different thread or something? Meaning, the form is run on it's own thread which can't be accessed from my second thread?
Yesterday I worked on an MVC 3 project in Visual Studio 2010 and then shut down Visual Studio before leaving work.This morning when I try to load the same project in Visual Studio the project hangs. I have restarted my computer, disabled all add-ons and extensions that I could. Still no banana.I would try to clean the solution if I could get it to load but I can't.
Setting a hanging indent using full word automation. I am using word 2003 and vb 2005. I am inserting paragraphs in the document and I am having some difficulty getting the whole paragraph to indent.
I'm doing a big loop in my program and throughout the loop I'm updating the textbox in the form.
However the form "hangs" untill the loop is done. How can I keep the form visible and be able to read the updated textbox while the loop is still running? I tried Me.Update() but it didn't work. I'm sure there was something like processdata or something like that but I can't find it anymore...
Example
For x = 1 To 10000 form1.textbox.text=x Me.Update() Next
I have a series of methods being called for my networking code. An event gets fired from the networking thread. Inside this event, which I've hooked into from a singleton class, I route messages to form level methods which they register on form load to handle certain messages they care about. Inside of these form message hooks I need to close the current form (which I was able to do) but also show a different one (which is giving me the trouble).
I wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.
I've been working on a program that generates a batch file, then when you press a button, it executes that batch file. There are multiple batch files attached to each item in the list box.
[code]...
The only thing that it does when I press the button, is starts the batch file, then goes to function searchtitle, which executes the batch file again when it finds out it didn't work properly.The button text doesn't change, none of the items are being added to my first list box, and I can't do anything to the window after pressing the button. It constantly opens the batch file every 5 seconds or so.
The program allows users to insert Documents along with a bunch of their attributes into the program. The documents are stored in a relational database. One of the required functionalities is allowing the user to look for such documents. The User normally search directly for the obvious attributes of the document, like a unique ID, or it's Title. The problem is that from the search parameters is not allways known which ones will the user fill. For example the user inserts the name and version of the deocument, another time the user enters part of the Title and the person that delivered the document, or might just enter the document number and nothing else. Some of the data might even be incomplete, like title, name of the person who created the document and so on. The idea from the person who designed the system (I'm only reimplementing it) was to allow easier searches for the user, and allowing the user to search for more parameters tod with the idea that "the more parameters, the more specific results", since the results are always group of documents instead of single documents.
I'm really new at programming and was looking for guidance about a project I have.I have to design a program that administers a multiple choice test to users. It delivers questions one at a time, from a predefined test file for the user to answer. It also marks and displays a score at the end of the test.
First, a QUESTION form verify's the user's registration status and access. The user provides a registration number and password and the program reads it from a "registration.txt" file to determine if the user is eligible to take the test (i.e., they are registered to take it). If it is correct, then the user presses the "Begin" button. If not, then a message appears and the student tries again to enter the information.
A read only text box will display the score at the end of the test (String with format correct/total) and the user can't retake the test.Second, a QUESTION form opens after clicking "Begin" on the entry form. The questions are going to be from a "testfile.txt" file.Each question is on multiple lines in the file. The first line consists of the question followed by possible answers followed by the correct answer ( 3 items are separated by "#"). The current question number and the question will be displayed in textboxes.'n'= possible answers; so each of the next 'n' lines provides a possible answer. All possible answers will be displayed in a Listbox.After the user selects an answer, an ''Enter'' button is pressed. This will submit and evaluate the answer. If nothing is selected a textbox should appear and display the error message (APPEARS ONLY IF THERE IS AN ERROR). After pressing ''Enter'', the next question is displayed.When all questions answered, the entry form is displayed again and displays the score.
I know that's a lot of information, but I wanted it to be really clear. Would it be best to cycle/loop the questions with a DoWhile loop? And how would I store the answers while the user goes through the test?