140,013 questions
0
votes
0
answers
102
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 ...
1
vote
1
answer
49
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
110
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 ...
2
votes
0
answers
149
views
Microsoft.Data.SqlClient 7.0.0 throwing error on new serverconnection in .NET Framework 4.8
We have a Visual Studio solution, written to run on .NET Framework 4.8 and mostly in VB.NET. Part of this is a mechanism to run SQL scripts stored in .sql files.
This has worked fine for years, ...
3
votes
2
answers
181
views
Visual Basic Windows Open File Dialog does not show folder panel sometimes
Inherited code that has a method for showing the System.Windows.Forms.OpenFileDialog control which works fine when called from the main form. But when called from any child form, the folder panel is ...
2
votes
4
answers
97
views
In an XmlDocument object, how do I make sure a child node of a node list 1) exists and 2) has a value?
I am maintaining code that processes an object of type XmlDocument in the System.Xml namespace. The problem is ensuring the <price> element in the following XML both exists and has a value. ...
0
votes
1
answer
60
views
Azure Blob upload using SAS URL fails with TypeError: Failed to fetch due to Content Security Policy (CSP) in ASP.NET WebForms
Problem
I am uploading files directly from a browser to Azure Blob Storage using a SAS URL generated from an ASP.NET WebForms backend. The upload works logically, but the browser always throws:
...
Tooling
0
votes
5
replies
92
views
Best Query tool for Text search (VB.NET- Studio 2019 and 2026 (long story)
I'm finally getting around to implement custom languages to my application
I did design all my messages from the start around a common function that includes custom variables (\VAR1,\VAR2.....) and ...
0
votes
1
answer
111
views
In VB.Net, why √(x) is refused as function's name but not π(x)?
The following code is refused with error BC30037: invalid character for the √ character:
Public Function √(x As BigDecimal) As BigDecimal
return BigDecimal.SquareRoot(x, BigDecimal.Precision)
End ...
1
vote
2
answers
162
views
vb.net CDate stopped working (?) for yyyyMMdd string format
We have a Visual Studio solution targeting .NET Framework 4.8, written mostly in VB.NET
This solution is many years old and has worked fine all that time while containing code such as:
Dim dDate As ...
0
votes
1
answer
69
views
Form freezes when looping through Word files to read tables
I need to read the tables contained in some Word files. I wrote the following code in vb.net:
Imports Microsoft.Office.Interop
' ....
Dim oWord As New Word.Application
Dim doc As Word.Document
Dim ...
0
votes
0
answers
52
views
Capture WM_POWERBROADCAST message when display is physically turned on or off
I have coded this, but the only message I receive is right after I register I get a message with a GUID of GUID_ACDC_POWER_SOURCE (5D3E9A59-E9D5-4B00-A6BD-FF34FF516548), and don't receive any more ...
0
votes
0
answers
67
views
How to get the values of WM_POWERBROADCAST / PBT_POWERSETTINGCHANGE when monitor is turned on?
I have coded this, but the only message I receive is right after I register I get a message with a GUID of GUID_ACDC_POWER_SOURCE (5D3E9A59-E9D5-4B00-A6BD-FF34FF516548), and don't receive any more ...
0
votes
1
answer
159
views
Picture box won't move
I'm trying to get a picture box to move when you press a button. That's the part that is a problem. I tried it on my own at first, then I looked up some stuff, then I even took some code from a ...
-4
votes
1
answer
175
views
case select only uses first two cases [closed]
i am coding somthing for a class, and i am trying to have different images and text pop up when different values come in. here is my code . I need answers since trhis is very importent. it sucsesfully ...