When The Fire Appears, The Previous Ones Stop?
Nov 9, 2009
When the fire appears, the previous ones stop. I do not want this. How can I change it?Code Follows:
Public Class frmMainForm
Dim iRifleFrames As Integer
Dim iFurbyFrames As Integer[code]........
View 3 Replies
ADVERTISEMENT
Oct 4, 2010
I am writing a little utility to generate some SQL files. I have a file which is generated from a string array of 400+ elements. It stops writing (without throwing an error) at arround 1000 characters or 380 lines. I am clearly missing something here. Question is what? I've tried (the remed lines of) flush but that seems to have no effect.[[code]...
View 4 Replies
Apr 11, 2011
I have little problem. I change the textbox value in pageload time. the textbox change event calling automatically. how to stop that?
[Code]....
View 3 Replies
Jul 16, 2011
In Datagridview, Set as DatagridView1.ReadOnly=True,
Dgv1.Rows.Add()
When i tried to add a Row, it is copying previous Row data to new row,and also blank the previous row, why?Like Insert Row, Why...?
View 7 Replies
Feb 26, 2009
Alright, so I'm still working on the slot machine. I have three timers all independently going for my three "wheels" of the slot machine.
My issue, is that I'm trying to make a Stop button to stop each timer one at a time, and I'm not understanding why this code isn't working. The logic completely makes sense, and the first "wheel" stops when I click the button, however, it doesnt appear to stop the other two timers.
CODE:
View 2 Replies
Dec 24, 2009
I have a simple application that use thread pool to read a file and input the data into a listbox. I want to be able to stop threadpool from running after clicking a stop button. How do I stop threadpool? Here is the code for my application below:
Imports System.Threading
Public Class Form1
Private Delegate Sub StringDelegate(ByVal text As String)
[Code]....
View 6 Replies
Dec 7, 2009
I created a form and have the variable inputs for 4 motor run statements. Then with a start button the script starts and it is surrounded by a for next statement to loop 10 times. It works fine but if i need to stop the execution of the script with a stop button. I put the stop in a new section but of course does not work to do a motor stop. It just causes the exe to not respond till the loop is complete. Just need to be able to stop the Run1_Click button section.
Edit:I do not mind if it finishes the 4 motor run commands and then stops execution of the loop. So need to figure out a way to trigger a stop from a button on the form to stop the cycle. For the future the loop will be a variable integer input so 10 will not be the standard.
Edit::Does a ' Do ' statement sound like the thing to use? If so how and where would I place that? Have a Stop button on the form and it would stop after the 4th motor run command.
#End Region
Declare Function InitStp Lib "stp.dll" () As Integer
Declare Function RunMotor1 Lib "stp.dll" (ByVal steps As Integer, ByVal interval As Integer, ByVal direction As Integer, ByVal outputs As Integer) As Boolean
[code]....
View 2 Replies
Mar 1, 2011
I have a START and STOP button and when the user clicks "start" the program does a whole bunch of calculations and all. However, I noticed that when I was testing the program I clicked STOP the program continues to execute stuff.
My START code is basically a while loop that iteratively does some calculations.
So I just put a boolean variable as the while condition and when user clicks stop its set to false and when user clicks start its set to true. However, when I click stop, the condition is set to false yes but it still executes all the code until the condition is re-evaluated right...so my question is how can I get out of the while loop when user instantly clicks "stop"?
View 5 Replies
Nov 1, 2009
I am trying to make an application with a start button and a stop button on a stop watch program. These are the codes I am using but my seconds on the stop watch don't start.
Public Form Dim intSecond As Integer = 0
Form 1
Private
Dim intSecond As Integer = 0
intSecond +=1
[Code]...
After I write my code and try to run the program, the seconds will not start,
View 3 Replies
Jul 27, 2008
I need to record the screen when my user clicks start, and stop recording when he clicks stop.I've searched for a while on this subject, and I have found nothing.I want to do this without adding any files to my project, I just want to use some built in function in Visual Basic, and start recording, or even take a snapshot and add it to an AVI file or something...These are some sites I have found:
http:[url]......
This code is in VB6, but I am not sure how to even start using it?
View 1 Replies
May 23, 2009
I can't seem to get my 'Save' feature to work properly. It lets me choose save and lets me choose my desired save name but when i click on 'Save', a dialog box appears saying
"problemIllegal characters in path."
I'm not sure if it's code that i'm missing or code that shouldn't be there.
View 3 Replies
Nov 1, 2011
I have been searching the internet and this forum for the answer to my problem, but so far nothing is working. I want a label to appear 10 seconds after the form loads. This is one of the codes that I have tried so far [code] it doesn't work. Like this the label is visible when the form loads and then disappears, but if I switch the Label2.Visible = True & False the code doesn't work at all. It also doesn't do anything if I change the = to a less than sign.
View 2 Replies
Jan 17, 2012
how can I change the text for that blank button to "Add"?
this is the code I am using:
Quote:
Private Sub CreateUnboundButtonColumn(ByVal sender As DataGridView)
Dim Column As New DataGridViewDisableButtonColumn
With Column
[Code].....
and of course I want to use that button to add more columns to the datagrid
View 1 Replies
Jun 8, 2011
I am currently trying to sort on a GridView after it has been populated with records from a SQL Server Express database. I click on a column to sort it and I get the following error: "DataTable must be set prior to using DataView." The entirety of my code is as follows: <script runat="server" >
[Code]...
View 3 Replies
Jan 14, 2009
I am passing the data of an element inside an xml file into a sql server table with field varchar(max). This datatype is permanent and due to business rule is not allowed to be changed.[code]Notice, there are spaces and carriage returns.When pulling these data out of the xml file, in the immediate window, I can see " attached to the text where there should be a return.The sql does not take care of these returns, so that when I show these values on the UI, I do not see the carriage returns.How do I see the text on the UI as it exacly appears in the xml file ?
View 7 Replies
Jun 22, 2009
I'm a normal user of to Visual Studio 2008 and very experienced with VS 2005. On 2008 when after I enter the parenthesis after the object method name I see an intellisense prompt with the parameter name defined on the method along with a := sign. What does := means and why does it show up? anyway it helps me a lot sometimes if I use same variable names on different service tiers. What does := means?
ObjectName.MethodName(VariableName:=
View 6 Replies
May 23, 2011
I have never faced this problem before, I'm working on a MDI project and I have a form with a DataGridView that uses the event CellFormatting to format the cell content, if a click on a button in the form or inside the datagridview itself to show a Msgboxit appears behind the MDI form, you must realize how frustrating should be for the user that the program does not respond because the Msgbox is behind and they don't know it.
View 4 Replies
Jul 27, 2010
I having a problem in my website where I have 2 objects held in session, both object are structured differently and do not have any links to each other (not intentionally). Both objects however, have a collection of "Travellers". What I am trying to do is modify one collection by adding or removing "Travellers", when a finish button is clicked, the modified collection will then be saved to the other object.The problem is that for some reason when I modify one collection in one object, the modifications are also made to the collection in the other object.[code]The issue is the Travellers collection within the object "BookingContext" is being updated when I add and remove from the collection within "PersonSearchContext". It's as though there is some sort of link or pointer between them.
View 1 Replies
Dec 1, 2010
I am trying to automate with Coded UI . Now it runs fine but when an abrupt modal window / exception window appears , it halts and tries to act on it but this was not part of recording. I want to track when this modal window appears and then kill the AUT [ application that is being automated upon ].This will at-least prevent users from watching screen w/o any progress.
View 6 Replies
Jun 1, 2010
Is there any way to change the sound MessageBox makes when it appears? I've written a Hangman game that displays a message box when a player wins, loses, hits an invalid key, or presses the same key twice and it always makes the same sound.
View 4 Replies
Dec 13, 2011
I know it sounds strange but let me it explain. It has a purpose, but really all I'm looking for is the item with the most duplicates.I know it's possible and I've had a few ideas already, though none were successful or practical.What I'm doing here that requires this is creating an intuitive search for clients in a database. You type in a single field and click search. Behind scenes each keyword broken down from the single input field is searched through the table of clients, hitting each column and returning matches. the results are large in numbers, but truly it's the client that appears the same number of times as there are keywords.
View 1 Replies
Oct 30, 2009
I tried to build my project but it failed and said the exe was already in use by another process. So I looked in the Task Manager and saw several instances of this exe and several instances of another exe that I wrote. Why wouldn't the processes be stopped after I close the programs I wrote. Is there something I can do so that the processes end after I close the program?
View 6 Replies
Nov 15, 2011
Color custom cursor appears to be black when I run the program. The color custom cursor is imported from desktop by using Resources in vb.net. When I run the program the cursor turns out to be black. HOW DO I FIX IT?
View 2 Replies
Nov 23, 2011
In my DataGridView, there is a column for names of machines in the database and I want to count how many machines of each time I have. I have set aside 1 text box with 1 label for each time of machine and in the text box, I want to display how many machines of that type are in the DataGridView?For example, I have 50 records and 30 of those records use machine "80ER" while 12 use "90E" and 8 of them are "PM100". I'd like the 80ER text box to show 30, 90E text box to show 12, and PM100 text box to show 8.
View 7 Replies
Oct 30, 2009
How to create the dropdown list that appears on right clicking on some component of a form in vb 08.
View 1 Replies
Feb 2, 2011
Is it possible to make the tab (a text 'Main Report' appears in it) invisible that appears in a CrystalReportViewer just below the Toolbar? I know it shows which section of the report is opened currently but in certain scenario I need it not to be visible.
View 3 Replies
Sep 13, 2009
I'm extracting data to a text file (notepad) using VB system IO. I'm not sure what is wrong. When i extract the file from computer A, it is OK
Output:
Data A
Data B
Data C
Data D
But from PC B,
Output:
"Data A"
"Data B"
"Data C"
double quote appears on open and end of each lines.
View 3 Replies
Aug 22, 2011
The below message appears when I build a solution. How to avoid this? Please provide me a detailed answer. I am a beginner of Visual basic.
View 4 Replies
Jun 24, 2009
My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example.We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use.[code]Using the above code, the form does not freeze but appears we can not access any of the controls such as (RTB)What would be causing the form to freeze on .show(),
View 4 Replies
May 21, 2012
I have a menu item that appears when right clicking over a datagridview. From their the user hovers over a menuitem and a list of other menu items appears, once again this repeats. Giving soemthing like this.
---------
| FOO |---------
---------| BAR |------------
---------| FOOBAR |
-----------
There is only to be an event (addressof) handled on the the 3rd tier. With that being said I need to grab the parent.name from FOOBAR and the parent.name of the said parent (grandparent).Here is where I am at:
If currentMouseRow >= 0 AndAlso currentMouseColumn <= 1 Then
dataGridView_monitorMapping.Rows(currentMouseRow).Selected = True
mainMenu.MenuItems.Add(New MenuItem("Set Monitor(s) Settings"))
[code]....
And the event handler
Public Sub updateMultiRowSettingChange(ByVal Sender As System.Object, ByVal e As System.EventArgs)
'TODO | Handle selection from right click menu.
End Sub
View 1 Replies