My.Computer not working in VS2022 desktop app
Hello, I am having issues with using My.computer in my app. It generates an error that indicates that it's not defined. I know that it has something to do with the version of the .Net SDK being used in my app. Older apps that use older versions of the…
XInputGetAudioDeviceIds
Hi all, I've converted this code to VB.net and it works fine: https://www.codeproject.com/Articles/492473/Using-XInput-to-access-an-Xbox-360-Controller-in-M But XInputGetAudioDeviceIds is missing from…
WinApp Cert Kit Failure
Hey all, <> contains a reference to a Launch Process related API System Diagnostics Process Start I just use it for opening web pages: Process Start ("url link") In .Net Framework 4.8 WinForms app, is there a replacement for opening web…
where can I download vb powerpacks v9.0
where can I download vb powerpacks v9.0? powerpacks v12 dose not works under visualstudio 2022. it has been working under vs2019. someone says vb powerpacks v9.0 works fine with vs 2022.
Sudden VB6 run-time error 48 on Windows 11
I have a VB6 program that I wrote years ago and update often. I use it frequently twice a year to run fundraisers for several local non-profits. The last fundraising effort ended several weeks ago (thankfully), and I have used the program daily since to…
manifest vs Visual Studio version?
Hi, Need to add dpiAware/dpiAwareness/longPathAware to the WinForms vb.net manifest, .net fw 4.8 in VS 2013 pro. asmv3: seems unsupported, so is this correct: <application> <windowsSettings> <dpiAware…
How to outsmart the long file name problem on FTP.
Hi there, Have a problem in transfering the files with the long path names to the FTPS/SFTP server. I know, this is the old problem of the Windows file names length limitation, raised the tons of info on the internet, but the problem still not…
X509Certificate2Collection.Import p7m Bug?
Hi X509Certificate2Collection.Import ("D:\smime.p7m", Nothing, X509KeyStorageFlags.UserKeySet Or X509KeyStorageFlags.Exportable) Always throw CryptographicException, but CryptographicException.Message is: The operation completed…
Exception messages in en-US only
Hello I've placed an exception sender in my VB.net app which in case of exceptions, will send them to me to check, seems on localized systems, the messages are not in en-US and I get them like this: Exception Message: Erro genérico em GDI+. Root…
Convert uris to links in html page
Hi, I have a very simple/basic html which has some uris inside, like this: <p>some text http://www.msn.com the rest</p> Need to convert the uris to links like this: http://www.msn.com/abc to: <a…
How to Assign a Variable to a Tuple
Working with map data, this line of code gets elevation (and other) data: Dim PointData As ValueTuple = Await GetElevation(NewPoint) using this function: Private Async Function GetElevation(pt As Point) As Task(Of (Elevation As Double, Lat As Double,…
add row to datagridview
i have a vb.net app with a datagridview that is filled by a view with an underlying table. now i want to insert rows in the datagridview like in excel (under the selected row). i have the following code. Code: Private Sub BtnNewP_Click(sender As…
Calling Win32_CDROMDrive freezes the code if the optical drive is burning a disc
Hi Using MySearcher As New ManagementObjectSearcher(New SelectQuery("Win32_CDROMDrive")) For Each MyDisk As ManagementObject In MySearcher.Get() ' Just here the code execution hangs if the only optical drive is writing a Blu-ray…
Check if string contains non-ASCII
Hello To check if inside a string, there are any non-ASCII characters, is this code snippet ok? Encoding.UTF8.GetByteCount(inString) <> inString.Length = True/False False: full ANSI string True: string contains Non-ANSI characters Not sure what…
How can I remove an item from the items obtained from the main File Explorer menu (IContextMenu) and add a new item along with an icon?
Based on the answer already given (previous question), I wanted to customize the resulting items so that some of them are not visible and add a few of my own items so that I can do something from the click event on the custom item. If possible, please…
Retrieving top x process consuming most CPU, Memory, Disk and Network
Hi I need to obtain top x processes using the most CPU, Memory, Disk and Network. CPU I have working using Performance Counters and % Processor Time Memory I have working using Process.GetProcesses and looking at either PrivateMemorySize64 or…
How to temporarily pause processing
This question is about a mapping application I am writing, specifically how to coordinate processing and mouse actions. To add a new point to a map, this routine is called: Private Sub AddPoint() PostAllPoints() 'Show all existing…
Using "settings" to save form location and size
I created 2 "settings", a system.drawing.point named FormLocation and a system.drawing.size named FormSize. they are used in the form.shown event to "remember' the size and location of the form and saved in the FormClosing event. This has…
My.Computer.Info.OSFullName
Hello Seems just like VB6, getting the OS Full Name is still challenging in .NET Framework! Possible to throw exception based on the WMI, possible to return the My.Computer.Info.OSPlatform instead which is useless, and will return the full name based on…