Getting Gif To Run In Form Whilst Code Is Running On Another Form

Jan 4, 2010

I've got a form that opens up whilst data is being pulled from the database in another form (basically a box to say it's loading), the form opens when I want it to and the gif shows but doesn't run until the code on the other form has finished.

View 5 Replies


ADVERTISEMENT

Program Becoming Unresponsive Whilst Running Long Code

Jan 31, 2011

I'm currently trying to write a football simulator but am having issues with the computer becoming unresponsive. There are long lines of code (several thousand lines) that are executed over and over as one run of the code is equivalent to one second of game time. While the game is setup to be like Football Manager where you watch the game live, there will also be cases where the entire game is simulated without you watching. When doing a full sim of a game, I just have a loop which executes the code block 7200 times (games go for two hour roughly).

At the moment this takes about a minute but even when I get it down to the desired 5-10 seconds or so, I dislike the fact that the computer becomes completely unresponsive during this time. In a round there are 9 games and you'll be simulating without watching 8 of them. You're looking at 1-2 minutes of simulation time or possibly more. I can't have a loading screen that long! How can I program the game so it runs these simulations yet the game still remains responsive? It'd be fine if the user could muck around in the menus and stuff while the simulation runs.

View 10 Replies

Running Code In Form Load

Jul 15, 2010

We have a purchased application written in Visual Studio 2005 that uses tab controls for displaying information. One of the tabs is for reporting and I am trying to run some code to enable and disable a Validate button. It has a proprietary report component (LxReportView1) that is initially disabled. As user enters information, the Validate button is used to check for required fields. After data entry entries have been validated, user click Validate one last time and record gets flagged as validated and report component (LxReportView1) gets enabled for use. Ideally, whenever this Report tab is clicked, it will run my code EACH TIME.[code]Works fine when user's first action is to bring up a record that has already been validated. So when user clicks on Report tab, report component LxReportView1 has been enabled for use and the Validate button has been disable just as designed. Problem is that given a list of records, if user selects a record that has NOT been validated yet and then later on brings up another record that has been validated, code does not run. How can I get this code to run EACH and EVERY TIME the form loads.

View 4 Replies

Assign User Chosen Hotkeys Whilst The Application Is Running?

May 20, 2012

I have an application which uses hotkeys which are to be defined by the user. It is a combination of 2 keys, either CTRL, ALT, SHIFT as one hotkey and the F* Function keys as the other (e.g. CTRL + F1, ALT + F2 or SHIFT + F8) As stated these are then chosen by the user before a global keyhook is put in place to listen for them and trigger an event. In my app I have all my function keys as follows:

Public Const VK_F1 = &H70
Public Const VK_F2 = &H71
Public Const VK_F3 = &H72

[code].....

View 1 Replies

Change Check Box Status In Form While Other Code Is Running?

Jan 19, 2012

I have a form which I use to read data from a text file and export it to an excel template file. The data it reads is constantly updated so I would like to add a check box to cause the data to be read every 10 seconds. It's set up so the user can either do one quick scan by clicking a button, or they can click the button while also having the check box checked and it will scan every 10 seconds.The problem is, once I check the check box, I can't uncheck it. I have created a greatly simplified version of my original code to demonstrate this concept.

[Code]...

View 1 Replies

Forms :: Code Running - But User Still Can Access Form ?

Feb 23, 2010

I am trying to figure out how to have a form running in a loop waiting for the user to input something....

such as:

private function looping()
while 1=1
if textbox.text = "hi" then do_something()
endwhile
end function

How can I do this? threading? Backgroundworker?

View 3 Replies

Running An VB Form The C# Code Even Simple Exit, Message Box Not Working?

Feb 22, 2012

for the any of the button in vb the c# code which is written is not working at all after running a form example: exit, message box even these also not working give me solution

View 1 Replies

Timer To Run In The Background Whilst Other Code Is Being Processed?

Mar 11, 2010

in my program it has a log in system already done by myself and once logged in you can do whatever i have coded in if you understand my meaning . what i want to add to it is a timer that can be edited that runs as a standby timer like with what a screen saver does and logs out after inactivity for a specified time now i have no idea where to stat with this so if some one could put me in the right direction or an example would be great.so i need it to start a timer once the mouse is not moving and no keyboard keys are being pressed and terminate the timer once keyboard keys are being pressed or mouse is being moved it's for an update that i am releasing on my publishers website for my program?

View 1 Replies

Saving Form Data When Running Have A Form That Paints Ovals Onto A Chart.

Sep 24, 2010

I have a Windows form I would like to save the Ovals I created while running the form for use and review later I have been trying the SaveFileDialog but have not figured how to get my data out to the file that is created. I have read about using datatable but there again I'm working with that but need to find how to load all my Oval parameters into the table so I can recreate the current look of the form.

View 4 Replies

'abort' (terminate Immediately) A Form Screen In A Windows Form Application Running Under 'local' Environment?

May 30, 2012

FormA calls DialogB where user cancels DialogB which exits via ForceTermination(), see insert.Caller FormA check for DialogResult not = OK, which it isn't, and I can see this in debug as Abort(3).However, the code continues merrily along its way until I get a 'null reference' error which I'm trying to avoid via Force Termination().This is caused by the user cancelling DialogB, a selection process to get a database (SQL) instance.[code]

View 13 Replies

Data Of Child Form Does Not Appear When Running The Parent Form?

Mar 2, 2012

i have a parent form-->frmComparisonTool the child form is-->frmIterationWindow i used the following codes to integrate the second form to the main one:

Private Sub ComparisonTool_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim debuglist As New IterationWindow
debuglist.TopLevel = False
Me.DebugWindowPanel.Controls.Add(debuglist)

[code]....

View 4 Replies

VB Class Methods Generate "out Of Memory Exception", While Same Code As A Form.exe Running The Functions Does Not

Jun 2, 2009

I created a class library containing some properties and methods, when I call a specific method that runs a sequence of tests, it reports "out of memory exception". When I take the same code and build a form.exe, I do not get the "out of memory exception".

View 6 Replies

One Form Information To Be Transferred To Second Form Code Becomes Invalid After Validation Error

Dec 18, 2010

using one form information to be transferred to a second form the code becomes invalid after an validation error has arisen from the first form (ie no adult passengers was selected and the error message was displayed) when corrected the information to be transferred become incorrect as the information is transferred without the correction. [code]

View 1 Replies

Code That Can Allow The Login Form To Search For Pin Numbers Stored In Another Form?

Aug 15, 2011

I need a code that can allow the login form to search for pin number stored in another form example when a customer enters the pin number and clicks ok button the login form searches if the pin number exists in the bank details form

View 7 Replies

VS 2005 - Generate Form Code - Put The Buttons On The Form

Oct 30, 2009

I'm making a game maker, and I just need to know how to put the buttons on the form. where to add the button code in the Form1.Designer.vb file? I just need to know what the syntax of InitializeComponent is.

View 7 Replies

"deactivate" The Main Form While The New Form Is Running?

Jan 5, 2011

I am starting to learn visual basic. So far, it is quite simple and easy to use. I am liking it!Anyway, I want to make applications a little bit more complex.How do I open a new window (form)? Maybe I click a button on my main form and another form pops up.How do I"deactivate" the main form while the new form is running? (if I try to click the main form, an error sound plays)So my second form has a text field and a "OK" button. If I click it, the second form closes activating the main form again. I want to "pass" the text in the text field from the second form to the first one. How do I do that?

View 3 Replies

Synch Form Design With Form Code?

Mar 6, 2009

I had a project converted from vb6.. now I'm replacing old controls with new ones.. but when I delete the control off the form.. the form generate code still shows it.. I didnt think I was supposed to monkey with that code and remove anything..

I assume there is a way for the code to regenerate from the actual form design ?

I tried rebuild project.. but that didnt do anything.. I'm a tad new to vb.net..

View 5 Replies

Error While Running The Form

Jun 12, 2007

I'm getting the following error while executing my form:

An error occurred creating the form. See Exception.InnerException for details. The error is: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "WindowsApplication1.TravelRequestForm.resources" was correctly embedded or linked into assembly "TravelLog" at compile time, or that all the satellite assemblies required are loadable and fully signed.

In the details section of the error the following message is displayed

[Code]...

View 2 Replies

Form Freezes When Running

Jul 24, 2009

Firstly I want to state this doesn't affect the usability of my program. I made a GUI for an old cmd line program and when running the GUI's form will freeze up and be completely unresponsive. This is annoying since you can't move the form and if you open something over the form then move/close it you get the affect in the attached pic. Attached pic is the program running and the windows calculator being moved around over it.

Is there a way I can have the form stay responsive while the program is running? I don't need for any of the buttons, text boxes, etc to be editable while the program is running.

View 6 Replies

Moving Form While App Is Running

Apr 6, 2012

I'm developing a VB.net windows form app in Visual Studio 2010. I want to be able to drag the form to another location or minimize it while the app is running. Is that possible? Here's and example. I have a form with 1 button. Here's the code associated with the button:

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim time0 As Integer
Dim time1 As Integer
For time0 = 0 To 1000000000
time1 = time0
Next
End Sub

I can move the form or minimize it until I push the button. Then it freezes until the code stops running.

View 2 Replies

Running A Form On Another Thread?

Apr 28, 2012

what i currently have is the main form that then when a user presses a button it runs some functions that loops through some files and changes them and then copys them to another location the functions can take quite some time. what i want to is when the button is pressed it opens another form with a textbox on it and when it has finished 1 cycle of the loop is outputs a line to the textbox and tells the user weather or not it has been sucsessfull.

at the moment i have:

Dim t As Threading.Thread
t = New Threading.Thread(AddressOf Form3.Show)
t.Start()

[Code]....

View 1 Replies

Allow Form Interaction While Program Is Running?

Sep 1, 2010

On my program the user clicks a button which then runs the main code for my program. The problem is once the code is executed I can no longer move or interact with any form boxes, reliably at least . Sometimes there will be a period of delay where I can move it for an instance. Is there anyway I can make it so that my form is able to be moved while the program is running?

View 3 Replies

Closing A Form Running In A Different Thread

Sep 6, 2011

I have form1 and form2. A button on Form1 calls a thread background process (below). That process processes the command and when its done should close form2. I'm opening form2 within the current thread but trying to close it in the background thread. This is because if i close it in the current thread it closes immediately. I included the 2 functions below and what I have tried in the inline comments. Form2 is a simple form, basically just an animated gif. It is to show the user that something is happening(like a status bar) then close when its complete. I tried running different priorities instead of different threads but due to the results threading seems to behave the best. I'd like to keep access to both forms during the process, the pc, and screen refreshes realtime.[code]

View 2 Replies

Duplicate A Form When Running The Application?

Jan 12, 2011

I want to make a program just like SitckNote in Win7.

When I click "add" button, another form pops up, just same with the current one. How to do that?

View 5 Replies

Form Update While Process Is Running

Jun 7, 2011

I have created a porcess that manipulates large volumes of text. I have created a form that has a button that manually starts the process. I have tried to give some feedback that the process is actually progressing through the data by changing the value of text fields on the form. However the text fields do not update on the form until after the process is complete. I had this working in another program but cannot figure out what I am doing different.I use the following code to change the text.[code]

View 2 Replies

Running A Program In The Background Of Another Form?

Jul 26, 2011

I am trying to write up a program that has a few forms that you interact with and do various things with but I also need to have a TCP/IP client/server running in the background to handle a automated connection to a PLC. Is there anyway to have the TCP connection open and receiving/sending in the background even when the operator is doing something else?

View 1 Replies

Running An External Program From Within A Form?

Jan 26, 2010

Some time ago I saw a code to host an exe from within a visual basic form, acting as its parent. How would I go about doing this in vb.net? I havent programmed in ages, but recently have gotten an interest again in order to complement

View 3 Replies

Running JAR Files (Like Minecraft) In Form?

May 5, 2012

I want to run a jar file (like minecraft's jar) in my VB.NET application, to be specific: the jar should run in the Form. I already know that minecraft has a net.minecraft.launcherframe (is this right?) and that there is also an exe file for it.

I am trying to make a manager for minecraft that will allow the user to manage saves, textures, and (if i can access the internal files of the jar) maybe the skin. To make it really friendly, I am just trying to run minecraft in a form, just like the exe does.

View 12 Replies

Running PHP Scripts In A VB 2008 Form?

Jul 15, 2009

Is running a PHP script in a Visual Basic 2008 form possible? What I need to do is:

1. Add text boxes that would represent variables of the PHP script.

2. Add a button that would run the script.

Is doing this possible? If yes, can anyone please give me a very simple example of running a PHP script in VB2008?

View 1 Replies

Stop Script Form Running?

Dec 1, 2008

I have a script that looks for a product number in an excel sheet. If the number is not in the sheet i need the script to stop running and display a message box with the error details. How do I stop the script?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved