Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
4 replies
60 views

I have an application which was written years ago in VB.NET. Recently I migrated it to .NET framework 4.8. This change was smooth. Now I am planning to migrate it to an ASP.NET Core 10 Web API using C#...
Jyothish Bhaskaran's user avatar
5 votes
1 answer
106 views

We have some legacy code that late binds to Microsoft.Office.Interop.Word to do various things with documents. This code has worked fine for years. The Solution is written in VB.NET and consists of ...
DinahMoeHumm's user avatar
1 vote
0 answers
43 views

I’m having an issue with the text font. I’m trying to convert an Excel file to PDF using ClosedXML and iTextSharp, and I want the text to fit perfectly inside each cell. However, sometimes the text ...
gianluca23's user avatar
3 votes
1 answer
94 views

Demo code: System.Console.WriteLine($"CDbl: {(CDbl("234.56"))} {(CDbl("234.56")).GetType} {(CDbl("234.56")).ToString("0.0")}") ...
kwc's user avatar
  • 339
0 votes
1 answer
129 views

I'm trying to copy bodies from selected parts to a target part, but there is a unique problem when copying and pasting bodies at product level. I also managed constraints with multiple axes, but ...
Yunus Mert AŞKIN's user avatar
0 votes
0 answers
92 views

Colleagues, I have a client-server application. Within the server, I've created a Windows service that uses an ODBC connection via a DSN. Sometimes when I check the server, I see that the Windows ...
Bladimir Silva Toro's user avatar
2 votes
1 answer
136 views

EDIT 5 I have erased the previous post, since the code has been fully changed (hoping no rules violation). I removed all previous references to problematic String variables. Now the question: For ...
ezio g.'s user avatar
  • 41
0 votes
1 answer
90 views

I'm working with a Hikvision DS-K1T320MFWX terminal and trying to integrate it using the official SDK downloaded from Hikvision's website. I'm developing in VB.NET, and the connection works fine: I ...
vane_bdm's user avatar
0 votes
0 answers
58 views

I am attempting to connect to SolidWorks via this code: Dim swApp As SolidWorks.Interop.sldworks.ISldWorks = _ TryCast(System.Runtime.InteropServices.Marshal.GetActiveObject("SldWorks....
Dan's user avatar
  • 159
0 votes
0 answers
27 views

Try ' Force TLS 1.2 (needed for .NET 4.0/4.5) System.Net.ServicePointManager.SecurityProtocol = DirectCast(3072, Net.SecurityProtocolType) ' Create mail Dim mail As New MailMessage() ...
Timothy T's user avatar
0 votes
0 answers
85 views

I have a Crystal Report that I'm trying to export as a stream as a PDF. I'm able to view it in the Crystal Report Viewer in the browser, but when I open the PDF in a new tab in Chrome, I get an error ...
t_m27's user avatar
  • 143
0 votes
1 answer
86 views

I have a piece of code where I am opening an XML file from VB NET console app, than I Save As this file as XLSX file Dim oxl As Excel.Application Dim owbs As Excel.Workbooks Dim owb As Excel.Workbook ...
Petr Šmejkal's user avatar
0 votes
0 answers
73 views

Background: I have developed and maintain a relatively large application using VB.net that does modeling, structural analysis, structural engineering, etc. One of the key steps during the analysis ...
Martin Brown's user avatar
0 votes
1 answer
102 views

I have an exe which is written using .NET Framework 4.8. I have the following line in the vbproj file of the exe. <ItemGroup> <BootstrapperPackage Include=".NETFramework,Version=v4.8&...
Jyothish Bhaskaran's user avatar
-3 votes
1 answer
104 views

I am trying to create an app using Visual Studio 2022, VB.NET and directshow.dll to start webcam, display what is being captured, and record it to the *.avi file. So far I can start the webcam and ...
VeraSpriteNick's user avatar
0 votes
1 answer
63 views

I'm having difficulties building a Word add-in for Release, due to some confusing errors caused by my references. Simplifying it as much as I can, here's my troublesome code (which works in Debug mode)...
mybluesock's user avatar
1 vote
2 answers
99 views

This is a simple class (Person) with a shared list (Persons). My question concerns the possibility of improving the code in the method SortByPropertyName. It works as it is but, it would more handy if ...
Polis Rabotas's user avatar
1 vote
1 answer
219 views

I'm migrating legacy C# / VB.NET applications to newer frameworks. I moved project files from legacy project files (non-SDK) into modern SDK style. Now I also added net452 and net481 as options to ...
Unnamed's user avatar
  • 292
0 votes
0 answers
108 views

Here's my example code. It's of no use, but it's short. I have an array to switch on or off the creation of Exceptions at different parts of my code and two functions. The first (Level 0) is an ...
Nostromo's user avatar
  • 1,294
0 votes
2 answers
70 views

I am currently working on an old WebForms application in VB.NET. I am supposed to add a dropdown to an existing page that has been working with all controls so far. This dropdown appears in the ...
Daniel's user avatar
  • 560
0 votes
2 answers
91 views

Visual Basic .Net has two versions of OpenTextFileReader(), as listed below: Microsoft.VisualBasic.FileIO.FileSystem.OpenTextFileReader(String) As System.IO.StreamReader Microsoft.VisualBasic....
spinjector's user avatar
  • 3,698
1 vote
1 answer
117 views

I need to use a Windows API function in my VB.NET application. I need to pass an ASCII string of text to that function. This string is stored as a zero-terminated byte array. What I currently do is I ...
and his dog's user avatar
2 votes
1 answer
62 views

This might be a VB problem but I'm not sure with all the searching I've done. Public Interface IAmmo Sub Draw(g as Graphics) End Interface Public MustInherit Class Ammo Inherits BaseObject ...
Universal Light's user avatar
1 vote
0 answers
112 views

I'm working with a Mitsubishi FX5UC-32MT/DSS-TS PLC and trying to read data from multiple D registers using the MC protocol, specifically the 0406 command (QnA-compatible 3E frame for multiple-block ...
user31209074's user avatar
2 votes
0 answers
133 views

I have a .NET application which is developed using .NET 4.5. Now this is migrated to .NET 4.8. It is a Windows application. I have a web service also targetting .NET 4.8. When I deploy the web service ...
Jyothish Bhaskaran's user avatar

1
2 3 4 5
2803