Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: newbie problem with while ..end statement..

    Hi,

    Things actually work fine but you have just got a few things in the wrong places or you have doubled up where you do not need to. Try this:-

    Private Sub readValuesandNumbers()
    Dim...
  2. Re: newbie problem with while ..end statement..

    HI,

    I cant quite read that so post the code, using Code Tags, and one of us should be able to guide you better.

    Cheers,

    Ian
  3. Re: newbie problem with while ..end statement..

    Hi,

    Just use "If Cint(numberValue) = 0" and your done.

    Glad I could help.

    Cheers,

    Ian
  4. Re: newbie problem with while ..end statement..

    Hi,

    Here is a quick example to demonstrate a While loop working in the manner that you are expecting. Have a read through the comments to understand exactly what each aspect of the code is doing...
  5. VS 2010 Re: Adding integer values up in a listbox and then display them to another listbox?

    Hi,

    I cannot actually see where you have set the variable “dt” but assuming that you have set this correctly and set this as the DataSource of the ListBox then I would suggest that the column name...
  6. VS 2010 Re: Adding integer values up in a listbox and then display them to another listbox?

    Hi,

    As long as what is being displaying in your ListBox is just a List of Numbers entered through the use of the Add or AddRange methods then you can use this to sum the list:-
    ...
  7. 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...
  8. 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...
  9. 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...
  10. 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....
  11. Replies
    32
    Views
    512

    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,
    ...
  12. Replies
    32
    Views
    512

    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
  13. Replies
    14
    Views
    329

    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...
  14. Replies
    14
    Views
    329

    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...
  15. 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
  16. 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...
  17. 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...
  18. 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...
  19. Thread: Game

    by IanRyder
    Replies
    2
    Views
    138

    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...
  20. 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...
  21. Replies
    11
    Views
    287

    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...
  22. Thread: 2 questions

    by IanRyder
    Replies
    4
    Views
    162

    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...
  23. Replies
    11
    Views
    287

    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...
  24. 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...
  25. 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...
  26. 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...
  27. 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...
  28. 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...
  29. Replies
    10
    Views
    288

    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...
  30. Replies
    10
    Views
    414

    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...
  31. 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...
  32. 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...
  33. 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...
  34. 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...
  35. 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
  36. 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...
  37. 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...
  38. 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....
  39. 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...
  40. 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...
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.