Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can try a test post if you like. Create a new thread and submit the first post. then go to that post and click Edit Post. You should be able to modify the title.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can only change the title of a thread that you started, and only in the first 30 minutes after you created it if I am not mistaken.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Both of my children are long since out of school and earning an income. Even though I have no further use for the public school system I still gladly pay school taxes because they help pay for a system which benefits society as a whole. Some might consider this a subsidy of a service for which they receive no benefit. I consider it an resposibility for being part of a civilized society. Likewise for that portion of my taxes that go toward maternity care.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You could just create the controls at runtime and put all of them inside a panel as in

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    Dim xpos As Integer = 10
    Dim ypos As Integer = 20

    Panel1.Controls.Clear()

    For Each line As String In System.IO.File.ReadAllLines("d:\temp\test.txt")
        Dim txt As New TextBox
        txt.Text = line
        txt.Location = New Point(xpos, ypos)
        Panel1.Controls.Add(txt)
        ypos += 25
    Next

End Sub

As long as you set the AutoScroll property of the panel to True you'll be able to scroll through the ingredients and you won't have to worry about not having enough controls for the ingredients. You can use AddHandler to add an event handler to the newly creaded controls.

On the other hand, why not just use a multi-line textbox and display the ingredients as

TextBox1.Text = System.IO.File.ReadAllText("d:\temp\test.txt")
ddanbe commented: Nice point of view. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

According to data found in a book by Kevin Dutton called "The Wisdom of Psychopaths: What Saints, Spies and Serial Killers Can Teach Us About Success", the following occupations have the highest proportion of psycopaths. Ranked from most to least likely they are:

  1. CEO
  2. lawyer
  3. TV & radio media personality
  4. salesperson
  5. surgeon
  6. journalist
  7. police officer
  8. clergy
  9. chef
  10. civil servant
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Taking a database class is valuable no matter what programming language you are planning to specialize in. What you will need to know is mostly independent of the programming language. You will learn how to define a database to properly store real world data in a manner that is both useful and non-redundant. You will learn the commands (SQL commands that are mostly common to all relational database systems) to modify, maintain and retrieve data from that database. Pay attention to the part about normalization.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

please can anyone answer this question;paying off credit card debt

You haven't asked a question, other than the implied one of "can someone please do my project for me?". Nobody here is going to do something that you should be doing for yourself. So far the only effort we have seen on your part is the effort it took to post the question. However, if you get stuck on a particular problem and post a question we'd be happy to help out.

CorpsMarshal commented: well i finally got my head together i finish the assignment moreover its a program +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Works fine for me with Windows 7 Pro and Chrome Version 30.0.1599.101 m

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Reverend who ever kidndly dont bother to reply to this any post .

I'll respond to any post as it pleases me.

So at least I am able to get you to spell out a complete word. You want to animate text in a different direction. Different from what? Because title bar text can only be one line you can only move it left-right. How you want it to move is not clear. Do you want it to cycle like marquee text?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

anyway that question was typed fast, and what part you didnt understand.

I'm trying to make a point here. I already said If you can't take the time to do that then we can't be expected to take the time to answer. This site has rules, two of which are

  • Do post in full-sentence English
  • Do not write in all uppercase or use "leet", "txt" or "chatroom" speak

Plus there is a sticky thread titled Please Read This Before Posting which includes

  • Show us that you have made a serious effort (don't expect us to do the work for you).
  • The effort you get back will be proportional to the effort you put in.

I make allowances for posts made by people for whom English is not their first language but when I see a statment posted from Delaware which reads

how to Find emtpy foldder file and zero siz file and del thm.

when by taking a few extra moments you could have posted

I want to delete all zero length files and empty folders from a directory tree

I'm generally not motivated to provide an answer. I've said this before, the most important language you should learn as a programmer is English because your ability to communicate clearly and effectively is going to play a very large part in determining your success. This applies no matter what field you are in. Clearly this point bears repeating …

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

How about Chr(e.KeyCode)

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can iterate over the keys by

For Each k as String In dic.Keys

and the values by

For Each v as String In dic.Values

and, of course, you can use the ContainsKey and ContainsValue to determine the presence of a particular key or value, however, you cannot determine if a value is unique without scanning the entire collection of values.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I'm assuming that because your location is Delaware you have a working knowledge of English. Please take the time to post a clear question or you won't get an answer that is useful. If you can't take the time to do that then we can't be expected to take the time to answer.

G_Waddell commented: I agree +8
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If, for example, you wanted to store a value with the key you would do something like

Dim word As String = "cow"
Dim def As String = "a four legged herbivore"

dic.Add(word,def)

Then you can display the value as

MsgBox(dic(word))

You can use different types for key and value by modifying the declaration. For example, you could have an integer key and a string array as the value by

Dim dic As New Dictionary(Of Integer, String())

You could also declare your own object (class) and use that as the value.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Even faster, store your dictionary in an actual dictionary as follows

Public Class Form1

    Private dic As New Dictionary(Of String, String)

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        For Each line As String In System.IO.File.ReadAllLines(filename)
            dic.Add(line, "")
        Next
    End Sub

The load time is extremely small and to check if a word is in the dictionary you just do

If dic.ContainsKey(word)

No actual searching (on your part) has to be done. One caution - when I tried this with your wordlist I found a duplicate word (animate). A dictionary takes two entries, a key and a value. In this case you don't need to supply a value; you are only interested in the key. Keep in mind that you'll probably want to do

If dic.ContainsKey(word.ToLower())

because the keys are case sensitive.

robert.knighton.79 commented: Answered my question AND helped fix my dictionary file! Thanks! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If you start with

Button2.Enabled = False
Button3.Enabled = False

then in the button click handler for Button 1 you just set Enabled = True for either or both of the other buttons.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can read the entire file by

Dim allLines() As String = System.IO.File.ReadAllLines(filename)
Dim alltext As String = System.IO.File.ReadAllText(filename)

The first line reads the file into an array (one line per entry) while the second reads the entire file into one string (embedded vbCrLf), which is apparently what you were trying to do with the loop. You can get the array from the text as well by

Dim allLines() As String = alltext.Split(vbCrLf)

I suggest you take a little more care naming your variables. strFileName is highly misleading as it does not contain a file name. It contains the file contents. If you sort your dictionary file (it is not sorted based on your example) then you can use a binary search once you have read the file into the array. If you leave it unsorted then you have to do a linear search which is much slower.

robert.knighton.79 commented: Excellent! Worked like a charm! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

@HoverportMedia: I don't see why you are dragging Google into this at all. If a web page has content that violates the DMCA then that is a problem for whomever is hosting the site. Just because Google returns a link to that site does not make Google culpable in any way. I have to wonder why you raise this issue now? We've had sites like PirateBay and ISOHunt for years not to mention all the warez sites out there.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Contrary to popular belief, Napoleon Bonaparte was not short. At his death, he was just shy of 5' 7" which was slightly above average for French males at that time.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I did, indeed, say hmmmmmm. He gets a snotload of endorsements from new accounts that went inactive after they had served their purpose. Add to that the fact that for quite some time he was obsessed with

  1. becoming a moderator
  2. boosting his stats

I repeat, hmmmmmmm.

<M/> commented: ikr... hmmmmmmmm..... +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Hmmmmmmm.

ddanbe commented: Hmmmmmmmm +0
Mike Askew commented: did someone say hmmmmmmmm? +0
<M/> commented: He said hmmmmmmm... +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Work? What's work? I use whatever is appropriate, except I never use public transportation. I do use my bicycle whenever possible.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You have to ask a specific question and you have to ask it in the proper forum. I'm moving this to the python forum.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

GET A JOB

That would be a lot easier if the corporations hadn't been shipping all of the manufacturing jobs overseas. And now a lot of the jobs that are left do not pay enough to live on.

average productivity of the USA has been decreased

I believe that studies show that Americans are more productive now than in the past. Unfortunately the benefits from that gain have gone to the corporations (whose profits have increased) instead of the workers (whose net income has been steadily dropping for decades).

Except that the stuff that would prevent you from getting pregnant (or undo it if it happens by accident) is kinda expensive and you want to cut the programs that would help the poor/unemployed pay for it.

Plus the Republicans don't want to teach sex-ed or provide birth control. They just want people to stop having sex. period.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I think the question should be why is the government cutting food stamps for poor people but leaving subsidies for wealthy corporations making record profits and run by rich people who only want to end handouts for the poor. Agricultural subsidies were actually increased this year. If the Republicans want the government out of their business then they should comply and immediately end all subsidies and handouts to corporations. Of course, those same rich people could always refuse subsidies on principle. I imagine only Warren Buffet would be willing to entertain that.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Just replace Debug.WriteLine... with your own code

Dim lines() As String = System.IO.File.ReadAllLines("d:\temp\test.txt")

For i As Integer = 6 To UBound(lines) - 2
    Debug.WriteLine(lines(i))
Next
Begginnerdev commented: Short and sweet +9
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

An easier way is with regular expressions.

Dim rex As New System.Text.RegularExpressions.Regex("")
Dim s As String = "It was the best of times. It was the worst of times."

MsgBox(rex.Matches(s, "s").Count)

which counts "s" or

Dim rex As New System.Text.RegularExpressions.Regex("")
Dim s As String = "It was the best of times. It was the worst of times."

MsgBox(rex.Matches(s, "s", rex.Options.IgnoreCase).Count)

which counts "s" as well as "S"

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I have no desire to see World War Z. I understand that they took out all of the political and social commentary that was in the book and turned it into a "Brad Pitt saves the world" action flick.

<M/> commented: TRUE! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Several people have asked how to export data to Excel. This code snippet shows how to export the data from a listview in details mode to a new Excel spreadsheet. Take note of the comments in the header to avoid having orphaned Excel.exe tasks eat up your system memory.

Begginnerdev commented: Nice post Jim. +9
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I had that happen a half hour after a final exam started. I ran into my professor who wanted to know why I wasn't writing it. Major panic attack. I managed to get there before they locked me out.

nitin1 commented: lol :D +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can add items more concisely by

ListView1.Items.Add(New ListViewItem({"Column1","Column2","Column3",Column4"}))
Begginnerdev commented: Clear n' Concise! +9
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

And if you are asking for a key to activate a copy of Windows that you didn't legally obtain then you won't get that here.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I suggest you run a disk diagnostic to see if the drive is failing. If you have around $90 to spare (the last time I checked) I highly recommend getting a copy of SpinRite. There is nothing that can touch it for diagnosing disk problems and doing maintenance/repair/recovery.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Google

how do I use an access database from vb.net

and read.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The thread identified it as mysql.

Begginnerdev commented: I'm a blonde, you have to spell it out in the sand! :) +9
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Try googling

how to create custom control in vb.net 2010
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Like many people my age and older, I am hearing impaired. Specifically, I have lost hearing in the upper ranges. I find that I can manage reasonably well in face to face conversation, but I have a lot of trouble with recorded video. I use VLC which has a built in equalizer, and Songbird which has the same. However, I cannot use VLC for online videos unless I download them first. I also can't use VLC for Skype.

Fortunately I found a free and open source equalizer which can be set to affect all audio on my laptop. You have to configure it via a text file but that is not difficult. I am also in the process of building a simple GUI with sliders which will modify the config file. If anyone is insterested you can find 32 and 64 bit versions of Equalizer APO here.

stultuske commented: good to know. don't need it yet, but who knows ... +0
rproffitt commented: what? upvote. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Maybe... depends on who wrote it.

So you determine the validity of an argument based on who presents it rather than on the content of the argument? Doesn't sound very open minded and rational to me.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

It's your homework assignment. If we do it for you then you won't learn anything.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I just wish that people would stop blaming the religion

I blame any system that eschews reason for blind faith in unprovable things. Why shouldn't I blame the religion? As for the "religion of peace" statement, that was discussed at great length here.

But that is kind of getting away from the topic of this thread.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life. - John Lennon

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You mean Weapons of Mass Disinformation.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Norway, Oman, Nigeria, Sweden, Estonia, Netherlands, Singapore, Ecuador.

or how about

Bosnia, Uruguay, Lebanon, Libya, Scotland, Honduras, Italy, Thailand.

happygeek commented: You nailed it Jim! :) +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You start a new project and drag a textbox and a button to the form from the toolbox.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

will House be his dad

I can only hope. He's old enough. And you know what they say, "it takes a heap o' living to make a House a Holmes."

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I think it's like posting a sign that reads IGNORE THIS SIGN

<M/> commented: lol +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The lesson is: "Carry your gun with you all the time!"

Because in a civilized society you just never know when you'll have to kill somoebody.

<M/> commented: ikr... +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You just have to specify enough fields in the WHERE clause to uniquely identify the record you want to UPDATE. If that's not clear enough then post some sample data and I'll try to show you.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If you want the language that packs the most punch for the least code I would have to go with APL. Imagine implementing Conway's game of life in one line of code of fewer than 80 characters. Note - you said powerful, not readable.

623a845b1f48adb3dbefae5659833ab7

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Can anyone recommend a free flv to avi converter? There is a lot of free software out there so I have choices but can anyone recommend one that is free of trojans, viruses, malware, etc.? I've already got the DivX codec and converter but the DivX converter will not do flv.