dcsimg

Search:

Type: Posts; User: kareninstructor

Page 1 of 13 1 2 3 4

Search: Search took 2.96 seconds.

  1. VS 2017 Re: How to keep column of GridView hidden but still get the data ?

    Here you go...

    175769



    Imports System.Data.OleDb
    Public Class Form1
    Private bsCategories As New BindingSource
    ''' <summary>
  2. Re: VB Out of Range Error in CalendarColumn by Karen Payne.

    For the record I can't get into this now as I'm on the front lines of CORVID-19. When I get a break (unsure when) I will fix this but could be days or weeks.
  3. VS Code Re: Problem with extract string from an expression

    1. your image is unreadable as presented.
    2. what I provided works with and without line breaks.



    Dim lines = "Name: Lucas Lion Age: 48 TaxID: R935279 Nationality: Germany"

    Dim match =...
  4. VS Code Re: Problem with extract string from an expression

    Have you considered regular expressions ?



    Dim lines As String =
    "Name: Lucas Lion" & ControlChars.CrLf &
    "Age: 48" & ControlChars.CrLf &
    "TaxID: R935279" &...
  5. Re: How to detect if an item added or removed from a ListBox

    The amount of code to provide additional functionality outweighs the benefits, besides it's doing exactly what it's suppose to do, fire off on each action add delete. Also, a better idea is to look...
  6. Re: How to detect if an item added or removed from a ListBox

    This might work for you by overriding WindProc, check for adding or deleting an item to the Items collection.



    Public Class AnotherListBox
    Inherits ListBox

    Public Sub New()
    End...
  7. VS 2019 Re: connection.ServerVersion' threw an exception of type 'System.InvalidOperationExce

    Hello,

    Under Project properties, compile tab, is Target CPU "AnyCPU" and "Prefer 32 bit" checked ? If not then try those settings.
  8. Replies
    61
    Views
    1,030

    Re: What was your last purchase?

    Last thing I purchased was a new holster last night, why? because my old primary holster of 20 years looks horrible from wearing it all the time.
  9. Entity Framework 6 basics code samples

    There are plenty of articles and code sample on the web while many of them are shown with C# code. In the following article I've taken bits and pieces from code samples on Microsoft Docs site and...
  10. Announcement - Visual Basic support planned for .NET 5.0

    https://devblogs.microsoft.com/vbteam/visual-basic-support-planned-for-net-5-0/

    We’ve heard your feedback that you want Visual Basic on .NET Core. Earlier versions of .NET Core supported Class...
  11. VS 2019 Re: Getting DataGridView Currentrow.index when filter applied

    Use a BindingSource, get the current row via .Position property, filter via .Filter, get current row data by casting .Current to the row type in the DataGridView e.g....
  12. Replies
    8
    Views
    361

    VS 2017 Re: VS to GitHub

    For personal work I prefer GitHub while for work it's TFS all the way. With TFS one of the nice features is shelving/suspending which allows flip-flopping between task, sharing without checking in...
  13. Re: Help with converting few lines of C# to VB.NET

    I agree with JMC but if you truly want it in VB.NET


    ''' <summary>
    ''' Utility methods related to CLR Types for SQL Server
    ''' </summary>
    Public Class Utilities
    ...
  14. Replies
    0
    Views
    288

    WinForms Folder dialog alternate

    I thought this might be worthwhile to share this folder dialog which works with C#, VB.NET and .NET Core

    https://github.com/Willy-Kimura/BetterFolderBrowser

    NuGet install:
    Install-Package...
  15. Re: How do I remove double quotes when data is exported to Excel from web application

    Regular expressions is one way


    Dim line = "1.5"" something ""hello"" ""cool""car"" single sentence with out quotes."
    Dim regex As New Regex("""([^\\""\r\n]*(?:\\.[^\\""\r\n]*)*)""")...
  16. Replies
    12
    Views
    422

    VS 2010 Re: DataTable & Grid Guidance

    Hello,

    The following is a conceptual example, not using a structure but a class implementing INotifyPropertyChanged interface and a custom interface coupled to a BindingList, only thing missing is...
  17. Re: Why isn't VB.Net an option in the Stack Overflow Developer Survey?

    I was thinking the same thing, this is a discussion and not something related to a question regarding how to do something in code.
  18. Re: How to add a recurring event with VB.NET

    When considering this keep in mind the application must be continually running. With that an option is to write a tray application using NotifyIcon with HangFire to store events triggers in...
  19. Re: How to add a recurring event with VB.NET

    When considering this keep in mind the application must be continually running. With that an option is to write a tray application using NotifyIcon with HangFire to store events triggers in...
  20. Re: Why isn't VB.Net an option in the Stack Overflow Developer Survey?

    If a developer works in an environment where the language of choice remains viable than use it although the majority of developer’s environment and demands from their customers many times does not...
  21. Replies
    14
    Views
    2,270

    Re: Textbox numeric type and paste only

    @.paul., seems the developer should set the MaxLength which the paste code respects by way of MaxLength property. Yet you bring up a point many may not consider to set MaxLength and perhaps range...
  22. Replies
    14
    Views
    2,270

    Re: Textbox numeric type and paste only

    There is no need for the file as the code is presented above. Simply create a new class with the name numericTextbox.vb, copy paste the code from above, compile the project then when a form is shown...
  23. Re: Can not get the report viewer to show on the form

    Add the report component to the Controls of the Form then set the Dock property to Fill.


    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  24. VS 2019 Re: Advise/Best Way To Filter DGV From Joined Table

    Bumping is considered no different than butting into a line of people, please don't bump. If nobody has responded either they are busy or don't have something to offer.
  25. Replies
    10
    Views
    548

    VS 2019 Re: Opening Image Data From SQL DB

    In the following GitHub repository there are several code samples for reading images.

    Public Function GetImage(pIdentifier As Integer) As Image
    Public Function GetImageStream(pIdentifier As...
  26. VS 2017 Re: How to copy a dataset and all it's queries from one project to another?

    Have you considered creating a GitHub repository where the initial master branch is the damaged project. Next create a new branch which is still the same project but now you can prune the damage part...
  27. Replies
    3
    Views
    265

    VS 2017 Re: SMTP is Not Sending

    First thing to try is setting up less secure apps

    https://support.google.com/accounts/answer/6010255?hl=en

    Besides that you can use async version of send and also subscribe to SendCompleted...
  28. VS 2019 Re: Creating a Datatable with equatuions

    A couple of thoughts in regards to equations.

    Look at DataColumn.Expression perhaps in tangent with DataTable events.
  29. Re: How to make my application show message if user try to run second instance of it?

    I'm curious why this user asked the exact same question on 1/1/2020 and marked the question as answered.
    ...
  30. Replies
    2
    Views
    400

    VS 2019 Re: Autorecover information not saved

    See the following

    https://developercommunity.visualstudio.com/content/problem/720135/visual-studio-2019-preview-does-not-recover-backup.html

    If that does not help, report the problem to...
  31. Re: System.Data.SqlClient.SqlException Message=Incorrect syntax near ')'

    As .Paul. and jmc pointed out



    INSERT INTO ChemReceivingLog
    ChemID, LotNumber, ReceiveDate, ReceivedBy, Weight, Status, Inspector, InspectionDate, DeviationID, MaterialCode, ...
  32. VS 2019 Re: Duplicate a DataGridView row to a new row.

    I can't see your image well enough to know if a BindingSource is being used, if so use MoveLast method to scroll to the new record if its the last record now which would be true unless you set the...
  33. VS 2019 Re: dynamically created linq queries of dataset in vbNet

    Hello,

    See the following page on using Expression trees
    ...
  34. VS 2019 Re: Is there a quick way of wrapping a method call around a value?

    If the integer values are in an Integer array then use ConvertAll

    Dim result = IntegerList.ConvertAll(Function(value) Convert.ToInt16(str))
  35. VS 2017 Re: Replacing an existing form with an improved version

    Those who use GitHub now when they started knew nothing either. Also, Visual Studio online is another option which works in Visual Studio too or even run Visual Studio from the cloud.

    Here is a...
  36. VS 2017 Re: Replacing an existing form with an improved version

    You can create a Github repository for the Visual Studio solution. Once done create a new branch intended changes.

    Master branch is the original, secondary branch is for moving forward.
    ...
  37. Re: bindingsource.filter string size limit?

    With limited details a thought is that rather than have a long filter is to narrow down displayed data from a SQL SELECT WHERE rather than presenting a large set of data in the user interface.
  38. VS 2019 Re: Writing from DataGridView to Access accdb database

    Remove this line

    MyDataset.Tables("MyTable").AcceptChanges()

    Also you can see how many records were affected via

    Dim RowCount = da.Update(MyDataset, "MyTable")

    Do read the following for...
  39. Re: I want to start learning VB.net , Where to start ?

    Yes Visual Studio or Visual Code needs to be installed. To get started see the following getting started guide

    https://docs.microsoft.com/en-us/dotnet/visual-basic/getting-started/
  40. Microsoft Access – Bug – Error 3340 – Query is corrupt

    If your queries in code report "Query is corrupt", see the following blog.

    https://www.devhut.net/2019/11/14/access-bug-error-3340-query-is-corrupt/
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width