Type: Posts; User: kareninstructor

Page 1 of 13 1 2 3 4

Search: Search took 0.73 seconds.

  1. Re: [RESOLVED] Give myself permission to access a sql database I created through a vb

    One when is self-taught many times the person does not perform deep dives into what they are attempting to achieve thus can cause undue wait time for others to reply and then take time to understand...
  2. VS 2019 Re: MSB4181 "task" returned false but did not log an error

    If appropriate, looks like you are targeting .NET Framework 3.5 but trying to use .NET Core 6
  3. Re: Give myself permission to access a sql database I created through a progra

    Your code is difficult read not being in a code block so my question - is the connection for creating the table for the database? It appears the connection is pointing to master, not the newly...
  4. Learn how to find files in folders and sub-folders


    The following requires .NET Core 5, a willingness to work with delegates/events, working with classes and asynchronous programming.

    At one point in all developer’s career there is a...
  5. VS 2019 Re: MSB4181 "task" returned false but did not log an error

    See MSB4181: The 'task' task returned false but did not log an error
  6. Replies

    Re: Ultra Basic Question

    First off, I realize this is rather late.

    Cheap way to get a proper connection string, create a throw-a-way project, add a new data source which walks you through the process which when done...
  7. Re: Use default windows icons on a form?

    If using .NET Core 5 or higher consider using TaskDialogPage/TaskDialog which allows you to pass in an Icon. So rather than getting a system Icon, make your own.

    See the following GitHub...
  8. Re: how to learn C# for the first time

    My recommendation is to subscribe to Pluralsight which is a paid for site.

    There are 360 courses on C# which branch into two paths. Before starting any courses there is an optional assessment test...
  9. Replies

    Re: dotnet tools

    Definition of dotnet tools "A .NET tool is a special NuGet package that contains a console application."

    Some predefined commands which run via a PowerShell window or command prompt

    dotnet new...
  10. Replies

    dotnet tools

    I'd like to know if developers here have learned how to write dotnet tools or have used available tools from NuGet (see list) were the majority focus on a handful of topics.

    Reason for asking, I'm...
  11. Re: |DataDirectory| and BindDebug Blues

    You can place the code where ever makes sense, like Shown event. In regards to make things worst, this is why it's important to use version control such as GitHub, learn about stashes, branches,...
  12. Re: |DataDirectory| and BindDebug Blues

    Can you see what this returns?


    Because of how its done internally.
  13. TaskDialog alternate to MessageBox

    Ever need to display a message box for “Do not show again”, “auto-close”, “Open links”, specify how many buttons on a dialog along with the text? These are just a few example found in the following...
  14. Replies

    VS 2019 Re: Cancellation of task

    See my GitHub repository for various code samples.
  15. Replies

    VS 2019 Re: Cancellation of task

    Make sure you don't have a check on Common Language runtime exceptions under Exception settings in Visual Studio.

    See the following example for a basic example that will not break on a...
  16. Replies

    Re: Learning Visual Basic Net

    Although VB.NET is a language that can accomplish many task into today’s world if you are going to have a future coding C# is the language to select from the Visual Studio ecosystem as there is a...
  17. Re: Help creating a CSV file from a text file

    If each section is 84 in length then you can chunk the array. Here I chunk three use a mocked array.

    Module Program
    Sub Main(args As String())
    Dim lines = Enumerable.Range(1,...
  18. Replies

    VS 2008 Re: Build Time

    What is the use case for building on a server rather than a local box? And if this can't be changed consider Azure continuous integration which when done in house setup properly would be an option...
  19. MessageBox alternates for .NET Core

    When there is a need to display information or ask a question it’s common to use MsgBox or MessageBox which for most cases works.

    Then there are cases when the button text is not suffice,...
  20. Re: update collection from datagrid

    If you have not, implement INotifyPropertyChanged on your model

    Set DataGridTextColumn binding e.g. Binding="{Binding FirstName, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}",...
  21. Replies

    VS 2019 Re: JSON to DataGridView

    One possibility, use json files with a structure which defines columns and data e.g.

    "ColumnDefinitions": [
    "HeaderText": "Id",
    "DataPropertyName": "Identifier",
  22. VS 2019 Re: Logged in user tracking and close instance of seleced user's

    First off, one question per-thread.

    If the malfunction is not catastrophic then you need to properly handle the problem using assertion and/or try-catch statements and advise that you create unit...
  23. VS 2019 Re: Issue managing multi same forms with backgroudWorker

    You should read Thread.Sleep is a sign of a poorly designed program.
  24. VS 2019 Re: Issue managing multi same forms with backgroudWorker

    Not sure what that means

    If you are not interested in an infinite logic then consider a System.Threading.Timer which accepts a TimerCallback Delegate
  25. Replies

    VS 2019 Re: Combobox Tricks

    My preference is what techgnome mentioned in regards to a List(Of T).

    Here I load data using the following class.

    Screenshot 182847

    Public Class Employee
    Public Property EmployeeID...
  26. VS 2019 Re: Issue managing multi same forms with backgroudWorker

    This is just down right wrong

    Public Sub WorkerDoWork()

    For i = 0 To 1111111111111111
    Me.Invoke(LaunchUpdateLabelDelegate, i.ToString)
    End Sub
  27. Re: Generate classes from SSMS in Visual Studio 2019

    I never heard of PetaPoco before, took a quick look at PetaPoco.Core.ttinclude and with that the PasteSQL is limited in that it only does SQL-Server unlike PetaPoco which does multiple databases.
  28. Replies

    Re: Clone and Rename - Install File

    This is really easy with Visual Studio 2010 and higher using Resharper extension.

    High level, copy the solution folder then paste, change the folder name. Open the solution, change the namespace...
  29. Generate classes from SSMS in Visual Studio 2019

    PasteSQL C# Classes

    This add-in will allow you to paste SQL create statements from SQL Server and create C# classes from the table. In SSMS, Right click on a table, Script Table as> Create to>...
  30. Replies

    Visual Studio Code tricks

    Open a GitHub repository in Visual Studio Code in your browser

    Open a GitHub repository (try one of yours first)
    Type a period character
    This starts VS Code
    On the left is a menu followed...
  31. Replies

    Re: Dictionary, more than one item

    For learning, another option is Lookup<TKey,TElement>

    In the following code written many years ago focus on Demo_3b while there are other examples which can be considered.

    Public Class...
  32. Re: Delete lines between specific 2 lines in text file using

    According to your last response the best option is to populate a .json file where each question has options like you presented, use or System.Text.Json to read/write to the file.

  33. Re: Delete lines between specific 2 lines in text file using

    Consider using a comma-delimited file coupled with a concrete class which represents your data.

    Sample data in a file

    1,Question 1, answer 1
    2,Question 2, answer 2...
  34. VS 2019 Re: Cell value of First colum & last row in datagridview

    An alternative is to load the DataGridView by setting the DataSource be it a DataTable or a list. Let's say columns are EmployeeID, LastName, FirstName, Country in a DataTable and populated from a...
  35. Replies

    Re: Powrshell command and output

    The cheap way is using Process.Start. Since you have one variable that can be done with string interpolation. The following is a working proof of concept which gets the current IP.

  36. Replies

    Re: Basic url opening in VS 2019

    Note the OP has already done this in the initial post.
  37. Replies

    Re: Basic url opening in VS 2019

    If using .NET Core consider the following NuGet package (source)

    Install-Package MintPlayer.PlatformBrowser

    Option Infer On

    Dim browsers = PlatformBrowser.GetInstalledBrowsers()
    For Each...
  38. Replies

    Re: Basic url opening in VS 2019

    Here is an example targeting Chrome browser

    Imports Microsoft.Win32

    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    if Not...
  39. Re: Excel task not terminating

    Try the following pattern where adhering to the order of objects being disposed makes a difference in killing your Excel objects, otherwise these objects will dispose on a clean exit of the app while...
  40. Replies

    Re: Export to Excel From Datagridview

    This is simple to export columns in a DataGridView when using the DataSource of the DataGridView with a DataTable using SpreadSheetLight via NuGet.

    To get only needed columns, Crate a new...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4

Click Here to Expand Forum to Full Width