4,901 Posted Topics

Member Avatar for SaaDwTk

After line 3 add the following MsgBox(myProcess.StartInfo.Arguments) and post the results here

Member Avatar for Reverend Jim
0
673
Member Avatar for Reverend Jim

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 …

Member Avatar for LastMitch
0
93
Member Avatar for SaaDwTk

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 …

Member Avatar for Reverend Jim
0
1K
Member Avatar for vasuv

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 …

Member Avatar for Reverend Jim
0
88
Member Avatar for SaaDwTk

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).

Member Avatar for Reverend Jim
0
1K
Member Avatar for timon.bijl
Member Avatar for jjones41

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 …

Member Avatar for Reverend Jim
0
138
Member Avatar for mayank.dyl

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 …

Member Avatar for tech-ultrasonic
0
436
Member Avatar for pratik65

Answered [here](http://www.daniweb.com/software-development/vbnet/threads/438189/intializing-id-column-again-by-1)

Member Avatar for Reverend Jim
0
187
Member Avatar for lulu79

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 …

Member Avatar for lulu79
0
218
Member Avatar for Gus_19

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 …

Member Avatar for Reverend Jim
0
225
Member Avatar for timon.bijl

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 …

Member Avatar for Reverend Jim
0
338
Member Avatar for veeeeebeeeee
Member Avatar for jamia406

There is a good video introduction from Microsoft available [here](http://channel9.msdn.com/Series/Visual-Basic-Development-for-Absolute-Beginners)

Member Avatar for Icone
0
131
Member Avatar for khair.ullah

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 …

Member Avatar for Icone
0
252
Member Avatar for sky.light.7311

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 …

Member Avatar for Icone
0
314
Member Avatar for Stuugie

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

Member Avatar for Stuugie
0
180
Member Avatar for francine.reculez

>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 …

Member Avatar for francine.reculez
0
206
Member Avatar for TheQuestor

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 …

Member Avatar for TheQuestor
0
387
Member Avatar for Myronz
Member Avatar for kenomote

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)

Member Avatar for kenomote
0
123
Member Avatar for magord86

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 …

Member Avatar for Reverend Jim
0
694
Member Avatar for Mr Gates

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 …

Member Avatar for akgs
0
7K
Member Avatar for lakn.comnsense

Wouldn't it also work if you just replaced lf with crlf as in RichTextBox1.Text.Replace(vbLf,vbCrLf)

Member Avatar for Reverend Jim
0
133
Member Avatar for themaj

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 …

Member Avatar for Reverend Jim
0
206
Member Avatar for kenomote

After line 65, please add MsgBox(SqlStatement) and post the results here. Also, what database engine are you using?

Member Avatar for kenomote
0
458
Member Avatar for Nan0_Zor

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)

Member Avatar for Nan0_Zor
0
139
Member Avatar for nitin1

@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 …

Member Avatar for chris.stout
0
283
Member Avatar for soknasazeh

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 …

Member Avatar for soknasazeh
0
384
Member Avatar for DelilahDemented

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".

Member Avatar for Reverend Jim
0
323
Member Avatar for rumanoid

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 …

Member Avatar for Reverend Jim
0
366
Member Avatar for JabarRiaz
Member Avatar for JabarRiaz
0
126
Member Avatar for happygeek

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.

Member Avatar for johnedwards095
0
381
Member Avatar for Sneaky Pete

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 …

Member Avatar for Reverend Jim
0
245
Member Avatar for Fiziana
Member Avatar for james.schlup.33

Are there any rules being applied by Outlook that might be automatically moving the messages to other folders? Possibly junk mail filters?

Member Avatar for james.schlup.33
0
274
Member Avatar for Christina

This thread is three years old. I think we can safely assume the OP has either solved his problem or trashed his drive.

Member Avatar for Reverend Jim
0
262
Member Avatar for Zaina jee

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 …

Member Avatar for jllany.anthony
0
2K
Member Avatar for vbenthu

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 …

Member Avatar for vbenthu
0
107
Member Avatar for Ray124
Member Avatar for TnTinMN
0
128
Member Avatar for charles.coogan

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

Member Avatar for charles.coogan
0
105
Member Avatar for Dani
Member Avatar for danielle.rosenfeld.3

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 …

Member Avatar for Reverend Jim
0
129
Member Avatar for bprosic

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

Member Avatar for bprosic
0
2K
Member Avatar for Stuugie

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

Member Avatar for Reverend Jim
0
166
Member Avatar for ~s.o.s~

You might want to have a look at [this site](http://anidb.net/perl-bin/animedb.pl?show=calendar)

Member Avatar for Doogledude123
1
317
Member Avatar for BigPaw

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 …

Member Avatar for BigPaw
0
505
Member Avatar for iamthwee

In memory of Harry Harrison - Make Room, Make Room, then The Stainless Steel Rat. Both for the second time.

Member Avatar for BitBlt
0
165
Member Avatar for savedlema

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 …

Member Avatar for savedlema
0
366
Member Avatar for judd

> 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 …

Member Avatar for Nicholasamarq
0
2K

The End.