140,059 questions
0
votes
0
answers
16
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
21
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
2
answers
141
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 ...
-3
votes
1
answer
125
views
case select only uses first two cases
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 ...
2
votes
1
answer
71
views
MimeKit Memory access violations after repeated runs
I have a VB.NET (.NET Framework 4..6.2) application that runs as a Scheduled Task (Windows Server) every 5 minutes. On each run it checks a database and, if anything is there, fetches a collection of ...
-2
votes
0
answers
59
views
Fastest & Most Efficient DataTable Row Selection Methods in VB.NET (Single/Multiple, Simple/Complex Conditions) [closed]
We are using VB.NET with System.Data.DataTable objects that contain large volumes of data. We are evaluating which approach is the fastest and most efficient for selecting rows in specific scenarios.
...
Best practices
0
votes
2
replies
40
views
In a VB.Net WPF XAML Project I want to Add a Property to a Usercontrol class and Inherit from that Class
In a VB.Net WPF XAML project, I want to add a Property to a UserControl class and inherit from that Class.
I have tried the following:
Public Class clsUcBase
Inherits UserControl
Private ...
1
vote
1
answer
65
views
How to embed all dependent DLLs into a single EXE for SmartPlant P&ID automation using VB.NET? [closed]
I am working on SmartPlant P&ID automation using VB.NET (.NET Framework 4.8). How can I embed all dependent DLLs into a single EXE? Are there limitations when merging Ingr.SPPID assemblies using ...
1
vote
0
answers
36
views
Cannot display all properties in Table Adapter wizard
I am using Visual Studio 2019. This problem occurs when I try to use the wizard to insert the value from the table adapter insert function. Refers to the picture below, it fails to display all the ...
-1
votes
0
answers
53
views
VB.NET: '535: 5.7.3 Authentication unsuccessful' error when trying to send mails using OAuth from an Outlook free account
I'm trying to implement OAuth Authentication in a VB.NET project using MailKit for an Outlook FREE account. Not using Office 365 neither Microsoft Exchange. Just a free and personal Outlook account.
I ...
2
votes
1
answer
84
views
Magnification of images in vb.net picturebox
I have a picturebox inside a panel. The panel's autoscroll property is set to TRUE. The picturebox is set to stretchimage. I added the ability to magnify/demagnify the image using code I found here ...
0
votes
1
answer
81
views
What is the VB.NET winform equivalent of C#'s Binding.DoNothing?
In a win-form application, I have two radio buttons called "optVal1" and "optVal2", where optVal1 is checked by default. I use the following two lines to add data binding to a &...
1
vote
1
answer
118
views
How to filter DataRow using % character
I wish to filter DataRow values using a condition like this:
dr.RowFilter = "CODE LIKE '%01%2%'"
This raises an error:
System.Data.EvaluationException: string pattern is not valid
I tried ...
0
votes
1
answer
203
views
INSERT unique incremented number from SELECT on the same table by several users without creating duplicates
I have a requirement to generate unique incrementing serial numbers by product type from a VB.NET application using SQL Server Express.
I have created a table and also have a VB form where I am ...
4
votes
1
answer
107
views
How to "pass-through" an async function?
I'm trying to learn more about the async/await pattern in .NET and I fiddled around with some test and demo code and everything works so far.
But now I stumbled upon a question and I'm not sure how to ...