Search:

Type: Posts; User: kareninstructor

Page 1 of 13 1 2 3 4

Search: Search took 0.24 seconds.

  1. Replies
    13
    Views
    1,114

    Re: Conversion Question

    True I was using my own rather than using from an ASP.NET Core project using EF Core as shown below.



    public class IndexModel : PageModel
    {

    public IDataProtector Protector;
    private...
  2. Replies
    13
    Views
    1,114

    Re: Conversion Question

    A little late.

    Consider the following were one parameter is nullable and the other not nullable. First, no warning, second gets a warning.



    public class Operations
    {
    public static...
  3. Replies
    0
    Views
    859

    Basic sample for Dapper/SqlLite

    Dapper NuGet is performic package for those working with a data provider. No need to be concerned about opening and closing a database connection.

    Data operations work off a connection, no...
  4. Thread: Dapper

    by kareninstructor
    Replies
    9
    Views
    1,293

    Dapper

    Out of curiosity does anyone here use Dapper and if not would there be an interest in learning about Dapper?

    https://github.com/DapperLib/Dapper
    (toolbar is missing thus the link above rather...
  5. Re: VB.NET Proper Use of MsgBoxResult.Yes/No

    Not to my knowledge, I use to have code written in C# usable in .NET Framework but purged it when moving to .NET Core.
  6. Re: VB.NET Proper Use of MsgBoxResult.Yes/No

    Rather than



    Dim result As DialogResult = MessageBox.Show("Coffee (Yes) or Tea (No)", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
    If result = DialogResult.Yes Then
    Text...
  7. Replies
    29
    Views
    3,847

    Re: Confusion with sqLite

    It is not wasteful to have the dll in each project today, maybe back in 1990. Most developers have extremely large drives and most users have ample space for a hard drive.

    Have you seen Central...
  8. VS 2022 Re: How to have a alarm stay on until a button is pressed?

    Using a Toast notification is an option.

    Add NuGet package Microsoft.Toolkit.Uwp.Notifications

    Update your project file to include


    ...
  9. Re: Requesting Help Debugging a Windows Service

    See my Microsoft TechNet article Visual Studio debugging windows services for VB.NET or C#.

    Also, the following is in C# but might give you alternates in making debugging a service easier combined...
  10. Replies
    0
    Views
    4,794

    Bootstrap 5 - change focus color

    Why change the focus color of input controls? To match the theme of a web application.

    jsfiddle example which matches the screenshot below

    Place the following in a .css file



    html {
    ...
  11. Replies
    9
    Views
    1,622

    Re: VB.NET Increment string

    Try the following


    Imports System.Runtime.CompilerServices

    Public Class Form1
    Private Sub IncrementButton_Click(sender As Object, e As EventArgs) Handles IncrementButton.Click
    ...
  12. What’s new for the WinForms Visual Basic Application Framework

    https://devblogs.microsoft.com/dotnet/update-to-winforms-vb-appframework/

    https://learn.microsoft.com/en-us/dotnet/visual-basic/getting-started/strategy
  13. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    My job is done here :)
  14. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    You sure did.

    Here is the actual answer https://twitter.com/scrumtuous/status/1617958167094382592?s=20
  15. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    No :)
  16. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    I got this from the woman who does interviews for Google.
  17. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    No :)
  18. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    No :)
  19. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    No ;)
  20. Replies
    66
    Views
    5,513

    Re: Tricky interview question

    Nope
  21. Replies
    66
    Views
    5,513

    Tricky interview question

    In 5 words or less, explain the red 'x'?

    187002
  22. Replies
    0
    Views
    10,269

    .NET Core 7 - DateOnly/TimeOnly

    Every developer/coder at some point will work with dates. For the majority of those working with dates using DateTime (or DateTimeOffset) will suffice for most task while for others with needs such...
  23. Re: GetEnumerator error for constructing Dictionary of Icons from Resouce List

    I have a library for this is using .NET Core 7 found here.
  24. Replies
    12
    Views
    1,453

    Re: .NET 5 vs Framework question

    On a side note, forget .NET Core 5, it's a stepping stone to .NET Core 6 which is long term support.

    In my workplace .NET Core 5 is only used for me teaching mainframe developers Razor pages (long...
  25. Replies
    12
    Views
    1,453

    Re: .NET 5 vs Framework question

    That is odd, seems like if there is a reference for FW 4.8 it should work although I've only used 6.0 and that was a one-off solution.

    Is the Core project compiled for Prefer 32-bit ? And was this...
  26. Re: Tools or methods for "converting C# code into VB.Net code"

    Tangible Software converters has various options that allow control of conversions under the option menu or gear button in it's toolbar.
  27. Replies
    1
    Views
    2,394

    BindingNavigator for .NET Core 5

    To obtain a BindingNavigator add the following component to your project, rebuild and the BindingNavigator appears in Visual Studio ToolBox.

    Working example



    Public Class...
  28. Replies
    14
    Views
    1,441

    VS 2022 Re: Prevent Duplicates in Array

    True, I was not going there, figured my reply was to inject an alternate idea and leave the rest to the OP.
  29. Replies
    14
    Views
    1,441

    VS 2022 Re: Prevent Duplicates in Array

    You could use a HashSet, add values than use ToArray on the HashSet. In the example below is a proof of concept, you can add in the random values while written as shown below you know what the input...
  30. VS 2015 Re: parse value from datagrid to button name

    Consider each time a new button is created add it to a private List(Of Button), then to remove the last button, get it by index, pass it to Controls.Remove then remove it from the list via Remove....
  31. Replies
    5
    Views
    860

    Re: Deserialising a JSON array

    Wrote the following in C#, converted to VB.NET



    Option Infer On

    Imports Microsoft.VisualBasic
    Imports System.Diagnostics
    Imports System.IO
    Imports Newtonsoft.Json
  32. Thread: Gmail

    by kareninstructor
    Replies
    8
    Views
    2,281

    Re: Gmail

    It's not a VB or even C# issue, it's Google's security changes.
  33. Thread: Gmail

    by kareninstructor
    Replies
    8
    Views
    2,281

    Re: Gmail

    If you are sure all settings are correct than go to your Google account, Less secure app access and turn it on. If this works it's a fix that will only be available to the end of this month, after...
  34. Re: Regex VS MailAddress Function To Verify Proper Email Syntax?

    Another option is data annotations



    Public Class Annotations
    Public Shared Function ValidEmail(ByVal emailAddress As String) As Boolean
    Return (New...
  35. Re: vb.net increment string alphanumeric/numeric

    See if this works for you.


    Imports System.Text.RegularExpressions

    Module Program
    Sub Main(args As String())
    Console.WriteLine($" F1124 {NextValue("F1124")}")
    ...
  36. Replies
    25
    Views
    2,916

    VS 2010 Re: putting text to progressbar

    If you don't mind adding a C# class project to your Visual Studio solution, check out the following C# class project. Once added to your solution, reference the project in your project, add the...
  37. Replies
    18
    Views
    2,143

    Re: System.Diagnostics.Process()

    If working with .NET Core try adapting to the following simple example. I write this in C# then converted it as no time to write it in VB.


    Option Infer On

    Imports System
    Imports...
  38. Replies
    4
    Views
    982

    Re: What is the item CodeFile.cs ?

    If you look at a code file when adding a new file it tells you. In short has zero code in it.
  39. Re: Recompile Multiple Solutions

    I have never had a reason to try this but thought it was intriguing how to perform both debug and release builds. My first thought was, MS Build.

    With that mentioned and untested the following...
  40. Re: Connecting Visual Studio To SQL Server

    Best practices

    Place database operations in a separate class

    For SELECT statement, never use *, always specify only the columns needed.

    In the following example, User class represents a...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width