Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

I’m running into a specific issue with my web.config when trying to serve XML files. As soon as I add this rule: <add name="XmlFile" path="*.xml" verb="GET,HEAD" ...
Mohammad Taha Moghaddasi'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
Advice
0 votes
0 replies
18 views

In my dataset for an SSRS report, I have a column that is comprised of a path and a file name of an image, dynamically created by each user's user id, as that's how the images for their pics are ...
missscripty'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
Advice
0 votes
4 replies
110 views

I have a class in VB.NET. The definition of this class is re-defined according to need. For example: TR as char(2), F1 as Char(10) then later TS as Char(2) F1 as float. I want to define one class and ...
Tleilax's user avatar
  • 75
-1 votes
1 answer
111 views

I'm learning to update a record in a SQL Server table after checking for concurrency violation using a RowVersion column (timestamp data type). However, I'm not able to extract the existing RowVersion ...
lakshitha dilhan's user avatar
0 votes
1 answer
93 views

I am having some difficulty setting the focus inside an .ascx custom control. Microsoft Copilot advises me to place a txtName.Focus() or Page.SetFocus(txtName) inside the Page_Load event of the .ascx. ...
Sheldon M. Penner's user avatar
1866 votes
26 answers
2.5m views

I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object. What does this mean, and what can I do to fix this error?
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
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
0 votes
2 answers
269 views

Can the TextBox portion of a ComboBox be made resizeable on all sides? I've done this with the TextBox (shown below). I thought the ComboBox was a composite control with a TextBox & ListBox, so I ...
spinjector's user avatar
  • 3,698
1583 votes
19 answers
630k views

In most programming languages, dictionaries are preferred over hashtables. What are the reasons behind that?
Nakul Chaudhary's user avatar
438 votes
47 answers
490k views

How to calculate the difference in months between two dates in C#? Is there is equivalent of VB's DateDiff() method in C#. I need to find difference in months between two dates that are years apart. ...
Rauf's user avatar
  • 12.9k
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
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
1 vote
2 answers
165 views

An elegant solution for drawing polygons on a form was proposed by Jimi, as part of an answer to the question Why am I getting an extra line when drawing polygons? (see attached code). I designed the ...
Florin Home's user avatar
0 votes
0 answers
96 views

I have 3 panels and would like to use update panels as follows for better display. ASP.NET / VB.NET Panel 1: 2 text boxes 2 drop down lists Panel 2: 2 buttons Panel 3: 3 drop down lists 1 checkbox If ...
t_m27's user avatar
  • 143
0 votes
1 answer
70 views

I am implementing 2 Factor Authentication TOTP (Time-based One-Time Password) for a login page. After enter id and password, it will go to TOTP checking. It can only get the first code and won't ...
Matthew's user avatar
  • 15
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
0 answers
156 views

Cannot insert the Code comes up with:- "Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K ...
DaveOLW's user avatar
  • 11
0 votes
0 answers
39 views

I have created an SSIS package to transfer a large bulk amount of data. Everything works fine on all my other Execute SQL Tasks, however on my only Script Task I keep getting the error Invalid column ...
Sheztc1977's user avatar
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
948 votes
14 answers
612k views

How do I enable assembly bind failure logging (Fusion) in .NET?
user32736's user avatar
  • 10.5k
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 votes
1 answer
132 views

I am trying to do the same sort of thing as the OP this question, but can't get the suggested code in the answer to work. I'm using Visual Studio 2022, but doubt that's the reason it doesn't work for ...
Ian's user avatar
  • 13

1
2 3 4 5
2803