Search results for query: *

  1. G

    Question Count occurance of words in a .txt file

    I have the following code working now, just need to figure out how to make it use a text file and not the string. Cheers for help guys! :) Imports System.Text.RegularExpressions Module Module1 Sub Main() ' Input string. Dim value As String = "word word word" Dim...
  2. G

    Question Count occurance of words in a .txt file

    Thanks for that Matt, I have played around with it for ages but its a little advanced for me I think. I cant figure out how to see any output of the words or just whats going on there? Any chance someone could comment the code to help me understand how this works and how I can use it to solve my...
  3. G

    No value given for one or more parameters

    On a separate note, give the names of items on the form something more meaningful so when it gets more complex or you re-visit the code it makes more sense. e.g. bookname = TextBox3.Text Try:- bookname = bookname.Text I appreciate you may of planned on tidying it up once you got it working...
  4. G

    Question Count occurance of words in a .txt file

    Hey, I am new to programming and I have something I want to do which I think might be simple but I cannot figure it out, could someone point me in the direction of a useful example? So it should work something like this... Dim mywords(5) mywords(0) = hello mywords(1) = world mywords(2) = how...
  5. G

    try catch - error handling

    I get what your saying, Rather then catch an exception stop it happening in the first place ;) I plan on doing that just as soon as all the basics are working :) Thanks Vis!
  6. G

    Why won't it work? (array resize)

    Hello World! I have caught the above error, but not solved it yet, i need to work on something else but im not sure how... Basically when you click the text going accross i want it to take you to the url, here is what i have in place at the moment... ForEach currentRssItem In rssItems '...
  7. G

    Scrolling Text Problem

    Thanks guys that's great ;)
  8. G

    Change text color to bold

    Im not sure either, but you know how when you fill in details on a form on the tinternet... an asp form, and it says "please fill in the details marked with a red *" well thats done in VS 2005 (asp) using validation controls and its sooo easy, but i dunno if it can be done in VB, i don't see why...
  9. G

    Change text color to bold

    Can you not use the validation control type thing's like you can in asp .net?
  10. G

    try catch - error handling

    Hello all, my new rss reader program is very buggy contantly throwing errors etc Just wondering what is the best way of coding in my error handling, do i just work through and do it, or is there a way to make all my error handling be in a seperate file? :confused: Some examples of error...
  11. G

    Scrolling Text Problem

    Hello :) I have the following code to make a linklabel on my form scroll.. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If LinkLabelRss.Left <= (Me.Left - (2 * LinkLabelRss.Width)) Then LinkLabelRss.Left = Me.Width End If...
  12. G

    Why won't it work? (array resize)

    IT WORKS WOOHOO!! Thanks John ;) I did not realise that for next would auto increment :) You asked about clicking refresh, it throws an error which i don't understand :( see attached...
  13. G

    Why won't it work? (array resize)

    Thanks JohnH!!! ive not tried it yet lol but thanks!!
  14. G

    Text file Problem

    I'm pretty new to this whole thing too but I think a database would work well for this, I'll leave sum1 else to tell you how to do it cos im not sure, but I would disagree, the database does not need maintaining if its just for you to work with and you are keeping it simple then you will never...
  15. G

    Why won't it work? (array resize)

    The way its supposed to work is a click my refresh button, it takes the title from all the rss items on the xml site (in this case bbcnews) and then puts each title into my array, it sort of works, but its only doing 15 items instead of 30 and its the every other item (title) that its getting...
  16. G

    Get data from a .txt file

    Or you could use an XML file, im just guessing here but i reckon that would give you more functionality than a text file?
  17. G

    Why won't it work? (array resize)

    heres some code :( Private Sub RefreshToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RefreshToolStripMenuItem.Click rssDoc.Load(rssStream) For Each currentRssItem In rssItems ' TITLE rssDetail = currentRssItem.SelectSingleNode("title") 'ReDim...
  18. G

    Why won't it work? (array resize)

    Thanks john, i sort of have it working, but for some reason it is taking one news item then skipping one then taking one then skipping one so on so forth :confused: I can only think that myitemint is incrementing more than once but i only have it typed "+ 1" once so its shud just take all 30...
  19. G

    Why won't it work? (array resize)

    Nver mind, I kinda got it working...
  20. G

    Text file Problem

    Hello, Would it be too difficult for you to put all this information into a database?
Back
Top