4,911 Posted Topics
Re: First a reminder to please insert code using the **Code** tool. This preserves formatting. You can avoid the messy details of IO by If File.Exists(DiskFile) Then Dim intCount As Integer = 0 For Each line As String In System.IO.File.ReadAllLines(strFileName.txt) EmpData(intCount) = Cstr(line) intCount += 1 if intCount = EmpData.Length Then … | |
Re: Remember that we live in a society that demands we protect people from themselves at the risk of litigation. Note that we apparently do not live in a society that requires (or expects) people to think for themselves or even display a modicum of common sense. | |
![]() | Re: Select the virtual console and press CTRL-ALT-ENTER to toggle between windowed and full-screen. ![]() |
Re: I'd be interested in using the imdb api for an app, however, I have no idea where to start. Are there any resources for a complete noob in this interface? For example, showing someone the code for a "hello, world" program in python is useless if they don't already know … ![]() | |
Re: You shouldn't be storing the sum in the database (or any field that depends upon a calculation for its value). The sum can be calculated on the fly in the query. Having said that, you can update a database field via an UPDATE query. If you show us the database … | |
Thanks to diafol for putting me wise to the imdb api. Unfortunately, due to my ignorance of all things related to web programming I am stuck. I fetch my information via the following Dim url As String = "http://mymovieapi.com/?title=@title&type=xml&plot=full&episode=0&limit=1&year=@year&yg=1&mt=M&lang=en-US&offset=&aka=simple&release=simple&business=0&tech=0" url = Replace(url, "@title", "Star+Trek") url = Replace(url, "@year", "1979") WebBrowser1.Navigate(url) … | |
Re: I don't know if it can be fixed but because Microsoft seems to be getting rid of Windows Live Mail (or Windows Live anything for that matter) in favour of Skype and Outlook.com, why not just switch to Outlook.com and go from there. You'll have to eventually anyway. | |
Re: Your first mistake is not commenting anything. If we don't know what the code is supposed to do then we can't tell if it's not doing it. A simple comment such as "check for three X or O in a row" speaks volumes. Your second mistake is in hard coding … | |
Re: >Waiting for scientific certainty That's the problem, isn't it? Any government that doesn't want to take action - be it this matter, climate change, or whatever - just has to state "There is no scientific certainty; further study is required". Depending on how you define "scientific certainty" you may never … | |
Re: I prefer to avoid the terms ShortInt and LongInt as they vary depending on the architecture. The number refers to the number of bits (binary digits). For example, Int16 is a 16 bit value. To summarize, as beginnerdev said Int16 - 16 bit - range is -32768 to 32727 Int32 … | |
Re: Very important - be very careful what software you install on your computer. Every six months or so I have to thoroughly clean the computers used by my brother and father-in-law. They install every program and browser add-on that can be downloaded. Disable autorun on all devices. A recent test … | |
I have a Uniden wireless security system installed. The system consists of two wireless cameras and a small, handheld receiver with an LCD screen. The receiver has a USB connector to allow it to connect to my laptop. Software runs on the laptop which allows me to monitor the cameras … | |
Re: >I prefer it without the preview actually. Not because it's slow, but because I have to click or scroll down to get to the Reply button. Same here. I know I could hide the live preview but it was a nuisance to have to do it every time. This was … | |
Re: You are trying to cast the string ".grand_total " to an integer. It can't be done. | |
Re: I'm confused. Are you looking through your code to determine where the fault is? | |
Re: For the SERVERNAME you will have to find out what it is from the net admin person/people. Assuming active directory, there will be a name mapped to the server IP address. Assuming MS SQL, three connection types are ADO, SqlClient (preferred) and OleDb. To connect to the **PUBS** database on … | |
Re: I'm moving this from vb.net to ASP.net | |
Re: I don't understand your question. This is an English language forum. Please post in English. | |
Re: My two cents - don't bother using Windows backup. Take a complete system image using the personal (free) version of Macrium Reflect. | |
Re: This does not belong in the vb.net forum. I've moved it up to the **Software Development** level and added appropriate tags for searching. | |
Re: Call something "exclusive" and soon everyone wants in. Ain't marketing wonderful. | |
Re: Judging by **Values(?,?)** it looks like you created a query with parameters but didn't actually replace the parameters with values. | |
Re: Don't worry about "accidentally" creating a virus from scratch. It's not gonna happen. Worry about detecting and removing it. Check [here](http://techgurupiyush.blogspot.ca/2012/04/how-to-remove-shortcut-virus-and.html), [here](http://www.youtube.com/watch?v=FH23Q06M060) and [here](http://www.youtube.com/watch?v=DCjwhawA2GA) | |
Re: If you only want to allow certain characters then you can filter them in the KeyDown event. The clearest way is Private Sub TextBox1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown Select Case e.KeyValue Case Keys.A To Keys.Z Case Keys.Space Case Keys.Left, Keys.Right, Keys.Back Case Else : e.SuppressKeyPress = True … | |
Re: SQL Server Express is much better than Access. I recommend you also install SQL Management Studio Express which is also available for free. The instructions can be found [here](http://blogs.msdn.com/b/bethmassi/archive/2011/02/18/step-by-step-installing-sql-server-management-studio-2008-express-after-visual-studio-2010.aspx) | |
Re: If you put all of the textboxes inside a container such as a panel or GroupBox you could simplify like Dim ptotal As Double = 0.0 For Each tbx As TextBox in GroupBox.Controls.OfType(Of TextBox)() ptotal += Double.Parse(tbx.Text) Next But you should ensure that the textboxes contain valid data first. | |
![]() | Re: You could spawn it as a separate process with the same arguments you would use on the command line. You can also redirect stdout and stderr and capture it from within your app and display the text in a control. Do you need an example of how to do this? |
Re: If you are a total beginner in programming then I suggest a simpler project to get your feet wet. | |
Re: Certification has come under a lot of scrutiny in Canada lately. There is a recent flap over temporary workers coming in from India and displacing Canadians from existing jobs. There was a loophole whereby foreign workers could be brought in as temps (on projects). The loophole allowed them to obtain … ![]() | |
Re: You can't read an Excel file line by line with a simple reader. You can 1. create an Excel Application object and access it that way or 1. use ADO or OleDb objects to access the data like a database Using the first method allows you to access the Excel … | |
Re: The following code displays how to read an Excel file as if it was a database, and how to write that data to another Excel file by using the Excel Application object. This example uses ADO.NET, however, the same thing can be done using OleDb objects. For OleDb you will … | |
Re: We need more information * is this a single instance app on a single comoputer * is the log a text file or database table * is the log on a single computer or is it on a shared server * how much data will be retained For a simple … | |
Re: Are the email notifications being filtered as spam by your ISP or your email client? | |
Re: Isn't daniweb hosted in Long Island rather than Houston? | |
Re: It's also copied word for word from the referenced site. | |
Re: Most of the times I had days like that were because the information I needed to get the job done were not easily available or were buried in so much extraneous nonsense as to be unusable. I give you two scenarios * All available references say that **X** is possible. … | |
Re: You use the ShowDialog method of the form. This displays the form as Modal, meaning that the calling form can not be accessed until the dialog is closed. | |
Re: You don't have to pick one of the forums from the drop-down menu. Just click on the top level item in the menu bar. Just be sure that when you post the question you add tags to help in searching. And please, please, please take the time to create a … | |
Re: If the requirement is not a ListBox then you might want to consider a ListView in Details mode. Using a ListView allows you to have column headers and you have more control over placement and sorting. To add your items to a listview you can do Dim flds() As String … | |
Re: I don't think it is the interpreter. I think it is the runtime library. I think the only stand-alone exe you can make with VB6 is a console app. | |
| |
Re: Don't read the entire file into memory. Use a StreamReader to read one line at a time. | |
Re: Please show your code. If you can change the button text then you should be able to set enable/disable btnMyButton.Text = "Pause" btnMyButton.Enabled = False | |
| |
Re: As long as you have verified that the value entered is a valid date and is less than or equal to the current date then convert that value to a date and calculate the difference in years between that date and now. Then you have to subtract one if the … | |
Re: Please post the values of dbprovider & dbsource. Examples for connecting to Access via OleDb can be found [here](http://www.connectionstrings.com/access) | |
Re: Like chrishea I wore glasses from around 10 years old. My vision was around 20-200+ (I don't know what that is in diopters) but I couldn't read a book held at arm's length. In early 2000 I has lasik on both eyes. That brought me back to around 20-25 which … |
The End.