Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. 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...
  2. 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...
  3. Replies
    10
    Views
    241

    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...
  4. Replies
    10
    Views
    344

    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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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
  10. 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...
  11. 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...
  12. 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....
  13. 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...
  14. 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...
  15. Replies
    12
    Views
    303

    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...
  16. Replies
    12
    Views
    303

    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,
    ...
  17. Replies
    12
    Views
    303

    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...
  18. 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
  19. Trying out an Avatar for the First Time - Scary!

    Please ignore.

    Ian
  20. 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...
  21. Replies
    50
    Views
    1,407

    VS 2010 Re: Save a file

    Hi,

    File.WriteAllLines(filePath, {TextBox1.Text, TextBox2.Text, TextBox3.Text})

    File.WriteAllLines(strFileName, (TextBox1.Text, … etc.

    Be very careful when learning new things. The reason...
  22. Re: Extract numbers from HTML Inner Text / Html

    Nice one too ident,

    I never thought to replace the Where clause with First.

    Ian;)
  23. Replies
    6
    Views
    482

    VS 2010 Re: System Imagelist and VB.NET

    Hi,

    Here is something that I wrote a while ago for a ListView. Have a play and see if it can fit your needs with the TreeView:-

    Private Sub Button1_Click(sender As System.Object, e As...
  24. Replies
    5
    Views
    288

    Re: Data doesn't retrieve

    Hi,

    If you would like some simple advice then forget all that code that you have written. The way to display information from Records in a Database in your VS Project is to use Data Binding on...
  25. Replies
    2
    Views
    173

    Re: CLass With series of points

    Hi,

    The first thing to do is to add this Reference in your project to:-

    System.Windows.Forms.DataVisualization

    You can then Import that Namespace into your project which will then allow you...
  26. Re: Extract numbers from HTML Inner Text / Html

    Hi,

    The first thing to do is to fix that HTML snippet that you posted since it is missing some of its "br" closing tags. Once done, here are two examples for you:-

    Using traditional For loops:-...
  27. Replies
    6
    Views
    309

    VS 2010 Re: Questions on TreeView.

    LOL,

    Nice one techgnome, I never thought of that? This works just as good:-

    Private Sub TreeView1_AfterCheck(sender As Object, e As TreeViewEventArgs) Handles TreeView1.AfterCheck
    For Each...
  28. Replies
    6
    Views
    309

    VS 2010 Re: Questions on TreeView.

    Hi,

    A little recursive routine will handle this sort of job for you. Just check for additional nodes in the Parent node you are working with and then call the same routine again for every child...
  29. VS 2013 Re: Any better method to click 3th div with specific class name?

    Hi,

    Since you have multiple Divs with the same Class name then I would not really say there is a better method than what you have already got but if you are looking for other ways to do the same...
  30. VS 2005 Re: VB2005 - Program freezing when receiving input from barcode scanner

    Hi,

    OK, If you have used the code as demonstrated then it suggests that there are some other characters after the Carriage Return / Enter character coming from the scanner since how the code works...
  31. VS 2005 Re: VB2005 - Program freezing when receiving input from barcode scanner

    Hi,

    I saw this the other day but that code was just a bit too much to get your head round so I did not and have not read it. However, I get the point of the issue now and even though I do not have...
  32. Re: Datagridview Click row, auto copy to clipboard

    Hi,

    I posted an example of how to do this sort of thing the other day but for completeness here is another example using a DataGridView’s cells as opposed to it's underlying Data Source:-

    'For...
  33. Replies
    14
    Views
    884

    Re: [RESOLVED] SortCompare Question

    Hi,

    I see that you have now Resolved this Thread but did you actually get to a final solution that Resolved your issue? You did not mention that you did so.

    Cheers,

    Ian
  34. Replies
    14
    Views
    884

    Re: SortCompare Question

    Hi,

    You can solve this by building your own Custom IComparer Interface. Have a look at this example:-

    DataGridView.Sort Method (IComparer)

    Hope that helps.

    Cheers,
  35. Replies
    2
    Views
    205

    VS 2008 Re: Array list with db oledb problem

    Hi,

    You cannot write your Access or SQL Query like that since an Array of Parameters, which is what you are trying to pass to the Database, cannot be passed from your application to the Database...
  36. Replies
    4
    Views
    343

    VS 2010 Re: SqlBulkCopy Column Mappings

    Hi,

    I have been doing a lot of work with the SqlBulkCopy class lately and I have found that the easiest way to do things is to map the Column Indexes that need to be transferred. So long as the...
  37. Replies
    21
    Views
    992

    Re: [RESOLVED] Listbox array for Pictureboxes

    Hi,

    I see that you have a solution which is great but just for information there is an easier way to do this. If you name your Static PictureBox's correctly then you can access the Forms Controls...
  38. Re: Making button invisible if nothing from Combobox is selected

    Sorry Edgemeal,

    Yes, you can set this back to -1 in Code, but I was thinking more along the lines of a user not being able to set this back to an Unselected option using the drop down style being...
  39. Re: Making button invisible if nothing from Combobox is selected

    Hi,

    Edgemeal is correct but:-

    Other than on Form Load where this ComboBox may not have anything selected, using the DropDownStyle, DropDownList, does NOT allow you to deselect an option that...
  40. Replies
    15
    Views
    717

    VS 2010 Re: Proper ordering

    Hi again,

    I was looking at this again when tg posted and that is one way to do things.

    However, the first thing I would say is that this is not what you asked for in your original post which is...
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.