Questions tagged [vb.net]

1 votes
0 replies
using VB.net how do I pass credentials to ssrs report server?
I'm trying to pass credentials to the ssrs server to load the report as PDF but am getting 401 unauthorized error. I have a vb.net web forms pro...
asked 4 months ago
0 votes
0 replies
SSIS call to SMO works in Visual Studio but fails when run from a SQL Agent Job on the server. Jobs not using SMO work fine
I wrote an SSIS 2017 package that uses SMO (sql server management ojects) to synch my disaster recovery (DR) server with my production server. B...
asked 4 months ago
0 votes
0 replies
Optimal way to create and use ODP.NET connection
I am trying to understand what the most efficient yet maintainable way to create and use connections with ODP.NET. My standard approach to writ...
asked 4 months ago
1 votes
1 replies
RegEx for matching a special pattern in VB.net
I have code that extracts the text in different SGM files using the files Entity reference (&Ch1;). The code works great for this, but now it...
0 votes
0 replies
How can I write data into a row in Virtual Studio? (MS Access Database file"
I would like to make a small application what can make easier my work. I have to make one ordering process some labels where I have a plan and f...
asked 4 months ago
-1 votes
2 replies
How to get CType/DirectCast working with a defined variable instead of a direct type?
I can't get the code below working. The error is in the last line: Type 'ChangeType' is not defined. Does the compiler thinks that ChangeType i...
asked 4 months ago
0 votes
0 replies
Display string as HTML view on printer, PDF, OneNote, Fax, XPS, etc
I would like to print HTML view from string no matter what kind of printer user choose. I'm trying to use System.Drawing library and method DrawS...
asked 4 months ago
0 votes
1 replies
Cmd.Parameters Vs Cmd.Parameters.Item
I am facing some awkward situation with VB.Net code. I am having source code of ASP.Net using VB.Net which was written in late 2010. It has bee...
asked 4 months ago
0 votes
0 replies
Why “An unhandled exception of type 'System.StackOverflowException' occurred in itextsharp.dll” can occur and how to solve it
I am using iTextSharp version 5.5. I am getting the error "An unhandled exception of type 'System.StackOverflowException' occurred in itextsharp...
asked 4 months ago
1 votes
2 replies
Send a list of items with hyperlink attached ASP.net VB
I am trying to send an email with a list of items. This items has a link attached in a grid view. Dim mm As New MailMessage() mm.To.Add(t...
asked 4 months ago
0 votes
0 replies
how to set object reference properly to an istance of an object? [duplicate]
I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object. Wh...
asked 4 months ago
0 votes
1 replies
Making a User Control that is in two pieces
I am creating a collapsible panel control that is comprised of a clickable label docked at the top with an up/down arrow inside and a panel below...
asked 4 months ago
1 votes
1 replies
How to save a WPF chart toolkit as image in the clipboard?
I already was using Windows form chart and I was able to save the chart control in the clipboard with these codes: Dim stream As New System....
asked 4 months ago
0 votes
1 replies
Display column based on the displayed row from another SQL Server table in vb.net
I am quite new to vb.net. How to display the row data value as column name in vb.net? Given some of the table structure. Table 1 with its origi...
asked 4 months ago
0 votes
2 replies
how to make sql according to all datagridview selected rows values?
i want to make sql accordindg to all values in datagridview selected rows.the value found in column number 8.i tried this code put it giving only...
asked 4 months ago
-1 votes
0 replies
How can I do a unit test using vb.net?
I am trying to do a unit test using the following code but I can not do it. Would you like to check it out and give me a guideline. Cheers Publ...
asked 4 months ago
1 votes
3 replies
Images cropped (stretched) when dragging from outlook to .net application
We have an application that users drag files from their desktop or from outlook onto. This works very well for actual files, for actual emails,...
asked 4 months ago
1 votes
0 replies
How to support 2 finger pinch/zoom gesture from precision touchpad in a .net wpf application?
I have .net code for a WPF app that recognizes two finger pinch to zoom or rotate and translate manipulations but only when running on a PC with...
asked 4 months ago
0 votes
1 replies
Static assignment of object instead of dynamic reference
I want to make a static assignment of an object to an aray of those objects. At the end of the code below, all three entries (0,1,2) in the CO_m...
asked 4 months ago
0 votes
1 replies
Crystal Report Image Displaying Randomly
IM USING VB.NET - SQL AND CRYSTAL REPORTS I'm trying to display an image into a crystal report's report but the image is displayed 20 % of the...
asked 4 months ago
-1 votes
1 replies
Split multi line in VB
I have a problem in split multi line in that it only splits the first line. I want to split all the lines. Dim a As String Dim b As String Dim...
asked 4 months ago
0 votes
1 replies
How to find all null items in data table vb.net
I have a data table with lot of items and some of the items are null. I want to find all items with that are null and insert String.Empty. Today...
asked 4 months ago
0 votes
1 replies
Is there a way to check NOEXEC state?
I've been searching for a while and can't find anything to start with. If this is a duplicate I'm deeply sorry but maybe my keywords while googli...
asked 4 months ago
0 votes
0 replies
Cannot focus on Windows Forms element in WPF WindowsFormsHost
I am trying to set focus on a Windows Forms richtextbox inside a WindowsFormsHost, but it doesn't seem to work. RichTextBox1.Focus() I believe...
asked 4 months ago
0 votes
1 replies
How to SUM DataGrid column and show result in TextBox, label or a Grid footer in VB.net WPF?
How to SUM DataGrid column and show result in textbox, label or grid footer in vb.net WPF? 0 1 Answers 1...
asked 4 months ago