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 Microsoft .NET Framework. DO NOT USE this tag for VB6, VBA or VBScript questions.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Trying to make a borderless form that is compatible with aero snap

I am trying to incorporate aero snap on a borderless form. However, using it creates a 10 pixel thick white line on top of the window. Is there a workaround for this? I tried to redraw the window ...
-1
votes
1answer
16 views

Verify File Size

So, I'm currently working on a program that downloads files from my server once a button is clicked, and then verifies that once the file is the specified size (One is 56,450 KB), then once it ...
0
votes
1answer
23 views

list only once filetype in combobox

this code Try For Each file As String In System.IO.Directory.GetFiles(dir) If System.IO.Path.GetExtension(file).ToString = ".xsl" Then ComboTheme....
0
votes
0answers
10 views

TmdbLib Help Discovering Movies between two different dates

OK, so I'm using VS2015 and using Visual Basic with 4.6 framework. My issue is with TMDB, the movie database (http://themoviedb.org) and the library I'm using I've added it using nuGET. My code is ...
0
votes
1answer
11 views

Using a Socket API in SQL CLR

I'm trying to use a third-party API that is a socket based API with SQL CLR and vb.net. I know how to do this with REST APIs, however, I cannot figure out how to get started with a Socket API. Does ...
1
vote
4answers
38 views

.Net Core Strings.Asc/Mid/Chr/Len missing even after importing Microsoft.VisualBasic

I have to port some old VB code (cannot post for security reasons) over to a C# .Net Core application and I added the Microsoft.VisualBasic to my using's but I still get errors saying Cannot resolve ...
0
votes
1answer
34 views

How would I fix error 9009 in versioncheck.vbs

When I try to compile a Visual Basic project in Visual Studio 2019, it works fine, except that I get an error 9009 for file versioncheck.vbs, which apparently does not exist on my system. Can I ...
0
votes
1answer
36 views

how to copy paste text from a file when using a modal dialogue in vb.net

I am using modal dialogue(ShowDialog) in my project and now, user want to copy and paste few text from other application but modal dialogue will not allow them to do the same because modal pop up ...
0
votes
1answer
23 views

Opening, Changing, and Saving Excel Sheets with DGV

I have an application that opens an Excel Sheet using OleDB and displays it in a datagridview. Currently, I'm able to open the sheet - but am running into a problem with saving. Here are my ...
-5
votes
2answers
58 views

Is there anyone, who can help me about command line parametters in WinForms aplication?

I have problem with understanding commandline arguments in VB.NET. Need help from anyone, who understand it. This is for my app. What I wanted is when app is started with switch -U or any other ...
0
votes
1answer
27 views

Can you display a mobile webpage in VB.net webbrowser control

I want to be able to display only mobile versions of a webpage in the VB.Net WebBrowser but cant find a way to do it. In Internet explorer you simply press f12 and from the emulation tab you can ...
2
votes
1answer
45 views

PHP Converting Hex string to Byte Array - converting VB.Net to PHP

I'm writing a PHP website that is accessing an encrypted MySQL database. The database is currently a back end to a VB.Net Windows forms program. This is all working fine, but I want to the PHP website ...
-2
votes
0answers
30 views

How to establish a connection to a linux server in .net that has username and password [on hold]

I have a linux server hosted, It has a username and password to login, and i am trying to establish a connection to that server from vb.net/c#.net code? 1) I tried with sockets but that does not ...
-2
votes
0answers
29 views

VB.NET | Distinguish Automated Clicks from Human holding Leftclick

Declare Sub mouse_event Lib "user32.dll" Alias "mouse_event" (ByVal dwFlags As Int32, ByVal dx As Int32, ByVal dy As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As Int32) Private Declare ...
0
votes
1answer
43 views

Replace special characters to display as in database

I made a screen in asp.net for user to input data. There is a field Remarks varchar(200). When user inputs any special characters like &, ", > it is saved in sql server as it is but when it is ...
0
votes
0answers
21 views

How can I SET NAMES latin1 to work in VB.NET

I'm not able to successfully convert my data to "latin1" in my VB.net app. And either show the correct data in a gridview or what I am trying to export the correct data to excel. Every German word ...
-1
votes
1answer
20 views

Is it possible to autosum in Gridview selected cells? [on hold]

I have a gridview having data in it and want to calculate sum of selected columns as soon as I select them by dragging mouse on to them.
0
votes
0answers
23 views

Is comparing two images in VB.NET by compairing their byte-arrays valid?

I need to compare two images and find out if they are equal (imagewise not reference). So I took this approach: Public Function ToArray(ByRef img As Image) As Byte() Dim m As New MemoryStream ...
0
votes
0answers
14 views

2 Programs Monitor the Same UDP Message - VB.Net

Can two independent programs on the same computer monitor the same UDP broadcast message? Everything I read on the subject says that 2 programs cannot sit on the same IP address and port. Some posts ...
-1
votes
1answer
55 views

Matching records between two tables

I have the below code to do matching between two different tables. The code only updates the first record as "Matched". I want to compare each record in ID field from T1 if it present in T2, e.g. To ...
0
votes
1answer
24 views

executing javascript function from code behind not working

I have a button click action that I need to call some javascript in from the code behind, in order for it to execute after the button click action code has executed the function works fine when ...
0
votes
0answers
22 views

Making a button bind for shortcuts [on hold]

So, I've been researching this topic online, and I've found no documentation of this, maybe perhaps i don't know how to call this? But, i want to make a button, for binding a key to a button so you ...
0
votes
1answer
16 views

display a warning message when an exception occurs

i have a webservice that inserts, delete, updates the data from or to a database. so in this particular form it has a foreign key. so basically it should only accept values which are present in the ...
0
votes
1answer
39 views

How to count date difference in vb.net and count saturday and sunday as 1?

I am new to programming and I want to learn. I am counting the date difference from the date of check postponement to the actual check date. (Accounting Scenario) Let say, I have a check which is ...
0
votes
0answers
22 views

How to make game functions available based on in-game clock?

I am making a game with an in game clock (Think Stardew Valley.) in Visual Studio. Time does not automatically advance though; doing things in game advances the clock. I want some things to be ...
-1
votes
0answers
41 views

Concatenate variable names

I want to use a For loop, to display the values stored in existing variables as: foo1 = 10 foo2 = 20 foo3 = 30 fooN = X I expect something like... For i As Integer = 1 To 4 Console.Write($"{...
1
vote
0answers
14 views

Using NamedPipes from a DLL to a single server

Do the names of a bidirectional NamedPipe in a DLL in different applications and all communicating to a single server need to be unique or will a common name work? i.e. (App1 with DLL pipename "DLL1" ...
0
votes
0answers
16 views

Finding the column name when an error occurs in SSIS data flow

Well, I am trying to capture some error information after performing some validation steps. I would like to export that info and use it to highlight the error data in an excel table. But that is just ...
0
votes
0answers
42 views

TimeSpan.Parse Not Working When Processing CSV File

I am trying to upload tracks to my SQL database via a CSV file, but when I try to process the file, I get this exception: System.FormatException HResult=0x80131537 Message=String was not recognized ...
0
votes
1answer
23 views

How to get postgresql tablename for a given column in a joined query

Using npgsql to access postgresql. Arbitrary SELECT is provided by user, grid displayed, application-specific metadata shown when user clicks column heading. That metadata is stored by table and ...
0
votes
0answers
21 views

How can I get the next table ID (PK, AUTO_INCREMENT)

I need to get the next ID that is the primary key and is auto-increment from my table and then put that number in a textbox. Dim str As String = "Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:...
0
votes
0answers
12 views

Is there any way to consume a SOAP webservice when the address is informed by the user?

I need to make an application that consumes a SOAP webservice, but the link is configurable by the end-user. The structure of the methods and etc should stay the same independently of the address the ...
0
votes
1answer
28 views

PCOMM Cross-Contamination

We're trying to run multiple IBM Personal Communications sessions on the same (Windows Server 2012) VM under different users, but it seems that PCOMM doesn't confine itself to the current user. If ...
0
votes
1answer
26 views

specify the same key file in visual studio

i faced problem while obfuscation process. i am still beginner don't know how to fix that. i search on metroframwork ui .dll key file, but not much positive result.` otherwise i didn't find anything ...
0
votes
0answers
26 views

VB .Net can't reference a byte* pointer in a method from an unmanaged DLL

I have an unmanaged DLL in C# that has a method whose signature has a byte*. Something like this: [DllExport("ImportImage", CallingConvention = CallingConvention.Winapi)] public static ...
0
votes
1answer
13 views

Select the last added node in TreeViewAdv

Using Andrey Gliznetsov's TreeViewAdv, how do you add a node and then programmatically select it? There is some useful information in this document but this section doesn't work for me To select the ...
0
votes
0answers
35 views

Application cannot locate image resource, using CommonControls

As a part of my application I have buttons with images. I use the WPF_CommonControls library. I have a folder called Images in my project where I store all the pictures. I set up the grid like this: &...
-1
votes
0answers
42 views

Simple POS Program - How to show the number of bills needed for the change? [on hold]

I created a simple Point of Sale program without database in Visual Studio 2008 (VB.NET) and I want to output the number of money bills that are needed to complete the change of the customer This is ...
0
votes
2answers
46 views

How to pass parameter of filename(file name) from folder path (pdf file) into a href tag in asp.net using vb

I would like to pass parameter in url (a href tag) by passing filename(of the file, pdf file) from a folder path in asp.net. How can I do this? Here is my syntax for getting the folder path //...
0
votes
1answer
42 views

How to disable Vertical or Horizontal Scrollbars in a ListView Control?

I try to disable the Horizontal ScrollBar in a ListView Control. By setting the Scrollable property, it disables both Scrollbars. I also tried to change the Alignment property but I have the same ...
-2
votes
0answers
27 views

How to make ComboBox boarder to be Fixed 3D

I need to Make Combobox Boarder style to be Fixed3D , How I could do that?
0
votes
0answers
12 views

Passing input parameter to function in MVC controller

I'm building a website using MVC, Entity Framework Database First and VB.NET. I last tried doing this some 20 years ago when it was a lot easier! I have a table, Matches, containing results of soccer ...
0
votes
0answers
53 views

VB.NET - Wait till event is finished

I wrote a fast example program of what i'm trying to accomplish. The program gets a process and enables it to raise events. I'm especially looking at the Process.Exited event. It will be fired when ...
0
votes
0answers
23 views

Attempted to read write protected memory (Zkemkeeper)

My project is to fetch hundreds of different biometrics devices using zkemkeeper. I found no error in my script because its working properly it connects to bio then count logs then fetch then save to ...
-2
votes
0answers
42 views

Expression does not produce value

I have Private sub getData1() & Private sub getData2(). I'm trying to call data from Private sub getData1() Private sub getData2() Dim zz = getData1(dt.Rows(0)(chair.Trim & x).ToString....
0
votes
0answers
33 views

How do I create a new file from message queue?

Now I can send a file to message queue but I don't know how to create a new file from message queue with another PC. I send file from one PC to another PC through message queue. This is my code. Dim ...
0
votes
1answer
35 views

is there any way to lock a row temporarily

I am using sql server with my VB.NET application where in multiple instance of the application is run from different server (CITRIX). I am sorting and picking up one individual Row for processing and ...
0
votes
1answer
21 views

Displaying data on one row rather than multiple rows on datagridview (Stream reader)

is there any way I could display a data to the datagrid view Columns through depending on the value of a cell. I was working for a program relating a time and attendance system that would disperse the ...
0
votes
0answers
23 views

I got this error "Additional information: Incorrect syntax near the keyword 'Table'

It seems the problem on my code is the SQL query, I don't know if my query is correct I've been looking for the right query on this but I haven't found a solution Private Sub Button1_Click(sender As ...
0
votes
1answer
33 views

How to make a string case sensitive in VB [on hold]

I have been writing a small program that encrypts and decrypts messages put into a text box with simple ciphers. I want to make my program read "AaBbCc" as "AaBbCc" convert it to my specifically ...