4,901 Posted Topics
Re: After line 3 add the following MsgBox(myProcess.StartInfo.Arguments) and post the results here | |
I hope all of you NY DaniWebbers are safe and sound somewhere waiting out the worst of the storm. My older son, Adam, is safely ensconced in the Laufer Center at Stony Brook University with several days worth of food. The power at his house is out but fortunately the … ![]() | |
Re: I'd start by changing the code (for now) as follows Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.Arguments = "/K " & "rabcasm.exe " & "\Source\" & "3.3.0-1\3.3.0-1.main.asasm" myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal myProcess.StartInfo.CreateNoWindow = False myProcess.Start() myProcess.WaitForExit(60000) If Not myProcess.HasExited Then myProcess.Kill() End If myProcess.Close() Note the changes … | |
Re: Oracle is a complex piece of software with a lot of options. Scripts are generally worth the effort when you have to do a task many times. I can't imagine you'd be installing that many Oracle servers. I would recommend against using a script simply because of the number of … | |
Re: Read the entire file into a text array (System.IO.File.ReadAllLines). Replace the specific entry in the text array, then write the array back to the file (System.IO.File.WriteAllLines). | |
Re: Why roll your own? Just enable the one that came with Windows. | |
Re: I'm assuming that "winner" is a label. If so, then I suggest you add a TextChanged handler for that control and put the file save code there. That way, whenever you post the status of the next game the results will automatically get recorded. The easiest way would be to … | |
Re: Until a spell checker is available in the browser, if you really need one then just compose your post in a program that **does** have a spell checker (Outlook, Word, TextPad, etc). Then do the spell check before you copy/paste into the browser. I prefer to do that with the … | |
Re: Answered [here](http://www.daniweb.com/software-development/vbnet/threads/438189/intializing-id-column-again-by-1) | |
Re: Does it really matter whether or not today is Monday? Just do the loop as set start date to today do subtract one from start day get the records for start day loop while record count = 0 If today is (for example) Thursday then it will kick out after … | |
Re: You set the timer interval (the time between tick events) via the Interval property. Set it to 1000 for a one second interval. You start the timer by setting Enabled = True. Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick 'this event fires every Timer.Interval milliseconds 'you could … | |
Re: Set the form KeyPreview property to true then add the following handler Private Sub Form1_KeyUp(sender As System.Object, e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp Dim inc As Integer = 10 Select Case e.KeyCode Case Keys.Up Me.Location = New Point(Me.Location.X, Me.Location.Y - inc) Case Keys.Down Me.Location = New Point(Me.Location.X, Me.Location.Y + inc) Case … | |
Re: I think what you are looking for is a Masked Text Box. | |
Re: There is a good video introduction from Microsoft available [here](http://channel9.msdn.com/Series/Visual-Basic-Development-for-Absolute-Beginners) | |
Re: You also have to consider 1. Can the user log in on more than one machine at a time. 1. What happens if the user loses his/her connection without logging out, for example, if the user's machine or application fails or if the machine hosting the application dies. You can … | |
Re: The query should be "SELECT usname, password FROM userinfo " & " WHERE usname = '" & textbox1.Text & "'" & " AND [password] = '" & textbox2.Text & "'" Your query selects all records. The above selects only the record that contains the username/password pair. If no records were … | |
Re: Or more concisely Dim folder As String = "D:\temp" For Each file As String In My.Computer.FileSystem.GetFiles(folder, FileIO.SearchOption.SearchTopLevelOnly, "*.csv") Debug.WriteLine(file) 'do work Next | |
Re: >Remove any entries that do not belong there That's not very useful unless you already know what does and does not belong there. Make a copy of the HOSTS file (copy to hosts.bak) first. The HOSTS file that gets created when you install Windows has no entries other than comments … | |
Re: Instead of creating dynamic controls I think you should display the data in a DataGridView or some such control and just update it (if changed) on the timer tick. It would help if you 1. commented your code to explain what you are trying to do 1. removed code from … | |
Re: Too many commas. Remove the one before the WHERE clause as in da = New MySqlDataAdapter("update tbluser set FirsName='" & txtUF.Text & "', LastName='" & txtUL.Text & "', ContactNum='" & txtUC.Text & "', Username='" & txtUser.Text & "', Password='" & txtPass.Text & "' where UserID='" & txtUid.Text & "'", conn) | |
Re: Store your data in a dictionary as follows: Private Capitals As New Dictionary(Of String, String) From { {"Manitoba", "Winnipeg"}, {"Saskatchewan", "Regina"}, {"Ontario", "Toronto"} } You can populate the combobox by For Each province As String In Capitals.Keys ComboBox1.Items.Add(province) Next and when the user clicks the button you can do If … | |
Re: It's a bad idea to change the behaviour of a control based on the numebr of times it was clicked (or anything for that matter). A control should do the same thing every time you click it. Having said that, if you change the text in the button then the … | |
Re: Wouldn't it also work if you just replaced lf with crlf as in RichTextBox1.Text.Replace(vbLf,vbCrLf) | |
Re: Try putting "#" around the date fields. Access prefers dates in the form INSERT INTO mytable (SYSDATE) VALUES(#2012-10-31#) That would make the last two lines of your query "#" & ds.Tables(0).Rows(iRows).Item(5) & "#," & _ "#" & ds.Tables(0).Rows(iRows).Item(6) & "#)" If MODE is a text field then you'll also have … | |
Re: After line 65, please add MsgBox(SqlStatement) and post the results here. Also, what database engine are you using? | |
Re: Have a look at [how to use named pipe for full duplex inter-process communication in vb 2010](http://social.msdn.microsoft.com/Forums/nn-NO/vbgeneral/thread/9023d10f-a352-460b-b520-10920923e8c8) Also see [System.Messaging](http://www.informit.com/articles/article.aspx?p=23273) | |
Re: @bigpaw - that only gets you the fastest horse in each group. If the groups were arranged so that the three fastest were in the first group then you would eliminate two of the fastest horses in one race. However, Based on the parameters of the question, you only have … | |
Re: I don't know how your software locks your folders, but an older program, FolderLock, used a rootkit to lock/hide folders (unfortunately, FolderLock didn't hide the folders and files when accessed from another computer on the LAN). If your software also uses a rootkit to function you might try a rootkit … | |
Re: Try converting the cell contents to numbers before comparing them. If you are comparing them as strings then (for example) "15" will be less than "5", but CInt("15") will be greater than CInt("5". | |
Re: Let me see if I have this. 1. The user selects a file from a list 1. The file contains pairs of words. The first is in one language, the second in another 1. The program displays the first word and a textbox for the user to type the translation … | |
Re: See if it still happens after you unplug your mouse. If it doesn't then it is a mouse problem. | |
Re: That's distressing but not surprising. One little clarification, for us non-Brits, I think plc means public limited company (a limited company whose shares may be sold to the public). On this side of the pond it usually means (at least to we computer geeks) programmable logic controller. | |
Re: I would suggest having three textboxes. The top one (read only) is multi-line. The one just below that is where the user types the input. When the user presses ENTER or clicks GENERATE, the third textbox gets the output and the current input is appended to the multi-line textbox, then … | |
Re: Are there any rules being applied by Outlook that might be automatically moving the messages to other folders? Possibly junk mail filters? | |
Re: This thread is three years old. I think we can safely assume the OP has either solved his problem or trashed his drive. | |
![]() | Re: It depends on your definition of loop. For example, if you create a detached recordset and read the integer values into it, you could then use the Sort method to rearrange the values. Your program would use no loops (as long as you brute-forced the input), however, the Sort method … |
Re: One file has a line like "TFTTFFT" which I presume are the correct answers (true/false) for seven questions. Does the second file contain multiple lines (one for each student) in the format "#### " followed by the same number of "T", "F" or "-" entries as there are in the … | |
Re: Without referring to code, what, exactly, are you trying to accomplish? | |
Re: You have to convert the strings to their integer equivalents with CInt as in num1 = CInt(txtFirstNum.Text) But you should first check that the string is a valid number by If IsNumeric(txtFirstNum.Text) Then num1 = CInt(txtFirstNum.Text) Else MsgBox("First Number (" & txtFirstNum.Text & ") is not a number") End If | |
Re: The short (unhelpful) answer is to start with Public Class Form1 The perhaps more helpful answer is to add an ImageList control to your form and add all of the flag pictures. If you keep all of the flags in a particular folder then you can scan the folder at … | |
Re: Or you can handle it in the KeyUp handler as follows: Private Sub TextBox1_KeyUp(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp If e.KeyCode = Keys.Enter Then If Not IsDate(TextBox1.Text) Then MsgBox("not a date") e.Handled = True Else 'update the database End If End If End Sub | |
Re: Hey Stuggie, how are you enjoying this crappy fall weather? Try replacing 'm' with just the word, month as in select DATEPART(month,release_date) from etc | |
Re: You might want to have a look at [this site](http://anidb.net/perl-bin/animedb.pl?show=calendar) | |
Re: At the risk of offending pyTony, I'd say avoid Python simply because of the problems building the GUI. I find Python to be an excellent (even elegant) language, but I found that building a GUI was excrutiatingly painful. For someone who is already familiar with Python I'd say go ahead … | |
![]() | Re: In memory of Harry Harrison - Make Room, Make Room, then The Stainless Steel Rat. Both for the second time. |
Re: It is possible that either txtUser1.Text or txtPass1.Text contains a character that is screwing up the statement. For example, if the username is "O'Neal" and the password is "froggie" then the resulting insert statement is INSERT INTO Users (Username, Password) VALUES ('O'Neal','froggie') build the query in a string and display … | |
Re: > I don't have to select from the listbox,but to save/store the values in the listbox. If I understand, you select a value from a combobox and you want it added to a listbox. As well, you are doing soomething with a SQL database. Are you having problems populating the … |
The End.