dcsimg

Search:

Type: Posts; User: robertx

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2017 Re: Show message box looping in BackgroundWorker_RunWorkerCompleted event procedure

    The form is a new instance displayed using ShowDialog. I figured out the problem. The background worker's RunWorkerAsync method was called in the form activate event procedure. I moved it the Shown...
  2. VS 2017 [RESOLVED] Show message box looping in BackgroundWorker_RunWorkerCompleted event procedure

    I have a message box that displays in a BackgroundWorker_RunWorkerCompleted event procedure called as follows:

    Private Sub myBackgroundWorker_RunWorkerCompleted(ByVal sender As Object, ByVal e As...
  3. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    I ran the test application and the test text file opened in Notepad. Not sure what the issue in on my machine.
  4. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    Did you get it to work? When I set Notepad as the default application for txt files then run the code (as administrator) using the parameters in my previous post, no exception is thrown but txt files...
  5. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    The CreateSubKey method creates a new subkey or opens an existing subkey.
  6. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    The procedure adds the leading dot if it is missing.
  7. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    So when trying to associate txt files with Notepad++, I passed as follows:

    extension = "txt"
    className = "txtfile"
    description = "Text File"
    exeProgram = "C:\Program...
  8. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    So when trying to associate txt files with Notepad++, I passed as follows:

    extension = "txt"
    className = "txtfile"
    description = "Text File"
    exeProgram = "C:\Program...
  9. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    In the case of the .NET code method, I ran the application as administrator. Should that be enough or does the manifest file need to be modified as well? From my experience, when registry...
  10. Replies
    17
    Views
    529

    VS 2017 Re: Programmatically set file association

    The solutions suggested in this thread were amongst those that I tried and couldn’t get to work.
  11. Replies
    17
    Views
    529

    VS 2017 Programmatically set file association

    How can file associations be set either with .NET code or via the command line / batch file? e.g. How can TXT files be programmatically associated so that they open by default in either Notepad,...
  12. Permissions required for executing stored procedures on SQL Server

    I have an application that uses an SQL Server database and stored procedures for data access. I generally assign db_owner permissions to the user. A DBA suggested that this might present a security...
  13. SQL Server - Implement TLS encryption of data in transit

    In order to implement TLS encryption of data in transit between an SQL Server database and a client workstation, is this achieved by:

    1) Installing an SSL/TLS certificate on the machine hosting...
  14. Migrate MSSQL Server 2017 database to 2012

    Can an MSSQL Server 2017 database be migrated onto an MSSQL Server 2012? I know that the 2017 database can't simply be instantiated on 2012 and there are articles describing doing this using...
  15. Replies
    4
    Views
    305

    VS 2017 Write to file using a service account

    Is it possible to write a file to a location using the permissions assigned to a service account rather than the current user account?
  16. VS 2017 Re: Cannot access network share via VB.NET application but can access via Explorer

    I found a registry fix for this issue:

    Click Start, type regedit in the Start programs and files box, and then press ENTER.

    Locate and then right-click the registry subkey...
  17. VS 2017 Cannot access network share via VB.NET application but can access via Explorer

    I am restoring a VB.NET application onto a new Windows 10 Home 64-bit machine. The application reads data from a file on a network share. It was working fine on the old machine. I can get to the...
  18. Replies
    6
    Views
    2,047

    VS 2017 Re: Could not load this custom viewer

    Running a Visual Studio 2017 Community Edition repair resolved this issue.
  19. VS 2017 Re: Save XML to file and assign to string using XMLWriter

    This worked well except that the encoding changed from UTF-8 to UTF-16 so I used this ExtendedStringWriter class to enable setting the encoding:


    Public NotInheritable Class ExtentedStringWriter...
  20. VS 2017 [RESOLVED] Save XML to file and assign to string using XMLWriter

    I am using an XMLWriter object to write XML to a file. I want to write to a file and also capture the XML and save the text to a database without having to reiterate and rebuild the XML. I don't want...
  21. Replies
    6
    Views
    2,047

    VS 2017 Re: Could not load this custom viewer

    I updated to the latest version without success. I'll try a repair.
  22. Replies
    6
    Views
    2,047

    VS 2017 Re: Could not load this custom viewer

    I have referenced a data table in my code. When I hover the cursor over the code and click on the magnifying glass, normally I can view the data table. At the point of clicking on the magnifying...
  23. Replies
    6
    Views
    2,047

    VS 2017 [RESOLVED] Could not load this custom viewer

    I am having trouble viewing data tables while debugging in Visual Studio 2017 Community Edition. When I attempt to view a data table, it throws the following exception:

    167011

    Is this a...
  24. VS 2013 Re: Check whether application is running for another user

    Whilst the sample application in this link is not coded in a thread-safe manner, it nevertheless demonstrates how to detect that the current Windows session has been locked.
  25. VS 2013 Re: Check whether application is running for another user

    There may be several machines accessing the one database but each machine will have its own set of hardware devices to connect to.



    I am trying to avoid this kind of inefficiency. I would...
  26. VS 2013 Re: Check whether application is running for another user

    Users will generally be standard users. I don't require information about any other particular user per se but rather whether the PC is running another instance of the application via another user's...
  27. VS 2013 [RESOLVED] Check whether application is running for another user

    I have an application that establishes connections to several hardware devices. Sometimes users will leave the application open and abandon the PC. Eventually the lockout screen appears and a new...
  28. Replies
    4
    Views
    429

    VS 2013 Restore executable file from database

    I have stored an executable file as a byte array in an SQL Server database. I can restore the file successfully but when I launch it, I am getting this "This app can't run on your PC" on Windows 10...
  29. Replies
    3
    Views
    454

    Re: Duplicate table column

    A new field can be added with a default value of 1 with:

    ALTER TABLE Table1 ADD NewField bigint NOT NULL DEFAULT(1)

    I am wondering whether it is possible to set the default value to that of...
  30. Replies
    3
    Views
    454

    Duplicate table column

    Is there an ALTER TABLE query that I can run to duplicate a bigint column in SQL Server with a different name but retaining the same values in each row?
  31. Replies
    6
    Views
    1,124

    VS 2013 Re: Get name of Citrix client machine

    Would I call Environment.GetEnvironmentVariable("%CLIENTNAME%") or Environment.ExpandEnvironmentVariables("%CLIENTNAME%")?

    On my machine the former returns an empty string and the latter returns...
  32. Replies
    6
    Views
    1,124

    VS 2013 Get name of Citrix client machine

    I am developing a VB.NET Winforms application which is to have an instance launched via Citrix. The application is to behave differently depending on which client machine has launched the application...
  33. Replies
    27
    Views
    4,428

    VS 2013 Re: [RESOLVED] Can't restore web application

    The only issue now is that images aren't rendering in the browser. They are pathed correctly and are visible in the VS IDE but not when the application is launched.
  34. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    No it wasn't checked and after checking ASP.NET 4.6, the issue is resolved!
  35. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    ASP.NET 4.6 appears to be installed...

    https://snag.gy/NtbCJT.jpg
  36. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    When I run that command from the developer command prompt, I get the following message:

    This option is not supported on this version of the operating system. Administrators should instead...
  37. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    I haven't yet. I'm pretty sure the targeted .NET framework is installed but are you saying there is another step involved to integrate it with IIS?
  38. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    That's correct in that instance I invoked the file directly but that was just as an alternative to see what happened. I saw the same error as when I launched it from IIS or from Visual Studio.
  39. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    Chrome throws this:

    This page contains the following errors:

    error on line 1 at column 2: StartTag: invalid element name

    Below is a rendering of the page up to the first error.
  40. Replies
    27
    Views
    4,428

    VS 2013 Re: Can't restore web application

    When I open up the login.aspx page via its file path in Firefox, I get this error:

    XML Parsing Error: not well-formed
    Location: "file:///D:/Test/login.aspx"

    Line Number 1, Column 2:<%@ Page...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width