Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [vb.net]

Visual Basic.NET (VB.NET) is a multi-paradigm, managed, type-safe, object-oriented computer programming language. Along with C# and F#, it is one of the main languages targeting the .NET Framework. VB.NET can be viewed as an evolution of Microsoft's Visual Basic 6 (VB6) but implemented on the ...

0
votes
0answers
12 views

VB.net Moving a picturebox which is inside a child form using arrow keys

I have a form which is a child of a panel of the main form. There is a picture box inside this child form which i want to move using the arrow keys up/down. I have tried the following code: Private ...
0
votes
0answers
22 views

WebService missing parameter

This is a very popular issue according to stackoverflow, hovewer I didn't found anything that explains this situation: I have a WebService <WebService(Namespace:="https://testingStuff.com/...
-1
votes
2answers
326 views

c# Windows Application failed to run on another computer

I have created an new C# windows forms application. I have added COM Reference "Microsoft Excel 15.0 Object Library" to my project. This project is for importing excel data to the dataset. I have done ...
0
votes
1answer
8 views

Version conflict error When i try to update the sharepoint in vb.net

If dr(EDIData.STD_NUMBER).ToString() <> Nothing AndAlso dr(EDIData.STD_NUMBER).ToString() <> "" Then oListItem = oList.GetItemById(dr("STD")) oListItem....
0
votes
0answers
13 views

Index Out of Bound of array in vb.net on exporting to another pc

I created a vb.net project for stocks using Access 2007 as the database. The project was working just fine in my PC but when I exported the project to another PC everything is working just fine ...
0
votes
0answers
26 views

Check if system is muted VB.net

" You can easily check by "core audio.dll" api. download coreaudio.dll from here Refernce it in your project and.. than use the following code: private function getmute() as boolean Dim ...
0
votes
0answers
8 views

ERROR: A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll

I'm getting the error below when submitting some data, even though the project compiles successfully. "A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib....
1
vote
1answer
32 views

UWP-Apps: How can I improve the quality of PDF-images rendered with Windows.Data.Pdf?

What I'm doing now: I am working on an UWP-App that contains a very simple PDF-Viewer for scrolling and zooming PDFs. For handling the PDFs, I'm using Windows.Data.Pdf, which renders PDF-pages to ...
-2
votes
0answers
14 views

How to use a Centralized Database in VB.NET?

hope you guys are having a nice day. I was building an Application which will be used by around 10-25 peoples. So I was looking to use the Centralized Database. Which would be the best server to buy ...
0
votes
0answers
8 views

Why does Firefox handle the redirect differently than Chrome/IE? (asp.net)

I have a page where when it lands on the confirmation page, it sets a session boolean to true. When an user tries to go back with the browser back button, the code checks on page load if the boolean ...
-2
votes
2answers
34 views

Downloading a file into Application path

so i am using this code to download file Dim exePath As String = Application.ExecutablePath() My.Computer.Network.DownloadFile(TextBox2.Text, exePath & "/img.png") where textbox2 contains url to ...
0
votes
1answer
17 views

CustomValidator is set to false but still the form is getting submitted

<telerik:RadTextBox TextMode="MultiLine" Rows="15" Wrap="True" ID="txtBody" runat="server" Width="95%" /> <asp:CustomValidator ID="MenuLabelVal" runat="server" CssClass="Error" Text="*" ...
0
votes
1answer
20 views

How to maintain the form showed after clicking a Dialog result in MsgBox?

What I want is the same as cancelling an eventhandler. In my code, Private Sub btnADD_Click(sender As Object, e As EventArgs) Handles btnADD.Click Dim dlg As New frmGraphDataSelector(...
0
votes
0answers
9 views

Devexpress Checkbox is not functioning

My intention is the msform is set visible = false at first, and then when i clicked on the checkbox and then the msform will appear but the problem is when i clicked on the checkbox the msform wont ...
-4
votes
0answers
31 views

Website watermark [on hold]

I have designed a website for my office. The website is actually a portal to some office related information. The data is a bit sensitive and i want to make sure that no one print it or take ...
0
votes
0answers
10 views

how to open PDF using vb.net running on iis

I am doing a project that opens PDF files using VB.net web application. the app will be running on IIS Express, is there any recommended methods I can use to open the selected PDF that will be stored ...
0
votes
1answer
37 views

Open a windows explorer process, and then terminate it again

I want to open a windows explorer window and then close it again in C#/VB.Net At the moment I can open an explorer window using this code: Dim process = System.Diagnostics.Process.Start("explorer....
0
votes
0answers
22 views

Is it possible to implement a selenium event listener for a particular xPath in vb.net/c#

I have a webpage with some webelement with fixed xPath. Sometimes these webElement are present, sometimes no. Is it possible to implement an event listener 'attached' to that particular xPath? So a vb....
1
vote
2answers
18 views

How do I set a Word Checkbox using the Interop?

I can set string fields: Dim msWord As New Microsoft.Office.Interop.Word.Application Dim doc As Microsoft.Office.Interop.Word.Document This works fine: doc.Bookmarks("InitialsSecurityClass108")....
-1
votes
0answers
16 views

Programming Command Line Arguments On Form Apps

I'm looking to make an already existing Windows Form program I wrote (in VB.Net) compatible with command line arguments. There are tutorials for how to do this for Console based applications, but I ...
0
votes
0answers
30 views

Devexpress merge 3 databases but some data are missing

i have problem in merging three databases in devexpress vb.net, my code is as follow All the lotid are unique. ds.Tables("lotlist").PrimaryKey = New DataColumn() {ds.Tables("lotlist").Columns("...
0
votes
1answer
19 views

Italic fontstyle in textBox becomes regular

I have a TextBox that shows text in italic, but when it is displayed in a RichTextBox, the text becomes regular. Example: Richtextbox1.text = textBox1.text textBox1 is italic, but when showed ...
0
votes
1answer
63 views

Trying to parse a logfile and get stateinformation

I try to program some logfile Report with vb.net I have a Textfile that gives something like this. First Line is the date of the second line Happening. The Letter represents for example a username ...
0
votes
0answers
13 views

VB.net Dataset Connection String change after loading

I have an application that a user can login then switch databases. I have code in the Settings.VB to handle the update to the my.settings.connectionstring. And the datagrids and text boxes and so ...
0
votes
0answers
561 views

Could not load file or assembly 'Sybase.AdoNet2.AseClient, exception in ASP.NET

While running .NET code in my system, I'm getting the below exception: Could not load file or assembly 'Sybase.AdoNet2.AseClient, Version=2.155.8000.0, Culture=neutral, PublicKeyToken=...
1
vote
0answers
15 views

Why does “Fatal Execution Engine Error” exist in different codes during execution of debugger?

In my case, I have encountered many times the Fatal Execution Engine Error on my project. but it does not only exist on one line on the code. On my project, let me say that I have 50 or more modules ...
0
votes
1answer
29 views

Proper Visual Basic quoting for Program Files (86) path in the Process()

I've been trying to figure this out for a while. I've searched online and the solutions I've tried don't seem to work. This runs ok from my PC: Dim sourceName As String = File_To_Encrypt Dim ...
1
vote
1answer
8k views

Get specific row col values from mysql using vb 2012

I have one button retrieve I just want to get the database table "account" value by its row and col and display it in a textbox. I keep on getting errors on the datafill line Imports MySql.Data....
2
votes
1answer
25 views

How do I find the Server Data Type for a given field while using LINQ to SQL

I'm using LINQ to SQL in a .NET project, and I'm trying to do some specific property when a field is of type money. The SQL Type Money will map to the .NET type Decimal, but so will other types such ...
1
vote
0answers
14 views

Capture the output of an Asp.Net Razor expression to a string variable in VB.NET

I'm trying to accomplish in VB.Net 4.71 Razor syntax what this SO question accomplished in C# and it's not quite working. This is the code I have in my View: @code Dim a As Func(Of Object, ...
-3
votes
1answer
41 views

How to check more value in if statement VB.NET

I don't know how to do this, but i'm trying to make a code that checks value more than 10 in VB.NET (Idk what it's called) Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System....
2
votes
1answer
96 views

How can I get formatting to indent my Razor (vbhtml) code correctly in Visual Studio 2017?

How can I get formatting to indent my Razor code correctly in Visual Studio 2017? @Helpers.LabeledGroup("Label:", "infoBox", @@<text> <input type="text" id="infoBox" ...
61
votes
11answers
68k views

.Net equivalent of the old vb left(string, length) function?

As a non .net programmer I'm looking for the .net equivalent of the old vb function left(string, length). It was lazy in that it worked for any length string. As expected, left("foobar", 3) = "foo" ...
0
votes
0answers
14 views

Can't edit and continue in web app project

When debugging, if I change a line and continue, I get: "This source file has changed it no longer matches the version of the file used to build the application being debugger." I enabled tools > ...
0
votes
0answers
11 views

Print multiple pages on a modal popup

I have an asp.net project that pops up a modal when I press a button. Often, there is enough data on the modal that the user needs to scroll to see it. There is a print button that I currently have ...
2
votes
1answer
502 views

Windows Media Player Duration - WinForms

I am trying to get the Duration of the video that i have loaded into my Windows Media Player but it seems to be returning back '0.0' I need the duration value before the video starts playing as the ...
0
votes
0answers
14 views

How to delete rows dynamically using epplus?

Here I am trying to delete rows that have '*' value in any cell of that row. below is my code.. This is for headers: If ds.Tables.Count > 0 Then Dim k As Integer = 0 For j As ...
-1
votes
0answers
20 views

give row specific background color depending on cell value [duplicate]

Private Sub DataGrid_Rolls_up_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles DataGrid_Rolls_up.CellFormatting If e.RowIndex < 0 OrElse DataGrid_Rolls_up.Rows(...
-4
votes
0answers
47 views

Change the backcolor of all labels on a form when the label text = “run” [on hold]

My Form contains 100+ labels. Whenever a label's text equals "run" I need to change label.backcolor to green. Therefore, if add all of my labels to a list of label controls and then assign an event ...
0
votes
0answers
9 views

AxInterop.AXVLC.dll missing error

I am using VLC video in a Visual Basic 2017 project. It works perfect when I run it with the start button in the editor but when I publish it, and run it, and try to open a movie I get the following ...
-1
votes
1answer
74 views

Determine which of 3 values is highest and add its value

My code needs to take the highest value of 3 lines and add it to the "line" property. However it's not behaving how I would expect, I'm having erroneous errors in all 3 lines where I assume it adds ...
-1
votes
1answer
30 views

vb exporting the contents of a textbox into a txt file on the PC with different names for each file automatically

I have found the following code on another website - a print function that exports the code in the textbox into a txt file in the c drive of my PC. When trying to alter it to make it suit my code it, ...
-1
votes
2answers
49 views

Class Fields in VB.NET can be encapsulated without the Getter & Setter?

In a VB.NET I noticed that I'm able to create a property directly by using the Property keyword followed by the property name and the datatype without the need for the getter and setter method while I ...
-2
votes
0answers
20 views

Getting all files from specific drive

I want to make a program that scans a drive (gets all files) for a specific file I'm looking for for example (random.txt) let's say. I've tried a lot of codes people made. none of them were useful to ...
0
votes
0answers
424 views

vb.net, Windows Mobile, Bluetooth Portable Printer. How to print image?

I have a windows mobile device with a bluetooth portable receipt printer, I need to print a .PNG image on the receipt but i cant find the way to do this. Here's the code that's concerned with the ...
0
votes
1answer
24 views

VB.Net using VBA to access Excel Pivot tables

I created an xlsx file with several sheets, each having at least one pivot table which is used by some kind of chart on the same sheet. All these pivot tables use the same data from another sheet ...
0
votes
0answers
6 views

System.Runtime.InteropServices.COMException when running vb.net application to connect to local DB

My current application can run perfectly in Debug mode in Visual Studio and if I run the .exe in the debug folder. When I switch to release mode or try to package the application to install, I keep ...
1
vote
0answers
35 views

Char.IsDigit vs NumberFormat.NativeDigits

I'm working on optimizing my parser for JSON that I built in Visual Basic .NET. I do not follow the EBNF verbatim, for example with numbers I match for an optional positive sign and for boolean/null ...
0
votes
0answers
32 views

Select from query not functioning

I just want to search data in my db but it is not functioning even if the data that I input in the textbox and comboBox has the correct data it keep show the else statement. it should be the else ...
0
votes
1answer
22 views

How can i keep adding buttons related to what i wrote when i click the button

Public Class Form3 Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1....