Option Infer Off help
Hello, I am getting some errors when Option Infer Off and need to eliminate them, all becuase of data type declaration, since they belong to COM objects I've no idea set them to which data type? For Hhctrl.ocx: Dim Const HH_DISPLAY_TOPIC = &H0 Dim…
Run-time error -2147221164 (80040154) Class not registered
Hi, I applied this tutorial for using .Net in Micrsoft Office, I used Visual Studio 2022 Current and .Net Framework 4.7.2 and Microsoft Access 2016 I didn't see Intellisense when writing code, and when I execute I get the error: Class not…
2 simple questions about XmlDocument
Hello Dim doc As New XmlDocument Before .Load, using this property has any effect or is default and disregarded? Before .Load, using this property has any effect or is default and disregarded? doc.PreserveWhitespace = False Move on: doc.Load(…
How to pass a report parameter with multiple values from vb.net
I am currently using Visual Studio 2013 and I am writing a service that will allow someone to choose report settings and pass them into the SSRS 2016 report. I am coding this is VB.net. The issue I am having is one report parameter has been setup…
Error loading/reading file
Hello I've got the WDK installer and asked it to save files to my drive, now when I wanna read those files I'll get exceptions, when trying to load via OpenFileDialog: Never seen such scenario, how to gain permission via VB.net when reading such…
VerticalScroll.visible doesn't seem to be working on autoscroll
Hello, My Flow layout panel has panels in it that stretch the entire flow panel, the problem is that it has autoscroll on(and I want to keep it on), and when there'ss enough panels to get a vertical scroll bar, the ends of the panels are cut out and it…
XmlDocument to XmlReader?
Hello I used to load an XML file into an XDocument and keep it intact in memory, then pass it to another object when needed, since it only accepts XmlReader, I was using XDocument.CreateReader. Now am moving from XDocument to XmlDocument, just no idea…
Running total columns in DataGridView
Hi, I have a DataGridView with 4 columns & I am trying make the last 2 columns running totals, calculated by checking if the Type column value is A or B, then adding the Quantity column progressively as new rows are added. Please see table below to…
How to find where my code gets into an infinite loop
My Visual Basic code is getting stuck somewhere and never finishes. This only happens with one particular input, otherwise it works. I'd like to know at what routine the code is getting stuck. I looked for advice on the web, and it says that when…
How to sort a table without breaking column relationships when using "DefaultView.ToTable()"
How to preserve relationships between tables after sorting Related to the Designer.vb Part <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose…
![](https://techprofile.blob.core.windows.net/images/hBj0LQgf0UCJ70ENoTldCA.png?8DB7E4)
BC42017 Late bound resolution; runtime errors could occur
Hello friends, I am programming with VB.NET 2022. In this line of code: With BsQRequestPorductHeader TxtRequestPorductHeaderId.Text = .Current.Item("RequestPorductHeaderId").ToString TxtRequestPorductHeaderNum.Text =…
![](https://techprofile.blob.core.windows.net/images/OkBSOXwAX0efPCXimLDIcg.png?8DA80F)
OSVERSIONINFOEX dwBuildNumber
Hello experts, To detect Windows Server 2016 and onward, I use this code, my question is that am I using the correct build numbers to distinguish? Thanks :) If OSVERSIONINFOEX.dwMajorVersion = 10 Then If OSVERSIONINFOEX.wProductType =…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
Disabling Highlighting on a ListView
Hello, I'm making a program to display a GUI with multiple icons showing the state of devices connected to a master device, so far It's going great except the Item I used to store them in, ListView, has an issue, When selected the icon and text…
How to make a DateTimePicker to display a particular year, month, date & time ?
Hi All, I want a DateTimePicker to display a particular year, month, date and time (eg: somebody's Birthday). Is it possible? What I am trying is; using Textboxes for Year, Month, Date, Hour, Minute & Second to enter the "Birthday &…
![](https://techprofile.blob.core.windows.net/images/LkhGAkKbwkeHLUvfCG8zrw.png?8D896F)
Parse XML without namespace
Hello When parsing this kind of xml, I need to get the number of elementCount and the following 2 fields: OPFCategoryCopyBackgroundColor OPFCategoryCopyName Here's my working code: Dim MyXML As XElement = XElement.Load(MemoryStream) Dim count As Integer…
Cummulative column in DataGrid View
Hi, I have a DataGridView with 4 columns & I am trying make the last 2 columns cumulative totals, calculated by checking if the Type column value is Type A or B, then adding the Quantity column progressively as new rows are added. Please see table…
Validate Xml file
Hello, I just need to verify if a file is xml, no specific structure, so just loading to an xml parser and if no exception is thrown at load, I'm fine with it, so I use: Dim doc As XDocument doc = XDocument.Load(InputStream, LoadOptions.None) Check for…
XDocument vs XmlDocument
Hello experts, To load and parse PAD xml from string which one is recommended to use, ie faster or more…
![](https://techprofile.blob.core.windows.net/images/ofQD8GBS0U6YYGKocDXMyQ.png?8D8915)
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…
Unable to set my 'Busy Status' in outlook when replying to a meeting invite?
I can't seem to set my 'busy status' (free, busy, out of office etc) during the 'response' screen when replying to meeting invites. Do I need to manually set this for each meeting by selecting from my calendar after responding to the email invite? I am…