dcsimg

Search:

Type: Posts; User: peterst

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    262

    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...
  2. Replies
    14
    Views
    262

    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...
  3. Replies
    6
    Views
    243

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

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

    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...
  6. Replies
    14
    Views
    580

    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...
  7. Re: VB.NET to C# Conversion Issues With Files

    using System.IO;
    ...
    ...

    var fi = new FileInfo(openFileDialog1.FileName);
    var len = fi.Length;
  8. 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...
  9. 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...
  10. 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
  11. Replies
    43
    Views
    1,996

    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...
  12. Replies
    25
    Views
    801

    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...
  13. Replies
    25
    Views
    801

    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...
  14. Replies
    43
    Views
    1,996

    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...
  15. Replies
    25
    Views
    801

    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",
    ...
  16. Replies
    43
    Views
    1,996

    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:
    ...
  17. Replies
    5
    Views
    383

    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...
  18. Replies
    25
    Views
    801

    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...
  19. Replies
    5
    Views
    383

    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...
  20. Replies
    43
    Views
    1,996

    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...
  21. Replies
    43
    Views
    1,996

    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...
  22. Replies
    25
    Views
    801

    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...
  23. Replies
    25
    Views
    801

    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...
  24. Replies
    25
    Views
    801

    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...
  25. Replies
    6
    Views
    548

    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...
  26. Replies
    20
    Views
    652

    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...
  27. Replies
    20
    Views
    652

    VS 2017 Re: DatePicker save null value to database

    Duplicate
  28. Replies
    20
    Views
    652

    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 =...
  29. Replies
    20
    Views
    652

    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
    ...
  30. Replies
    1
    Views
    235

    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...
  31. Replies
    4
    Views
    313

    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...
  32. Replies
    1
    Views
    218

    Re: Just In Time Debugging

    I have similar experience with external (for SolidWorks) applications - it happens during long debugging sessions and the remote context (in the meaning of SW objects) is disconnected. The problem...
  33. Replies
    4
    Views
    343

    Re: Public/private key signature verification

    I've never needed to load private and public keys from external source and now, as I was looking for solution, seems that .NET Framework RSA routines doesn't allow that. At least not easy from...
  34. Replies
    4
    Views
    343

    Re: Public/private key signature verification

    Hi, Alain!

    I've done this for similar reason so here are my thoughts about RSA signatures I am using to do such checks:

    Using System.Security.Cryptography you can get RSA functionality for...
  35. Re: VS 2017 checking if textbox contains 05 at the begening

    You can use this in VB.NET:

    If txtcelular.Text.StartsWith("05") Then
  36. Re: looping all dir in sub dir and each files....

    Hi, this is my quick shot. It requires to add reference to Microsoft.Scripting.Runtime which provides FileSystemObject with lots of useful functions. Call ScanDir with the path you want to scan:

    ...
Results 1 to 36 of 36



Featured


Click Here to Expand Forum to Full Width