Search Results - VBForums

Search:

Type: Posts; User: IanRyder

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds; generated 45 minute(s) ago.

  1. 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...
  2. 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...
  3. Replies
    12
    Views
    176

    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...
  4. Replies
    12
    Views
    176

    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,
    ...
  5. Replies
    12
    Views
    176

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

    Please ignore.

    Ian
  8. 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...
  9. Replies
    14
    Views
    281

    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...
  10. Re: Extract numbers from HTML Inner Text / Html

    Nice one too ident,

    I never thought to replace the Where clause with First.

    Ian;)
  11. Replies
    6
    Views
    155

    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...
  12. Replies
    5
    Views
    147

    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...
  13. Replies
    2
    Views
    107

    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...
  14. 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:-...
  15. Replies
    6
    Views
    206

    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...
  16. Replies
    6
    Views
    206

    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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
  21. Replies
    14
    Views
    522

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

    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,
  23. Replies
    2
    Views
    146

    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...
  24. Replies
    4
    Views
    224

    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...
  25. Replies
    21
    Views
    601

    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...
  26. 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...
  27. 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...
  28. Replies
    15
    Views
    535

    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...
  29. Replies
    15
    Views
    535

    VS 2010 Re: Proper ordering

    Hi,

    You can do what you need with a single line of code using LINQ. Have a look at this example:-

    ClipBoardText1 = String.Join(ControlChars.Tab, PanelHeader.Controls.OfType(Of...
  30. Re: Recursive file search - my code not quite there yet

    Hi,

    The reason why your routine is returning all files and not those files limited to the specified pattern is because you are NOT iterating the Array of files generated by the pattern. You are...
  31. Replies
    40
    Views
    1,180

    Re: Sub Main not found in ??

    Hi,

    From looking at the code you have posted in post #1, the error you are getting and knowing the type of applications you have been doing recently I can only surmise that you are changing things...
  32. Replies
    40
    Views
    1,180

    Re: Need help using thread to add two numbers!

    Hi,

    I see that you have had lots of other advice while I was writing this but here are some more tips for you:-

    First of all start to use Descriptive variable names. This will help you...
  33. Re: Get an element content by tag name and class

    Hi,

    Assuming that this is part of a bigger project using a WebBrowser control then you can use the GetAttribute method of the HtmlElement class to get what you need. Here is a quick example of how...
  34. Replies
    5
    Views
    208

    Re: Display file list in Datagridview

    Hi,

    Nice post DDay9 but there is a small flaw in your code that should be pointed out. By using the first overload of the DataColumn class then all columns in the Datatable are, by default,...
  35. VS 2008 Re: [VB.net]Get Files Based On Creation Date(Most recent created files)

    Hi,

    You nearly got there with the second example. Here is a complete example for you:-

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim myDirectory As...
  36. Re: How to get this regular expression to NOT include the html and only the innerhtml

    Nice tutorial ident.

    I had a funny feeling that I may have been both over simplifying and bloating that expression but it was early morning.:D

    Cheers,

    Ian
  37. Re: How to get this regular expression to NOT include the html and only the innerhtml

    Hi,

    If this is part of a larger HTML document then you may want to look into using the methods available to you in the HTMLDocument class but if you want to continue with RegEx then have a go with...
  38. VS 2012 Re: Form takes time to load, implement BackgroundWorker?

    Hi,

    All you need to do is make sure that you pass the right information between the events. Here is an example flow of what you could do. You add all the results to a dataset and then pass the...
  39. Re: how to sort arraylist with strings in vb.net

    Hi,

    You have the ability of using an IComparer in .NET2 so keeping on the same theme as ident has already shown to split Alphabetic and Numeric characters with Regex you can combine the two...
  40. Replies
    2
    Views
    240

    VS 2010 Re: Row Count From Mysql

    Hi,

    You seem to have got things a bit mixed up and back to front there. You need to open the connection, execute the reader and then do something. Have look here:-

    Private Sub...
Results 1 to 40 of 498
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.