Search:

Type: Posts; User: kareninstructor

Page 1 of 13 1 2 3 4

Search: Search took 1.33 seconds.

  1. Re: An Ideal option required instead of Listbox. Coud you suggest

    If you need some code samples check out the following GitHub repository and article. Code samples use SQL-Server to populate ListView controls yet any database can be used or no database.
  2. VS 2017 Re: Delete Record in Recordset by Row Number

    Is there a really good reason for using old school ADODB? It's easy enough to work with positions as seen in the following code which is part of the code sample for moving rows up/down in a...
  3. Replies
    14
    Views
    15,640

    Re: How do I move a DataGridView row?

    This is so that the code can be used in other projects, if you don't care for this then move the code to where you would like it to be. I'm always thinking ahead, never just one project, remember...
  4. Replies
    14
    Views
    15,640

    Re: How do I move a DataGridView row?

    Take a look at the following code sample which moves rows up/down using buttons. Even if you are not wanting to do this with buttons there is code that can be invoked without buttons.

    Data is...
  5. DataGridView auto-size columns options

    When there is a need to have each column in a DataGridView to display the widest value the solution may be to iterate each column and set column .AutoSizeMode to AllCells.

    Change the widest...
  6. Re: Getting the selected item in a ListView control

    If you want to learn about using a ListView including obtaining the selected single item see

    TechNet Wiki article Windows Forms ListView: Examining Detail view with SQL-Server (VB.NET)

    Full...
  7. Re: How to remove internet marks on a project item

    Even though you have a solution, here is what I was talking about. First off the original solution removed 'the mark of the web' in a command (cmd.exe) session while that works a better solution is...
  8. Re: How to remove internet marks on a project item

    Might try PowerShell. In this case the period is the current folder and -Recurse means to do that folder and any sub folders.


    dir -Path . -Recurse | Unblock-File
  9. Entity Framework Core 5 appsettings.json and logging using SQL-Server

    If using .NET Framework 5 with Entity Framework Core5 and like to configure your connection string and logging see the following GitHub repository.

    Log options (which can be modified easily)


    ...
  10. VS 2019 Re: from CheckedListbox to Parameters.AddWithValue

    This is a path to follow with a mock-up

    Extension method to get checked items


    Public Module CheckedListBoxExtensions

    <Runtime.CompilerServices.Extension>
    Public Function...
  11. Re: Check Combobox selection for Duplicates

    Here is a solution


    First item in each ComboBox is "Make a selection"
    Each ComboBox has the same items
    Prevents duplicate selections
    Apply button is only enabled when validation is true
  12. Replies
    8
    Views
    536

    VS 2019 Re: Protecting files from theft

    For proper protection consider purchasing this which many companies do. A random suggestion and if you search the web you will find others. Bottom line, a software developer should focus on coding...
  13. appsettings.json for Windows Forms

    In the .NET Framework prior to .NET Core application settings were in app.config file. All settings e.g. database connection, email setting etc in one file along with each setting are strings which...
  14. Replies
    27
    Views
    1,151

    Re: open excel and add values to cells

    An alternative is to use a free library which is not version specific as with Excel automation. In this case SpreadSheetLight where the majority of samples are in C# but I have a code sample to try....
  15. VS 2019 Re: .NET 5 - no listview scrollbars on deployed version

    Have you checked the versioning of the OS?
    https://github.com/dotnet/core/blob/master/release-notes/5.0/5.0-supported-os.md
  16. VS 2019 Re: Forms, Data sources and not running on the UI

    Here is a simple asynchronous method to load a DataTable from SQL-Server, no frill. Make sure to read the readme.md file.

    https://github.com/karenpayneoregon/forum-questions/tree/master/SqlSamples
  17. Re: Run form with responsive control with no async functions

    If you happen to be using VS2019 I have a code sample that shows how to keep an application responsive.

    There are two projects, a class project and a forms project on GitHub.

    The objective for...
  18. Re: What's teh use of canceling an async token if the function has already run?

    Have you considered using a timeout for the task? The following code default timeout is 3.5 seconds.


    Public Class AddressDetail
    Public Property Host() As String
    Public Property...
  19. VS 2019 Re: Trouble populating then updating a text box

    Hello,

    Totally agree with jmcilhinney in regards to thinking through the task by not coding, instead open a document (like Microsoft Word) and writing out requirements. Now write out pseudocode...
  20. VB.NET Core projects/Entity Framework Core

    Entity Framework is not for everyone while it seems that for reverse engineering an existing database VB.NET takes a backseat to C# where there are Visual Studio extensions (like EF Power Tools) and...
  21. Re: How to load DataGridView content everytime the app is run?

    Hello,

    Without seeing what you have coded so far we can't assist you as there are many ways you may have coded this task. More details and a sample of code goes along way.
  22. Visual Basic WinForms Apps in .NET 5 and Visual Studio 16.8

    Visual Basic, along with its Application Framework, is supported in .NET 5 and Visual Studio 16.8! Visual Studio 16.8 includes the Windows Forms Designer, so Visual Basic is ready for you to migrate...
  23. C#9 pattern matching/recursive patterns and new expression operator

    Microsoft usually provides decent code samples when it comes to new language features although sometimes the code samples provided are not relevant to real world usage. For this reason i have started...
  24. Replies
    9
    Views
    889

    VS 2019 Re: Json Deserialize to List of Class

    Try the following


    Imports System.IO
    '
    ' NuGet package below
    '
    Imports System.Text.Json

    Public Class Form1
  25. Re: Adding combobox to a datagridview that is bond to a datatable

    These forums are not about payable services but instead to assist developer. The code I suggested for a non programmer is a challenge but that is what developers do, work through task and many times...
  26. Re: Adding combobox to a datagridview that is bond to a datatable

    See the following.

    https://github.com/karenpayneoregon/visual-basic-getting-started/tree/master/DataGridViewComboBoxes

    179306
  27. Re: [RESOLVED] How to selected value of a dropbox column of a DataGridView programmat

    Although you have a solution, a better way is shown in the following code sample which takes more code yet is a better solution and only touches the DataGridView with DefaultValuesNeeded event.
    ...
  28. Re: How to prevent CancellationToken from being cancelled during downloadstring

    First off, here the class where the class is created here.

    If you remove


    If _cts.IsCancellationRequested = True Then
    _cts.Dispose()
    _cts = New CancellationTokenSource()
    End If
  29. Re: How to prevent CancellationToken from being cancelled during downloadstring

    Hello,



    This happens because ThrowIfCancellationRequested throws an exception which you are not checking for which can be done by wrapping the caller code in a try/catch.

    Check out the...
  30. VB .NET Working with Delegate and Events

    Blog entry with code samples in a personal GitHub repository.

    From hobbyist to seasoned developers delegates are avoided or attempts are made to understand them, which in many cases is met with...
  31. Replies
    5
    Views
    1,295

    Re: Basic asynchronous operations

    I code in ASP.NET Core/Entity Framework Core and WPF/Entity Framework Core applications, doubt that Visual Basic classic can even come close to matching what can be done with ASP.NET Core/Entity...
  32. Replies
    5
    Views
    1,295

    Re: Basic asynchronous operations

    Never, ever touched VB6 and never will.

    The code samples are not to impress but for learning.
  33. Replies
    5
    Views
    1,295

    Basic asynchronous operations

    Developers, novice and hobbyist can avoid performance bottlenecks and enhance the overall responsiveness of your application by using asynchronous programming. Asynchrony is essential for activities...
  34. Re: [vb.net] How to use a progress bar while downloading through HttpClient

    Simply declarate the method StarDownLoad with async and the Task needs await. Here is a simple example, does no downloading. The form remains responsive.

    Two buttons, one ProgressBar.


    Imports...
  35. Re: MVVM (Model-View-ViewModel) Example ?

    Enter this into a Google search with quotes "wpf mvvm github example" as there are plenty over on GitHub.
  36. Re: Problem in class defination

    All you need is the following


    Public Class RectArea
    Public ReadOnly Property Area() As Double
    get
    Return Length * Width
    End get
    End Property
    Public...
  37. Re: Determine Target CPU | Microsoft Access OleDB

    The following should work


    Select Case RuntimeInformation.ProcessArchitecture
    Case Architecture.X64
    '
    Case Architecture.X86
    '
    Case Else
    '
  38. VS 2017 Re: Error trying to connect Entiry Framework in code using EntityConnectionStringBuil

    The following focuses on getting a Entity Framework connection string from app.config, note you can't change it only get it while Entity Framework code first we have compete control over the...
  39. Re: Mistake with DGV Operator '' is not defined for type 'DBNull' and string

    Here is a simple example for IsDbNull


    Dim query = DataGridView1.Rows.OfType(Of DataGridViewRow)().
    Where(Function(row) Not row.IsNewRow).
    GroupBy(Function(row)
    Return New With {...
  40. Replies
    0
    Views
    2,799

    Microsoft NorthWind 2020

    If you need a decent database model to learn SQL which is not too complex check out the following link for a modified version of Microsoft NorthWind database. Included are several SQL SELECT...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width