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…
conversion failed when converting date and/or time from character string, usando SQL Server Azure.
Hello everyone I have the following code: Try Dim Fechini As Date Dim Fechfin As Date Fechini = Format(DateTimePickerDesde.Value, "dd/MM/yyyy") Fechfin = Format(DateTimePickerHasta.Value,…
extract part of string
Hello experts, I'm reading Vcf contact files, the only fields I have issues reading are 2 multi-line fields: NOTE and KEY Because I don't know how many lines it lasts, the fields order can be different in each file so just need an idea how to parse these…
Having issue with Keyword not supported: 'trust server certificate in Visual Studio VB
Hi. I'm trying to run VB code in visual studio form project but get an error when code is trying to run. Error is: "System.ArgumentException: 'Keyword not supported: 'trust server certificate'.'". The line in code affected is: Data…
Split String
Hello This code does not remove space only fields, how to discard space only fields? Dim MyString As String = ";full; ;title" Dim MyFinal As String() = MyString.Split(New Char() {";"c}, StringSplitOptions.RemoveEmptyEntries) The…
Print data from mdb database
Hello experts Using Access Database Engine with OleDbReader in .net fw4 winforms to read mdb files, need to print the user selected table, ReportViewer from toolbar is added, how can I print table data using code ( run-time )? No database to connect at…
QR image generator
Hello experts, I need to generate the QR code image from a simple text (contact) file and found many commercial components but am not allowed to use any third party dlls, few free source codes including vCardEditor on github, but all are C# which I…
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…
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…
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 …
.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://video2.skills-academy.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…