Content
VB.NET - Email code does not work with Office 365
The code below has been used successfully for awhile, but we recently discovered that it is not compatible with Office 365. We need to modify the code but we don't know where to start (online searches were not helpful). Could someone please point us to…


Email code in VB.NET does not work with Office 365
We have been using the code below for awhile and recently found out that it is not compatible with the Office 365 version of Outlook. Could someone point me in the right direction to resolve this issue? Thank you. Private Sub btnEmail_Click(sender As…


I can't seem to figure out how to resolve "Conversion from type 'DBNull' to type 'Integer' is not valid." error
Greetings again. Please forgive me for being a bother again. As embarrassing as it sounds, I have been working on this pretty all day and can't seem to figure it out. When I try to run the following code: Dim undetected As Integer = 0 Dim…


User drawn ToolStrip Menu ToolTips
With considerable help from this forum, I have recently completed conversion of my vb.net applications to use user draw for controls. However, I have had no luck asking how to extend the user draw property to ToolTip of ToolstripMenuItems. And perhaps…


How do I return RTF for ALL selected text, including any invisible text, when .NET version is 4.7 or higher?
WHAT I HAVE: Visual Basic 2019, WinForms, .NET Framework 4+, RichTextBox MY PROBLEM: For .NET Framework 4.6 and lower, SelectedRtf returns any and all hidden (invisible) text in a RichTextBox selection, even when the hidden text isn't surrounded within…


How many processes can use a thread?
WHAT I HAVE: Visual Basic 2019, WinForms MY QUESTION: True or false: Multiple application domains within the same process can use the same thread, but multiple processes can't do so. If I look within Process.GetProcesses and ProcessThread.Id for the…


CommunityToolkit (apparently ) not generating internal code
I've decided to give the CommunityToolkit a try but my code and the parts of the Toolkit are not making a connection. Here's the relevant parts of my MainWi8ndow: <Window x:Class="MainWindow" <Window.DataContext> …


VB. How do you re-open Form2 that was called by Form1 after Form2 has been closed.
I have Form1 that has buttons on it, one of which opens Form2. Originally this button just used Form2.show but that resulted in a new form each time the button was clicked and I didn't want to have extra forms open for no reason so I changed the…


Como abrir um Form com VB .net no segundo monitor direto?
Oi, Estou esperimentando 2 monitores no meu projeto do VB .net E estava querendo saber como que consigo iniciar um Form direto no meu segundo monitor com o Form já maximizado, pq qualquer teste que eu faço ele só abre no monitor principal Qualquer ajuda…


Dir Sep Char / Volume sep char or hardcoded backslash?
Hello all expert users I'm adding a back slash directory separator char at the end if: If TargetDir.EndsWith(" : ") = False Then TargetDir = TargetDir + " \ " My vb.net app which targets .net framework 4.0 will only run on Windows 7…


I am trying to cast a type into an interface and have some problems with it
Hi guys! I have the following code snippet that I'm currently trying to reason about. It looks a bit constructed but contains all important assets of the actual code, so please bear with me here :) Interface ISpark Function Swing() As Double End…


SSRS Sql Server Reporting Server Custom Security 2019 exception in Windows Server 2019
Hello Friends I am facing a problem with respect to SSRS(Sql Server Reporting Server) 2019 Custom security Exception in windows server 2019. SSRS report works fine from winforms vb.net code in previous version of SQL Server (2016, 2014 and 2012) but…


Application has stopped working after a change in the interface of legacy VB 6.0 ActiveX DLL (DCOM)
Hi, I have changed an interface in the existing legacy VB 6.0 ActiveX DLL, but after the change unable to create the object from another server (DCOM). Below are the steps followed to deploy the component 1. After the change, rebuilt the VB 6.0 DLL…


Cannot Get a ComboBox to Show the Items Properly
I have created a very simple project to illustrate my problem. I fear the resolution is simple but for the life of me I can't see it. I have but one model: Public Class SECategory Public Property CategoryID As Integer Public Property Plural As…


SELECT MONTH AND YEAR FROM DATE FIELD FOR SQL DATASOURCE FOR A GRID VIEW
I have a gridview with sqldata source in my aspx+Vb +sql web. There is a date field in my table have on dropdownlist mthtxt.text and another dropdownlist yrtxt.text Table name is Clinic_Med_Issue Empno Name Medicine qty effdate MM001 Baiju …


records update using visual basic and UPDATE SET statement ACCESS table
Hello There I am trying to update ACCESS table records using the statement UPDATE SET WHERE and a datagridview as source, the code that I put together seems to be running fine (syntax talking), I say syntax because there is not error or break during…


how can i disable the arrows and enter key when I edit the datagridview cell in vb.net
Aslam o Alikum I am making a project in vb.net and I am facing a problem in datagridview when i am typing some word in a cell when i press the up or down key then my cursor move to next cell. i want when i press the enter key then my cursor is move to…


How to mimic MouseEnter event?
Hello, When I move the mouse pointer over a Button it will highlight, is it possible to trigger this mode from code, so it seems like the mouse is over the Button? Primary vb.net 2010 .net 4.0 Thank you


(VB.NET) How to verify login permissions using a DataSet and QueryBuilder?
I wasnt quite sure how to properly write the question so bear with me please, here i'll explain as much as I can. And sorry if its too long. I am building a basic school project that allows employees to register their time-in and time-out of the job…
VB What is the best way to populate a Datagridview from a text file?
I haven't coded for many many years and have had little experience with .Net. VB6 is mostly what I used and I am trying to adapt, so I thank you for your assistance and patients. I need to populate a DataGridView from a text file. This file is delimited…

