dcsimg

Search:

Type: Posts; User: peterst

Page 1 of 2 1 2

Search: Search took 0.14 seconds.

  1. Replies
    11
    Views
    96

    Re: How fast should a Listview add 150 items

    You can also add before and after the loop ListView.BeginUpdate and ListView.EndUpdate calls so it will not repaint on each added item.
  2. Replies
    10
    Views
    246

    VS 2017 Re: Copy records from 1 database to another

    Few thoughts I have in my mind:

    - This problem happened once, will happen again in the future. People make mistakes (and delete data) all the time

    - (If you have time) Do both - create SQL...
  3. Replies
    2
    Views
    217

    Re: How to code to upload to FTP server?

    You can do it with the pure .NET libraries but you may face many problems when working with different FTP servers. Better to use third party library which solves these problems for you.

    Good...
  4. Replies
    2
    Views
    211

    VS 2019 Re: Web Browser Replacement

    CefSharp library uses Chromium which is not so outdated like IE:
    https://cefsharp.github.io/

    It is a bit tricky to setup the project for compilation and debugging (explicitly set to 32 or 64 bit)...
  5. Replies
    1
    Views
    135

    VS 2017 Re: Preview one form, in another form

    In the form that will be "previewed" you can add your own events for the controls that are changed. This way you can hook these events in the calling form and update the info in another instance of...
  6. Replies
    3
    Views
    200

    VS 2017 Re: File delete problem

    Locking of files could be hard to troubleshoot without the right tools. Many processes can lock the file for some reason, including the file explorer.

    Install Lock Hunter and after getting the...
  7. Replies
    49
    Views
    1,893

    Re: VB6 and .NET interoperability

    We've done "VB6 using .NET libraries" many times in several projects for the last 15 years. No problems found so far. Actually one of the projects from last year (fully written in VB.NET with VS2017)...
  8. Re: .net Core possibly a proper vb6 replacement

    Microsoft already announced that .NET Framework will merge with .NET Core and will become .NET 5 in November, 2020. That's why they are moving lots of .NET Framework code to .NET Core and now with...
  9. Replies
    5
    Views
    464

    Re: Forcing a form not to close?

    Add event handler of QueryUnload of the form and set cancel to 1 (or anything different from zero) to avoid closing:

    Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    ...
  10. Replies
    14
    Views
    607

    VS 2017 Re: Sending email from Server

    I am still assuming the app is used in local company network only. If the number of users is low and will be kept low (e.g. 100 people working in same building), the easiest solution is to involve a...
  11. Replies
    14
    Views
    607

    VS 2017 Re: Sending email from Server

    What I have seen from your questions here I assume following information about your application:
    - It is desktop (WinForms) application
    - It is connected directly (using SqlClient) to the SQL...
  12. Replies
    6
    Views
    4,440

    Re: Pinging Multiple Machines

    Some example code of monitoring app and pinger app (that runs on "servers" that are monitored):

    Preliminary info:

    Using Visual Studio 2017 or 2019
    NATS pub-sub server downloaded from NATS...
  13. Replies
    6
    Views
    4,440

    Re: Pinging Multiple Machines

    Hi. First to apologize that my post is not directly related to the title (Pinging multiple machines) but it is related to what the author wants: "I am building my own portal to keep an eye on servers...
  14. Replies
    6
    Views
    506

    VS 2019 Re: Building an intranet for work

    This is what I understand from the requirements and what could be done:


    Using web browser on iPad or any other device simplifies the problem since this will be web application and no need of...
  15. Replies
    14
    Views
    732

    VS 2017 Re: How can I let my app expire?

    The licensing topic is too big if we go in details - some of which are already mentioned above. Just for example: trial versions, demo versions, days to run limited, run-time limited, max runs...
  16. Re: VB.NET to C# Conversion Issues With Files

    using System.IO;
    ...
    ...

    var fi = new FileInfo(openFileDialog1.FileName);
    var len = fi.Length;
  17. VS 2017 Re: Packet sniffer .net for secret messages (Need help, i'm stupid)

    The requirement sounds that something should be "like this", which usually shows that the real requirement could be simplified to much easier task, e.g. "ping" another computer and send specific...
  18. VS 2017 Re: Packet sniffer .net for secret messages (Need help, i'm stupid)

    As Shaggy Hiker noted, it sounds like network connection between applications on same or different computers.

    It can be done the hard and long way by implementing own server and client code with...
  19. Re: VS 2017 trying to disable controls on form nothing works why?

    Try something like this:

    For Each ctl In Controls
    If TypeOf ctl Is Label Then
    Dim lbl As Label = ctl
    Debug.Print(lbl.Text)
    lbl.Enabled = False
    End If
    Next
  20. Replies
    43
    Views
    2,388

    Re: Unknown Database Format

    I'm sorry that I really can't help identifying the database, but I can explain what I know, I've seen and I think:

    - Some of our customers were using very old CAD system developed in early 80s and...
  21. Replies
    25
    Views
    1,082

    Re: Find and replace text

    Now is the time to learn how to fix that :) Checking my procedure, you can see that it adds the new count+char to the return value only when the previous char is different to the last processed...
  22. Replies
    25
    Views
    1,082

    Re: Find and replace text

    Dim a = New CountAndReplace requires that you create a class with that name and inside the class you have to insert the function called CountAndReplace from post #5. Maybe it is the right time to...
  23. Replies
    43
    Views
    2,388

    Re: Unknown Database Format

    Can you show some examples how it is used from the terminal emulator? You can hide sensitive information by replacing with something irrelevant to the queries and result or just mask it in Paint or...
  24. Replies
    25
    Views
    1,082

    Re: Find and replace text

    teos983, this is my test code. CountAndReplace is a class I've made that contains the function CountAndReplace:


    Dim sss() As String = {
    "AABCAABDCEAADAAECDBAACBAA",
    ...
  25. Replies
    43
    Views
    2,388

    Re: Unknown Database Format

    RoboDog, the links are explaining about encryption mostly, but the files you provided in hex/text view are looking that they are not encrypted:
    ...
  26. Replies
    5
    Views
    506

    Re: [RESOLVED] SQL Server 2012 to 2016

    It could be again access rights issue?

    You can try testing part by part of the stored procedure by executing few lines each time (of course keep the correct parameters or just hardcode them in the...
  27. Replies
    25
    Views
    1,082

    Re: Find and replace text

    $"Some text {VariableName}" is like String.Format("Some text {0}", VariableName)

    This really shortens strings formatting with variables. And I really love that you can add multi-line strings...
  28. Replies
    5
    Views
    506

    Re: SQL Server 2012 to 2016

    This seems similar to environment we are using on setup with three remote locations and servers are linked to each other. Two SQL servers are 2008R2, one is 2012 and everything works, but we haven't...
  29. Replies
    43
    Views
    2,388

    Re: Unknown Database Format

    Just tested with two Paradox viewers for .db files (first renamed files to a/b/c.db) and no luck - all are invalid according to the viewers. One of the apps is using Borland database engine so it...
  30. Replies
    43
    Views
    2,388

    Re: Unknown Database Format

    The files (at first) look like old DBase (.dbf) files, but after checking in hex viewer and the dbf files structure reference, they are not. Other memories I have are about old Paradox (made by...
  31. Replies
    25
    Views
    1,082

    Re: Find and replace text

    teos983, just try my example routine, but it may not work with VS2010 since I use new syntax which was introduced last 3-4 years. You can download the free Visual Studio 2019 Community version which...
  32. Replies
    25
    Views
    1,082

    Re: Find and replace text

    Sure :) My first answer could be the solution but if someone doesn't want to learn and asks another (easy) question - no more code from me :)

    When someone wants to learn, some piece of code could...
  33. Replies
    25
    Views
    1,082

    Re: Find and replace text

    You have to count each letter until it is repeated and then add the count and the letter. Here is something quick and ugly:


    Public Function CountAndReplace(ByVal s As String) As String
    If...
  34. Replies
    6
    Views
    977

    VS 2017 Re: Hiding / Avoiding Hardcoded String

    When the application that decrypt the information runs on clients machine, the short answer is no, it is not possible to protect it. Via the "security through obscurity" methods you can make it...
  35. Replies
    20
    Views
    883

    VS 2017 Re: DatePicker save null value to database

    You are absolutely right. The correct code is:


    cmd.Parameters.Add(New SqlParameter("datefield2", DBNull.Value))


    Also in this case it can be simplified using Parameters.AddWithValue method...
  36. Replies
    20
    Views
    883

    VS 2017 Re: DatePicker save null value to database

    Duplicate
  37. Replies
    20
    Views
    883

    VS 2017 Re: DatePicker save null value to database

    [/QUOTE]

    This depends on how you access the database. Here is how I will do it using SqlClient and SQL INSERT statement:

    Using conn = New SqlConnection("connection string")
    Dim query =...
  38. Replies
    20
    Views
    883

    VS 2017 Re: DatePicker save null value to database

    Hi,
    You can show check box in DateTimePicker control using ShowCheckBox property so if it is checked then used the date, if not - save NULL in the database:


    If DateTimePicker1.Checked Then
    ...
  39. Replies
    1
    Views
    362

    Re: how to bind Checkbox with arraylist?

    Hi,

    This is what I did, hope it helps:

    - Created form and added FlowLayoutPanel for much easier adding of controls since it is done automatically. The FlowLayoutPanel control name is...
  40. Replies
    4
    Views
    630

    VS 2017 Re: The RPC Server is unavailable.

    It could be related to the other thread by the author: Just In Time Debugging, where processing SolidWorks files causes some errors and I already added some of my experience where such errors may...
Results 1 to 40 of 45
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width