139,931 questions
-2
votes
1
answer
81
views
Trying to match from final 2 lines, returning too much info
I want to match against only the last two lines of the multiline address (italicized) and return any 5 digit number at the end of either of those two lines, ignoring any 5 digit numbers in the lines ...
Advice
0
votes
5
replies
86
views
Need assistance with regular expression format
I have a regex expression that I use during the textchanged event of a textbox. It is supposed to replace any non alphanumeric characters with only a single instance of the character (such as a comma, ...
1
vote
1
answer
121
views
VB.NET SQL select columns and display in grid
While creating a MP3 playlist generator, I can't figure out how to make the code below work.
In my database, I have a table which contains all of the MP3 attributes of a track, including the path to ...
0
votes
2
answers
198
views
Previously working database access code in Visual Basic 26 program suddenly throws exception
I have a fairly complex VB program that accesses various components of my home control and monitoring system and displays data from them on a form on my desktop. On startup, it downloads recent data ...
Best practices
0
votes
4
replies
126
views
Cloudflare blocks direct API request when Google Chrome doesn't
I would like to load the JSON content from a "normal" server, the query URL is
https://www.astrobin.com/api/v2/equipment/camera/?format=json
When I run the query in the Google Chrome ...
1
vote
1
answer
111
views
Running an EXE as another user from a LocalSystem Windows service using CreateProcessAsUser
I'm trying to launch a .exe through services.msc from the LocalSystem account. I want to run an application as another user through this executable.
I researched for a bit and found out that it's not ...
2
votes
1
answer
134
views
Unable to Save/SaveAs .xls and .xlt files using Microsoft.Office.Interop.Excel in VB.NET despite File Block Settings being unchecked in Trust Center
I have a Windows Forms application developed in VB.NET. I am trying to open an Excel file, manipulate it by adding new sheets and data, and then save the file using Microsoft.Office.Interop.Excel.
All ...
0
votes
0
answers
84
views
MediaElement Plays Audio but Not Video and Does Not Trigger Events
Tasked with adding a video playback capability to a large VB.NET Windows Forms Application project, I began by creating some simple code in a standalone project. The project contains a module (...
Best practices
0
votes
3
replies
202
views
Generate a .NET .exe file that doesn't include IL, JIT, metadata in it
If you create a new VB.NET or C# project you will get a lot of files, e.g.:
test.deps.json
test.dll
test.exe
test.pdb
test.runtimeconfig.json
or if I publish the project I will get a single file ...
2
votes
0
answers
196
views
Trigger a procedure in my app when database value changes
I want to run a procedure that updates a dashboard (list of tasks) completed.
Users will update the tasks from their apps, which updates a database in the shared server.
This is how far I have come - ...
3
votes
1
answer
115
views
Exception thrown: 'System.NotImplementedException' in SQLDataAccess.dll
I am trying to load some data from SQL Server like this:
Imports System.Data.SqlClient
'Imports Microsoft.SqlServer
Public Class Form1
Inherits System.Windows.Forms.Form
'Create ADO.NET ...
Advice
0
votes
3
replies
122
views
Force ComboBox1_SelectedValueChanged to reset ComboBox to its starting appearence, showing only the user prompt label
How to force ComboBox1_SelectedValueChanged to reset ComboBox to its starting appearence, showing only the user prompt label. Here a simple code example :
Private Sub Form1_Load(ByVal sender As System....
0
votes
0
answers
152
views
WinForms DPI scaling inconsistency: child forms rescale differently than main form
I'm working on a VB.NET WinForms app (.NET Framework 4.8) and seeing inconsistent scaling between forms. I develop on my work laptop using a Remote Desktop Connection.
This problem began when I ...
2
votes
1
answer
91
views
TextChanged Postback not firing when pasting input
I’m having an issue with this JavaScript: when I paste a number, the TextChanged postback is not triggered, whereas it works correctly when I type the value manually.
It’s a general control, and the ...
Tooling
0
votes
2
replies
160
views
How can I get a Excel sheet in Word but the content is variable
I want to create a Word-Formular for a Quality Report which contains different dimensions of Steel parts. The Word-Doc should get its information via Excel an create a desired state and actual state ...
