Search:

Type: Posts; User: kareninstructor

Page 1 of 13 1 2 3 4

Search: Search took 0.88 seconds.

  1. 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
  2. Re: Give myself permission to access a sql database I created through a vb.net 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...
  3. Learn how to find files in folders and sub-folders

    Preface

    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...
  4. 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
  5. Replies
    6
    Views
    365

    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...
  6. 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...
  7. 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...
  8. Replies
    2
    Views
    382

    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...
  9. Replies
    2
    Views
    382

    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...
  10. 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,...
  11. Re: |DataDirectory| and BindDebug Blues

    Can you see what this returns?


    AppDomain.CurrentDomain.GetData("DataDirectory")

    Because of how its done internally.
  12. 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...
  13. Replies
    8
    Views
    514

    VS 2019 Re: Cancellation of task

    See my GitHub repository for various code samples.
  14. Replies
    8
    Views
    514

    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...
  15. Replies
    57
    Views
    1,971

    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...
  16. 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,...
  17. Replies
    18
    Views
    707

    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...
  18. 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,...
  19. 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}",...
  20. Replies
    15
    Views
    937

    VS 2019 Re: vb.net JSON to DataGridView

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


    {
    "ColumnDefinitions": [
    {
    "HeaderText": "Id",
    "DataPropertyName": "Identifier",
    ...
  21. 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...
  22. VS 2019 Re: Issue managing multi same forms with backgroudWorker

    You should read Thread.Sleep is a sign of a poorly designed program.
  23. 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
  24. Replies
    11
    Views
    809

    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...
  25. 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)
    Next
    End Sub
  26. 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.
    ...
  27. Replies
    4
    Views
    544

    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...
  28. 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>...
  29. Replies
    0
    Views
    496

    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...
  30. Replies
    5
    Views
    433

    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...
  31. Re: Delete lines between specific 2 lines in text file using vb.net

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


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

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

    Sample data in a file

    Id,Question,Explanation
    1,Question 1, answer 1
    2,Question 2, answer 2...
  33. 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...
  34. Replies
    3
    Views
    342

    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.


    Imports...
  35. Replies
    6
    Views
    442

    Re: Basic url opening in VS 2019

    Note the OP has already done this in the initial post.
  36. Replies
    6
    Views
    442

    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...
  37. Replies
    6
    Views
    442

    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...
  38. 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...
  39. Replies
    1
    Views
    439

    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...
  40. Replies
    16
    Views
    1,044

    Re: Strange DGV Behavior

    Perhaps the following might help.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width