Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 3.43 seconds.

  1. Replies
    6
    Views
    308

    VS 2022 Re: Break stopped working

    That is generally overkill, given that the VS installer has a Repair option. That is basically a reinstallation without uninstalling.
  2. Replies
    6
    Views
    308

    VS 2022 Re: Break stopped working

    Have you tried placing a breakpoint in a place that you know for sure gets executed, e.g. on the Load event handler of a form or the Main method of a Console app?
  3. Replies
    6
    Views
    243

    Re: VB2015/WPF/DataGrid

    As I said, the DataGrid was effectively deprecated with the introduction of the DataGridView. Windows Forms had to be reimplemented for .NET Core so they presumably saw no point in reimplementing a...
  4. Re: Looping problematic connection

    Thinking about it further, I would guess that connection pooling is having an effect here. The way ADO.NET is designed, the DbConnection object that you use is generally quite light-weight and the...
  5. VS 2022 Re: How to have a content collection on a user control that has a prop refs another c

    Interesting.
  6. Re: Looping problematic connection

    It seems quite odd that a connection would succeed but a command would fail, but it seems quite bizarre that closing and reopening the form would make any difference at all. Do you actually mean...
  7. VS 2022 Re: How to have a content collection on a user control that has a prop refs another c

    and that can be shortened to:


    Return If(DataSourceType?.Name, "Unknown")
  8. VS 2022 Re: How to have a content collection on a user control that has a prop refs another c

    OT, this doesn't seem to make sense:
    Dim DataSourceType = TryCast(BindingSource?.DataSource, Type)
    How could you ever cast a data source as Type when no data source would ever inherit Type? If you...
  9. Replies
    6
    Views
    243

    Re: VB2015/WPF/DataGrid

    Have you actually created a WPF project in the first place? You can embed WPF controls in Windows Forms apps and vice versa but it is not a trivial exercise and should be avoided if possible.

    What...
  10. Replies
    6
    Views
    243

    Re: VB2015/WPF/DataGrid

    There is a DataGrid control in Windows Forms but that was effectively deprecated with the introduction of the DataGridView in 2005 and .NET 2.0.

    This question is about WPF though, so the DataGrid...
  11. Re: Looping problematic connection

    To be clear, is it the OpenAccessConnection.Open call that is failing or the OpenAccessCommand.ExecuteReader call? Make sure that you actually debug (set a breakpoint and step through the code) to...
  12. Replies
    4
    Views
    221

    Re: Drag'n'Drop cursor problem?

    That's probably not the way to go. It would probably be better to use an owned form, i.e. call Show(Me). That way, the second form will be shown in front of the first form.
  13. Replies
    5
    Views
    203

    VS 2019 Re: Read certain value from HTML file

    You want to read text from HTML data. The HAP is for reading HTML data. You really don't see the connection?
  14. Replies
    5
    Views
    203

    VS 2019 Re: Read certain value from HTML file

    You should use the HTML Agility Pack to read HTML data in .NET code.
  15. Re: [RESOLVED] help with mssql query to return top five selling products by date

    If the issue has been resolved then it would be nice for you to provide your solution, which may help others with similar issues. It also means that we can provide improvements if your solution is...
  16. Re: Display Image From dataGridView to multi picturebox in VB.NET

    The first one is because it should have been BindingSource1.Current, which I did actually mending in my post. If you had pointed out what the error was in the first place, instead of just that there...
  17. Re: Display Image From dataGridView to multi picturebox in VB.NET

    No it isn't. You just used it wrong.
  18. Re: Display Image From dataGridView to multi picturebox in VB.NET

    My code is fine. That simply means that you have a String variable named Path at a higher level than that method, while my code was referring to the System.IO.Path class. Notice how I use a more...
  19. Re: Display Image From dataGridView to multi picturebox in VB.NET

    You should bind the DataTable to the DataGridView via a BindingSource. You can then handle the CurrentChanged event of that BindingSource and get the current record from the Current property. You can...
  20. Re: [RESOLVED] What causes this rectangle ?

    Have you disabled visual styles for that project? The visual cue for an active button is different based on that. With visual styles disabled, a box on the Button is used but I thought that it was...
  21. Re: Which variable type for math on duration value ?

    You have posted this in a CodeBank forum, which are for sharing working code samples, not asking questions. I have asked the mods to move this thread to the appropriate forum.
  22. Replies
    10
    Views
    343

    Re: Management of sql server using vb6

    The word "instance" has a specific meaning in the context of SQL Server. Are you actually saying that you want to create a copy of your database schema or do you genuinely want to create a new SQL...
  23. Re: Handle combobox items inside the datagridview column

    As for the issue, you can't keep changing the items in the column. You need to change the items in the relevant cell. If an item is selected in a cell then that item has to actually exist in that...
  24. Re: Handle combobox items inside the datagridview column

    First of all, why create a new column and then immediately discard it and use an existing one?


    Dim comboitem As New DataGridViewComboBoxColumn
    comboitem =...
  25. Replies
    153
    Views
    2,620

    Re: Is this justice???

    I think the main question is, if someone enters your home illegally, what are they there for? Most people would be there to steal and will flee themselves if given the chance.
  26. Replies
    13
    Views
    372

    VS 2019 Re: [RESOLVED] Check checkbox in a loop

    I'm not really sure why you would play with that in the first place. The OfType method already returns items of the specified type as that type, so your cntrl variable is already type CheckBox. That...
  27. Replies
    153
    Views
    2,620

    Re: Is this justice???

    You're forgetting that these people simply don't care about other people.
  28. Replies
    153
    Views
    2,620

    Re: Is this justice???

    I have seen a number of examples of people online saying that they want someone to break into their house so that they can shoot them with impunity under SYG laws. There are undoubtedly more people...
  29. Replies
    13
    Views
    372

    VS 2019 Re: [RESOLVED] Check checkbox in a loop

    If you wanted to do it without any LINQ at all (OfType, Where and Count are all LINQ extension methods) then you could do it like this:

    For Each ctl In myContainer.Controls
    Dim cb =...
  30. Replies
    13
    Views
    372

    VS 2019 Re: Check checkbox in a loop

    For future reference, expressions like this are likely to cause confusion:

    You should say "test" or the like rather than "check", given that "check" has another obvious meaning in that context...
  31. Re: How to make Xamarin Android App talk to VB Desktop Application

    I don't use Xamarin so maybe I'm wrong but I wouldn't expect that they would talk to each other. They would each talk to the same server. Maybe that server is just a database containing shared data...
  32. Re: Unable to Delete Worksheet with Specific Name using Microsoft.Office.Interop.Exce

    This is just an educated guess but does the Worksheets collection have a Remove method?
  33. Replies
    2
    Views
    218

    Re: Break-in to long running program

    You should follow the CodeBank link in my signature below and check out my thread on using the BackgroundWorker class. You can adapt the examples to your specific needs.
  34. VS 2010 Re: Sum Selected Cells of DataGridView only in specific columns

    The total is just a number, so you can format it any way you want. Convert it to a String by calling its ToString and specify the format you want.
  35. Replies
    6
    Views
    402

    Re: Databinding

    Then your issue is resolved, because I have already explained that one wouldn't because one can't.
  36. VS 2015 Re: control.TabStop gives combobox a focus

    Or you could just set ActiveControl to Nothing if you don't want there to be an active control.
  37. Re: remove duplicate from combo box connected to database

    Seems you've misjudged yourself considerably.
  38. Replies
    6
    Views
    402

    Re: Databinding

    The whole point of data-binding in Windows Forms is to bind data to the UI. At the heart of it is the System.Windows.Forms.Binding class. If you read the documentation for that class, the fact that...
  39. VS 2015 Re: control.TabStop gives combobox a focus

    When a form is displayed, if it contains controls that can receive focus then one of those controls will receive focus. By default, that will be the first control in the Tab order. If you want a...
  40. Re: remove duplicate from combo box connected to database

    Like what? By pointing out what you did wrong and what you should do instead? Oh, you poor thing. Seriously, so many people around here react to the simplest bit of criticism like you're stabbing...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width