Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.63 seconds.

  1. VS 2019 Re: Thread.Join vs Application.DoEvents

    I'd say that your primary mistake was creating a Console application in the first place. I would suggest that you follow the CodeBank link in my signature below and check out my thread on creating a...
  2. Re: Which Access Database Engine i need to download and install ?

    If you want to install both 32-bit and 64-bit ACE, you can install the 2010 and 2016 versions.
  3. Re: Which Access Database Engine i need to download and install ?

    There is also the Prefer 32-bit box to consider. Here's how it works:

    x86: runs in a 32-bit process on all systems
    x64: runs in a 64-bit process, so only runs on 64-bit systems
    Any CPU with...
  4. VS 2019 Re: Keeping excel opened during project utilization

    Get rid of the module. It's pointless. Just declare your variables outside the event handlers. Variables declared outside any method are accessible within all methods in that type.

    Public fields...
  5. Re: Which Access Database Engine i need to download and install ?

    You need the provider that matches your application, not your OS. If you install the 64-bit provider then that will only work with 64-bit applications.
  6. VS 2019 Re: Keeping excel opened during project utilization

    Open the project properties and then open the application events. The Startup event is raised when the applications starts up and the Shutdown event is raised when the application shuts down.
  7. VS 2022 Re: Application Settings Bindings to a Control Missing.

    It's already too late when you get to that step. As I already said, you have to select a project template that specifies that it targets .NET Framework, which you do two steps earlier. If you get to...
  8. Re: [RESOLVED] Why is my app. not closing ?

    OK, this is wrong from the outset. You should not be closing the startup form in its own Load event handler. You should be handling the Startup event of the application itself and doing your check...
  9. Re: Why is my app. not closing ?

    Because that's not how Application.Exit works. If that is what you want, which it absolutely should not be, then you would use the End statement. Application.Exit closes all message pumps but all...
  10. VS 2022 Re: Application Settings Bindings to a Control Missing.

    If you have already created a .NET Core project then you can only specify versions of .NET Core to target. If you want to target .NET Framework then you have to create a .NET Framework project in the...
  11. VS 2022 Re: Application Settings Bindings to a Control Missing.

    WinForms has been reimplemented for .NET Core. Not all features have been reimplemented yet and some never will. That feature simply doesn't exist for .NET Core projects. Note that .NET 5 and later...
  12. Replies
    1
    Views
    156

    Re: Form sizing

    If you want a form to be sized based on a PictureBox then you can do this:
    ClientSize = myPictureBox.Size
  13. Replies
    6
    Views
    418

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

    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?
  15. Replies
    6
    Views
    317

    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...
  16. 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...
  17. VS 2022 Re: How to have a content collection on a user control that has a prop refs another c

    Interesting.
  18. 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...
  19. 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")
  20. 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...
  21. Replies
    6
    Views
    317

    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...
  22. Replies
    6
    Views
    317

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

    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.
  25. Replies
    5
    Views
    250

    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?
  26. Replies
    5
    Views
    250

    VS 2019 Re: Read certain value from HTML file

    You should use the HTML Agility Pack to read HTML data in .NET code.
  27. 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...
  28. 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...
  29. Re: Display Image From dataGridView to multi picturebox in VB.NET

    No it isn't. You just used it wrong.
  30. 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...
  31. 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...
  32. 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...
  33. 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.
  34. Replies
    10
    Views
    379

    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...
  35. 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...
  36. 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 =...
  37. Replies
    153
    Views
    2,943

    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.
  38. Replies
    13
    Views
    447

    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...
  39. Replies
    153
    Views
    2,943

    Re: Is this justice???

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

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width