Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: [RESOLVED] Read text file and sum a column of data

    Hi,

    Welcome to the Forum but please do not post to an old thread to ask your own question even though you may have used that thread to try and answer your question. At least you looked first...
  2. Re: StreamWriter - comma seperated - how to??

    Hi,

    Your biggest issue is that you have one too many elements defined in your array. You have actually defined 6 elements instead of 5 so you get an extra comma in the output. You then need to...
  3. Re: Real time updating of label in for each loop

    Hi,

    ShaggyHiker has explained the reason why this happens which can be demonstrated using the following simple example:-

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles...
  4. Re: [RESOLVED] text box - use value of number for equation

    Hi,

    That’s still not great and, as already explained, the reason why “TextBox1.Text + TextBox2.Text” did not work is because they were sting values and therefore the strings were concatenated....
  5. Replies
    32
    Views
    486

    Re: VS 2010 - Integer to Roman Numeral

    Hi,

    Then do not copy and paste. Learn the principle and write your own? That’s the same as any of us showing you an example of which there are loads out there so what the difference?

    Cheers,
    ...
  6. Replies
    32
    Views
    486

    Re: VS 2010 - Integer to Roman Numeral

    Hi,

    Use the internet, I disregarded posting to this earlier since there were so many examples on the there which explains how to do this.

    Cheers,

    Ian
  7. Replies
    14
    Views
    317

    VS 2010 Re: importing text files line by line

    Hi,

    I am aware of Teachers being asked to take classes that they are not qualified to teach but I am not aware of Teachers that have to then specifically Learn a subject that they are not...
  8. Replies
    14
    Views
    317

    VS 2010 Re: importing text files line by line

    Hi,

    Just to be clear, you are Joking, Right?

    If not, and you may be a great Teacher in your chosen field, but how on earth are you supposed to teach this subject if you are asking these...
  9. VS 2008 Re: adding items from a string to a listbox ?

    Hi,

    The “c” character converts the preceding character to type Char which is then compatible with the First overload of the Split method.

    Hope that helps.

    Cheers,

    Ian
  10. Re: Trying to exchange values between a datetime picker and acess BD

    Hi,

    Gimfort is correct in his comments but there is a bit more going on here that you may not be aware of.

    If “Fill_Date” is of type DateTime in your Access Database then the correct syntax for...
  11. VS 2010 Re: Problem removing spaces/blank lines from a text file.

    Hi,

    If I were doing this I would first of all read the file into the project using File.ReadAllText and then call Split on the file to split the file at the CRLF character and at the same time...
  12. VS 2010 Re: Please explain why this does what it does

    Hi George,

    I am not even going to try and explain that one in a single post to the forum. It’s better to know at this point that References definitely have their place in any language and is best...
  13. Thread: Game

    by IanRyder
    Replies
    2
    Views
    125

    VS 2013 Re: Game

    Hi,

    You imply a lot of things in your statement and no one is just going to write this for you. So, what have you done so far? The things to consider are:-

    1) Have you created an array for your...
  14. VS 2010 Re: Please explain why this does what it does

    Hi,

    When you do variableArrayX = variableArrayY then what happens is that a Rreference is created in variableArrayX which then relates to the values in variableArrayY. Therefore when you change an...
  15. Replies
    11
    Views
    265

    VS 2010 Re: Clear all TextBoxes in series

    Hi,

    Again use the Tag property, but in this case use a numeric sequence of let’s say 1 to 50 so that each textbox is numbered in sequence in the Tag Property. You could then run the same code but...
  16. Thread: 2 questions

    by IanRyder
    Replies
    4
    Views
    152

    Re: 2 questions

    Hi,

    The difference between “Do While” and “While” is that a Do Loop will ALWAYS execute at Least once whereas a While Loop may never execute at all depending on the conditions that you are testing...
  17. Replies
    11
    Views
    265

    VS 2010 Re: Clear all TextBoxes in series

    Hi,

    One of the easiest ways to do this it to Set the Tag Property to something for each of the TextBox’s that need to be cleared. Let’s say then that we set the Tag Property to “Clearable” we...
  18. VS 2010 Re: Draw image every so many pixels on form... Please help?

    Hi,

    My interpretation of what you are asking for is as passel has suggested being tiled images on a background? If so, then have a play with this example. It may not be exactly what you need but...
  19. Re: Finding the MODE of a list of integers

    Hi,

    I did not really understand Post No.9 and I do not work in VB6 anymore but here is one way to do this in Access SQL:-


    SELECT TOP 1...
  20. VS 2008 Re: Noob Question About Structures

    Hi,

    You can use LINQ to Objects with a Lambda expression here to do what you need. To also make things easier to read you should also create your Structure Name in the Singular and your Array in...
  21. Re: MySQL query AND Statement Question..

    Hi,



    No your not since that does not actually make sense?

    This is what your SQL query should look like and I will leave it to you to work out how to add the Parameter values to the SQL Query...
  22. Re: MySQL query AND Statement Question..

    Hi,

    There are a few things wrong there but the best thing you can do right now is to put your SQL String Concatenation into a message box and see what you are actually sending to the Database. You...
  23. Replies
    10
    Views
    280

    Re: distinct from ListOf

    Hi,

    Using Distinct implies the use of an IequalityComparer. Have a look here for more information:-

    Enumerable.Distinct(Of TSource) Method (IEnumerable(Of TSource), IEqualityComparer(Of...
  24. Replies
    10
    Views
    401

    VS 2013 Re: Implementing BODMAS into a VB Calculator

    Hi,

    Here is a little tip that a lot of people seem to forget. Just use a DataTable’s Compute method to do the calculations that you need. It implements the rules of BODMAS as standard. Here is a...
  25. VS 2010 Re: List(of double) to another form

    Hi,

    OK, you check that, but the most important thing is how are you passing the List to Form2 and how are you accepting that List in Form2 so that it can be used? Show us the code you have got for...
  26. Re: ListView check\unchecked - a better way

    Hi,

    Have a go using this example which uses the ItemChecked event instead of the ItemCheck event to do what you need:-

    Private Sub ListView1_ItemChecked(sender As Object, e As...
  27. VS 2010 Re: List(of double) to another form

    Hi,

    Other than your use of the Public Keyword within (presumably Form1), what you have shown seems correct so two questions for you:-

    1) Are you sure that Array1 contains some elements? Have...
  28. VS 2013 Re: Help Please: Could not find schema information for the element

    Hi,

    I have never tried to read an XML file with a StringReader before so I thought I would give it a try to see what happens and, as expected, it threw an error, but not the one that you have...
  29. Re: Setting focus on new row datagridview cell, ready to edit

    Hi,

    Just call the DataGridViews BeginEdit Method once you have selected the cell you want to edit.

    Hope that helps.

    Cheers,

    Ian
  30. Re: [RESOLVED] I used to use Huge Loop & DoEvents() to create an artificial delay. A

    Hi,



    No you don't because that's what's causing your problem!, This implies that you probably do not really understand the concept of Multi Threading? In your case you Need the UI Thread to...
  31. Re: [RESOLVED] I used to use Huge Loop & DoEvents() to create an artificial delay. A

    Hi,

    To expand on what has already been said by SH and ONLY if you are using .NET4.5 you can use Async and Await to write "in-line" code which can implement a Pause, using Tasks which execute on...
  32. Re: What is the easiest way to parse this XML from a website

    Hi,

    There are various ways that you can do this but one of the easiest ways I find to deal with XML files is to read them straight into a Dataset and let the Dataset Infer the structure for you....
  33. VS 2012 Re: Navigating items on ListView with Horizontal Scroll Bar Control

    Hi,



    Here are a couple of extra pointers for you:-

    When using the ListView, if you select something in code and the control does not have the focus then the selection is hidden. This can be...
  34. VS 2012 Re: Navigating items on ListView with Horizontal Scroll Bar Control

    Hi,

    I see that .paul. is going the same way I was thinking so assuming that the MultiSelect property of the ListView is false and so long as you set the Scroll bar values correctly then you donít...
  35. Replies
    12
    Views
    319

    Re: Dealing with Nothing In IComparer

    Hi All,



    Not true SH. I pass a sort direction to the Comparer and then X compared to Y always sorts Ascending and Y compared to X always sorts Descending.



    Thanks SH & Szlamany, I knew I...
  36. Replies
    12
    Views
    319

    Re: Dealing with Nothing In IComparer

    Hi All,

    Many thanks for all the comments so far. Not had time to digest any as yet, buried with other stuff at the moment, but I will do in due course and come back with any comments.

    Cheers,
    ...
  37. Replies
    12
    Views
    319

    Dealing with Nothing In IComparer

    Hi All,

    I Feel like I am missing something simple and I would appreciate your advice.

    I am creating a simple Sort class to be used on a Generic List that has been populated from the execution...
  38. Re: Trying out an Avatar for the First Time - Scary!

    Hmmm, slightly confused?

    I can see an Avatar in the Thread once I read it but I cannot see the Avatar in the "What's New" section.

    What did I miss guys 'n' girls?

    Cheers,

    Ian
  39. Trying out an Avatar for the First Time - Scary!

    Please ignore.

    Ian
  40. Re: Extract numbers from HTML Inner Text / Html

    Hi,

    I made sure that I posted a traditional For loop example as well as a LINQ example to make sure that you would be able to understand whichever technology you choose to use in .NET. LINQ was...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.