4,911 Posted Topics

Member Avatar for anf39

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 …

Member Avatar for Reverend Jim
0
105
Member Avatar for nitin1

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.

Member Avatar for happygeek
0
792
Member Avatar for Rahul47
Member Avatar for Rahul47
0
129
Member Avatar for huniebabe

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 …

Member Avatar for diafol
-1
268
Member Avatar for ariel.cepeda.35

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 …

Member Avatar for Eternal Newbie
0
325
Member Avatar for Reverend Jim

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

Member Avatar for Reverend Jim
0
338
Member Avatar for JwAlstrom

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.

Member Avatar for Amzi
0
209
Member Avatar for roy.tarabay

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 …

Member Avatar for Reverend Jim
0
199
Member Avatar for happygeek

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

Member Avatar for Stuugie
0
225
Member Avatar for Papa_Don

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 …

Member Avatar for Papa_Don
0
3K
Member Avatar for ganges

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 …

Member Avatar for garyson02
0
312
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
508
Member Avatar for Dani

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

Member Avatar for Dani
1
235
Member Avatar for santosh.pandey.1293575
Member Avatar for santosh.pandey.1293575
0
130
Member Avatar for Stuugie

I'm confused. Are you looking through your code to determine where the fault is?

Member Avatar for Stuugie
0
148
Member Avatar for Sadhikary

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 …

Member Avatar for gusano79
0
545
Member Avatar for eakaglo
Member Avatar for gleen.r
Member Avatar for gleen.r
0
385
Member Avatar for danny.entico
Member Avatar for Harjinder_Singh

My two cents - don't bother using Windows backup. Take a complete system image using the personal (free) version of Macrium Reflect.

Member Avatar for Reverend Jim
0
161
Member Avatar for weeraa
Member Avatar for geraldike

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.

Member Avatar for ddanbe
0
177
Member Avatar for LegateLucius

Call something "exclusive" and soon everyone wants in. Ain't marketing wonderful.

Member Avatar for Ancient Dragon
0
161
Member Avatar for Ancient Dragon

Judging by **Values(?,?)** it looks like you created a query with parameters but didn't actually replace the parameters with values.

Member Avatar for Ancient Dragon
0
952
Member Avatar for killer88

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)

Member Avatar for Reverend Jim
-2
155
Member Avatar for eos.paks

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 …

Member Avatar for eos.paks
0
2K
Member Avatar for Ancient Dragon

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)

Member Avatar for Ancient Dragon
0
333
Member Avatar for ses03

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.

Member Avatar for tinstaafl
0
156
Member Avatar for mrkm1188

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?

Member Avatar for Reverend Jim
0
3K
Member Avatar for carlbutler7

If you are a total beginner in programming then I suggest a simpler project to get your feet wet.

Member Avatar for GeekPlease
0
647
Member Avatar for Stuugie

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 …

Member Avatar for LastMitch
0
439
Member Avatar for GeekPlease

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 …

Member Avatar for GeekPlease
0
691
Member Avatar for lexaeterna

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 …

Member Avatar for GeekPlease
0
485
Member Avatar for sidyusuf

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 …

Member Avatar for Reverend Jim
0
681
Member Avatar for heftor

Are the email notifications being filtered as spam by your ISP or your email client?

Member Avatar for heftor
0
105
Member Avatar for Violet_82
Member Avatar for aVar++
Member Avatar for Xantipius
Member Avatar for Stuugie

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

Member Avatar for Reverend Jim
0
152
Member Avatar for schroaus

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.

Member Avatar for tinstaafl
0
231
Member Avatar for harinath_2007

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 …

Member Avatar for happygeek
-1
208
Member Avatar for TheOneTopCat

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 …

Member Avatar for GeekPlease
0
562
Member Avatar for mridul.ahuja

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.

Member Avatar for Reverend Jim
0
154
Member Avatar for Xantipius
Member Avatar for GeekPlease

Don't read the entire file into memory. Use a StreamReader to read one line at a time.

Member Avatar for GeekPlease
0
182
Member Avatar for manoj_582033

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

Member Avatar for ddanbe
0
175
Member Avatar for Trench37716
Member Avatar for Reverend Jim
0
193
Member Avatar for ranTHE

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 …

Member Avatar for Reverend Jim
0
203
Member Avatar for spyros.lois

Please post the values of dbprovider & dbsource. Examples for connecting to Access via OleDb can be found [here](http://www.connectionstrings.com/access)

Member Avatar for Reverend Jim
0
256
Member Avatar for Stuugie

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 …

Member Avatar for BigPaw
0
439

The End.