19,066 questions with no answers
0
votes
0
answers
17
views
ASP.NET WebForms: Adding StaticFileModule Rule for XML Causes “Duplicate Entry” Error and Breaks Index.aspx
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" ...
0
votes
0
answers
300
views
How to export selected rows from Datagridview
I have created a datagridview to display data from an MS Access database. I need to create a export function from datagrideview to Excel.
Here's my code to export all data from datagridview to Excel:
...
0
votes
0
answers
72
views
How to get the full file path from a document(.txt, .docx) opened using Process.Start that was edited and saved by the user?
I execute the documents by this way:
Dim proc As New Process
proc.StartInfo.FileName = sender.Tag
proc.Start()
For Example: the document opened was a notepad. I wrote on it the phrase "Hello World!...
0
votes
0
answers
92
views
How can I check if a Windows service is running on a remote server in VB.net?
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 ...
1
vote
0
answers
62
views
custom textbox to handle currency
I am trying to create custom control using Textbox to handle currency while my purpose is to display the currency symbol while writing in the textbox and when lost focus.
Imports System.Globalization
...
0
votes
0
answers
58
views
Marshal.GetActiveObject Fails with error code 0x800401E3
I am attempting to connect to SolidWorks via this code:
Dim swApp As SolidWorks.Interop.sldworks.ISldWorks = _
TryCast(System.Runtime.InteropServices.Marshal.GetActiveObject("SldWorks....
0
votes
0
answers
85
views
Export Crystal Report to stream as PDF - Error when viewing in Chrome
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 ...
0
votes
0
answers
39
views
Error when using ExecuteNonQuery in SSIS Script task using OleDb connection in VS 2022
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 ...
1
vote
0
answers
156
views
Stop PictureBox from resizing when Text sze is changed VB .net
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 ...
0
votes
0
answers
43
views
How to generate an OpenCover report for part of an application?
My Application starts with frmmain
Public Class frmmain
Private Sub frmmain_Shown(sender As Object, e As EventArgs) Handles Me.Shown
Call load_interface() ' Fetch backend data, prepare ...
0
votes
0
answers
108
views
Hope to cope with exceptions inside tasks
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 ...
0
votes
0
answers
97
views
Crystal Report always showing the same data in VB.Net
In my VB.Net windows application, I have a window where there is a combo box which contains values such as "UK", "US". My database is a MS Access mdb file. When user chooses "...
2
votes
0
answers
133
views
Application developed in .NET 4.8 is working fine on a machine with only .NET 4.7 is installed. Is that expected?
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 ...
1
vote
0
answers
220
views
Can not trigger DpiChanged event in .NET Framework 4.72 VB Winforms app
I'm trying to add the DpiChanged event in a VB Winforms application, but the event is not raised.
Please check the gif animation in the link below for detailed movement
https://imgur.com/a/hYot4HP
...
0
votes
0
answers
62
views
Problem with iTextSharp - Text in wrong direction
I want to read a value from a specific area of a PDF file.
text to be read, reading area marked in red
For this, I have defined an area in the PDF that should be read.
MyCode:
Dim pageNumber As ...
0
votes
0
answers
68
views
Name of notification or name of sound that plays when a website load
I have code that is written to disable a notification sound after a website loads.
The issue is I do not know what the Name of that Notification Sound is.
I have tried just Notification by setting it ...
0
votes
0
answers
70
views
Visual Studio - Is it possible to create launch profiles for .vb projects?
I know when working with C#, it's as simple as clicking on the little arrow next to the green debug button ('Start') and selecting a start-up item.
But how can I add more profiles when working with VB....
0
votes
0
answers
65
views
Having trouble with virtual folder on localhost using IIS express
I have a VB.NET / ASP.NET web application (on .NET 4.7) that I'm trying to add a virtual folder, and have had no success. Perhaps I'm doing it wrong, or I'm missing something; I would greatly ...
1
vote
0
answers
436
views
display each textbox value in new page of the report viewer?
I have created a Report Viewer using VB.Net.
I have created a form which has 9 optional textboxes. If user input 2 textbox, 3, and so on, I'm looking for how to show each textbox value entered in ...
1
vote
0
answers
87
views
CancellationToken in ASP.NET website application
I am trying to learn how to use CancellationToken along with async/await in an ASP.NET website application but I am surely missing something unless CancellationToken should not be used in ASP.NET ...
3
votes
0
answers
1k
views
How to deconstruct ValueTuples in Visual Basic .NET?
Let the following C# code :
static (int, string) FunctionThatReturnsTwoValues()
{
return (123, "hello");
}
public static void Main(string[] args)
{
(var someInt, var someString) = ...
0
votes
0
answers
47
views
Function to order a list(of class) by multiple dynamic parameters?
I'm using a list(of Bomlist) to store a lot of information about individual items and depending on what I'm going to use the list for I'll order it different ways. I'm curious if there is a good/...
0
votes
0
answers
48
views
Linq-To-SQL: Retrieve details for an item in query results
In a project that uses Linq2Sql I have the following tables:
+-------------+ +-------------+
| Orders | | OrdItems | +-------------+
+-------------+ +------------...
0
votes
0
answers
41
views
Visual Studio (writing VB) - after inserting an explicitly typed "Implements" VS automatically adds an "Import" to the top of the class
The scenario is simple:
I create a new Class in a Visual Basic project
The first thing I type at the top of this Class is:
Implements System.ComponentModel.INotifyPropertyChanged
The moment I hit the ...
0
votes
0
answers
72
views
Zip compression not unpacking fully
I am trying to unzip a byte array into another byte. I am providing the code used.
Most of the zip files that get processed unzip correctly but every once in while, the final byte count does not match ...