visual studio 2022 visual basic navigation bar dropdown not working after updating to 17.10.1
VS issue1.png When I look at the code for a form, the middle drop down in the navigation bar is missing all the controls. The code for the controls in moved to the far right drop down (like it would if it is missing a handles clause). If I click on one…
Return exit code
Hello, I have 2 VB.net WinForms app (.net 4.0) one is x64 one is x86 From the x64 one, I call the x86 one and need to get back its return code. Code inside the x64 app: Using Compiler As New Process …
JRO Dependencies
Hello In vb.net WinForms .net fw 4.0 app, when I add a reference to: Microsoft Jet and Replication Objects 2.6 Library (Interop.JRO.dll) another component is also force added among with together: Microsoft ActiveX Data Objects 2.8 Library…
Public key to string
Hello experts I need to insert a certificate public key to a vcf contact file as Base64 string. According to RFC 2426 section 3.7.2 It's like: KEY;X509;ENCODING=BASE64: A1UEBhMCSVQxEDAOBgNVBAgCB0JlcmdhbW8xGTAXBgNVBAcMEFBvbnRlIFNhbiBQaWV0cm8x …
How to connect Access Database to a VB.Net project in VS 2022 using .Net 8.0?
Hi All, I am trying to use .Net 8.0 in Visual Studio 2022; I am unable to use Access Database; the usual way of adding "Data Sources" is not available ( I have been using .Net Framework 4.5 for my projects without any difficulties.) I used the…
.Net problem/Question
I haven't programmed in .Net, last used VB 6 several years ago. I'm trying to make a Windows Form application in VB.Net, and it won't let me use the "Add New Data Source" option to connect my database to the project. When I click "Add New…
GetRowCount question
Hello I just found something here: https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/selection-modes-in-the-windows-forms-datagridview-control?view=netframeworkdesktop-4.8&source=recommendations You can retrieve a collection of the…
How to change Font colour of a few Strings only?
Hi all, I am working on a program that gives "Planetary positions" for a period of time ( eg: few weeks, few months). As all the planets except Sun & Moon have "Retrograde motion" (Apparent backward movement), I want to show the…
Publish to local folder succeeded to no files showing in the published folder in visual studio 2017
I'm trying to publish vb.net project to the local folder in vs2017, its showing publish succeded but when I go to the published directory its not showing any of files
search in DataGridView
Hello experts I need to select some DataGridView rows based on the user text input, some sort of search, so: For loop As Integer = 0 To DataGridView.Rows.Count - 1 If DataGridView.Item(0,…
Compact and repair mdb
Hello I use Access Database Engine and OleDbReader to work with mdb files. If my memory serves me, I've been told, compact (and repair if necessary) of mdb files is not provided in Access Database Engine? If so, which component and command to use, when…
Switch from picture in a cell to picture over cell
Hi All, I want a code in VB.net to switch from picture in a cell to picture over a cell. The below is the code I have so far. Next step will be to select the cell B1 and make the picture over cell and save it in the desktop that picture. Thanks for your…
Can we create the attached model like datagridview in C#.net Windows Form Application.
We are planning a desktop application using c#.net. One of our challenges is to create an attached type of DataGridView.Unfortunately, we are not getting any solution for designing customized types of DataGridView.If possible above type of DataGridView…
Catch UnhandledException when Application Framework is off
Hello, When I disable Application Framework: AddHandler My.Application.UnhandledException, AddressOf MyUnhandledException Becomes invalid: UnhandledException is not an event of blah.My.MyApplication Using VB.net WinForms .NET FW 4.0 app, anyone can give…
Search with oledb
Hello I use Access Database Engine and OleDbReader to search within my mdb database: New OleDbCommand("SELECT * From Blah WHERE TheID = ?" + strCondition, conn) strCondition can vary based on the user input: strCondition = " AND…
VB Defaults - VS2022
My VB defaults in Visual Studio are set to Infer Off, Strict and Explicit On. I create a windows forms app in VS2022. It is .Net 8. The form has a button and a textbox and this code shows no errors and runs. Code: Public Class Form1 Private Sub…
How to run power toy in hidden window?
Dim p = New Process() p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.StartInfo.CreateNoWindow = True p.Start("C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe") After running this code, the setup window still appears. Is…
how to fix Cannot send a content-body with this verb-type with a Post request
I have a VB.net app that is trying to send a post request to get a token. However, I get the error above. Below is a snipit of the code in question. Dim client = New RestClient(stTokenURL) Dim request = New RestRequest(Method.Post) Dim…
Can't launch my app because of 'you must install .NET Desktop Runtime' popup
Hi everyone, I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual…
Select from table
Hello Using Access mdb with OleDbRader (Access Database Engine) to select all: "SELECT * FROM tabke WHERE clmn = 'blah'" This might return 100 items, how can I use select to read from number 5 to 50, for example? Possible? Thank you all