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.

0
votes
0answers
2 views

Application USB enumeration failed in 64bit mode VB.Net, PIC18F4550

My x64 application cannot enumerate PIC18F4550, but x86 version of same application can. What is the problem? Tried running it in x86 version, worked. the VB code is given below ........................
0
votes
0answers
5 views

VB.NET How to initialize a constant with non breakable space character

I have this code written in c# and it is valid and working. public const char NBSP ='\u00A0'; For some reasons I need to write this method in VB.net. I tried these: 1. Public Const NBSP As Char = ...
0
votes
0answers
4 views

Link a Chart with a datatable in VB.net

Now I created one query to select 2 columns from my datatable, I added a chart and I want to link the chart with the selection of the datatable I want the data of the first column to be on the X axis ...
1
vote
0answers
8 views

(VB.NET) display the lower half of a textfile to a listbox

I have to make a application that organizes a list of runners and their teams. In the following text file, I have to remove the top half of the text file (the top half being the listed teams) and ...
1
vote
0answers
7 views

How to stop dictation window when using speech recognition in .net?

I've been attempting to create a voice dictation app in vb.net - but I'm afraid I haven't got past the first bit! I have the issue (and I don't know if this is just a windows 10 thing and if it can ...
0
votes
1answer
20 views

Problem populating DataGridView with Structured Array

When I run my code, populating the array with data from a csv logfile, the DataGridView populates with empty rows. I have tried just using a 2 Dimensional Array, I get the same results. I suspect I ...
0
votes
1answer
27 views

How to store user's information for future use from MySQL

I have a very simple application where a user will login and be redirected to the dashboard. I got the login part working, however, my next goal is to be able to store the users information for later ...
0
votes
0answers
27 views

An app operating under Windows 10 finds a byteOrderMarkUtf8 in a string, but there isn't one in the string

I have an app that receives an XML string and tries to clean it up before processing. For some reason, under the Windows 10 operating system, the app thinks there is a byteOrderMarkUtf8 leading the ...
0
votes
0answers
23 views

Winforms: Prevent Automatic Drawing of Child Controls

I'm working on creating a Control/UserControl that is capable of Panning, Zooming, and displaying items based upon Cartesian Coordinates. I actually have these features working for internal test ...
0
votes
2answers
29 views

How to transfer data from parallel arrays into a textbox?

I'm trying to write a program that splits data from a text file into parallel arrays and then writes the content of each array in a textbox. The text file is something like this: Title1, Genre1, ...
-2
votes
3answers
21 views

Count a digit Separated by a comma

how does this code work code Digit separated by a comma (Example: 1,2,12,14 = count = 4. TxtNumberListCount.Text &= Environment.NewLine & TxtMReadOnly.Text.Where (Function(x) Not Char....
0
votes
1answer
17 views

Why a specific folder isn't accessible even if my program is executed as admin?

Hi people! So right now I'm making a Minecraft Launcher, but I have a problem. I need to list every libraries in the .minecraft libraries folder, but the launcher can't access it even if it's ...
0
votes
1answer
19 views

Index Val List VB.Net

I have a Listbox called ListTxtDrawR4. Every time I select an item, I want to display the value corresponding to the index in a textbox with name TxtNumberListScan.Lines(i). for example, if I select ...
0
votes
1answer
26 views

variables overwrite themselves when going through the loop

I am trying to create some code that searches a word for references in a dictionary however after finding its first word it overwrites itself when going through the loop again. I've tried making all ...
0
votes
0answers
14 views

Multi data filter problem: second filter neglect first filter. How to solve it?

In my simple LMS project, i filter two columns,first column with "LIKE" condition and second column with "NOT LIKE" condition at the same time. The first filter works fine and the second filter, ...
0
votes
0answers
25 views

Copy list of files with the Windows “Skip All” / “Replace All” file dialog

I have a List with about 200 filepaths to be copied to a new location (replacing the root of the path from a remote, to a local). (from about 6 different directories) I'd like the user to be ...
0
votes
1answer
13 views

How to set text and background color in Spreadsheetgear?

In SpreadsheetGear 2012 I want to set: text color to white. background color of the cell to black. I've tried variations of: Sheet_Obj.Cells(0,0).Style.NumberFormat ="@" Sheet_Obj.Cells(0,0)....
-1
votes
2answers
20 views

Copy PNG file from resources to local folder

I'm creating an installer for an application but i have an issue with copying my png file to a local folder from my resources. i tried the usual stuff like file.copy file.writeallbytes but nothing ...
0
votes
0answers
30 views

Select with 2 conditions

can you please help me to fix the following code: The code is trying to get data according to the 2 conditions: Select data when a checkbox and a value form a drop down list is checked Select data ...
0
votes
1answer
30 views

How can get Network ID of a subnet mask?

This is my code, I can get IP Address and Subnet mask, Dim strHostName As String Dim strIPAddress As String Dim strMsg = "" strHostName = System.Net.Dns.GetHostName() strIPAddress = "" ' System.Net....
-3
votes
1answer
36 views

How to add a designated key to close an application

I'm making a web browser in Visual Basics, and want to asign the "CTRL" key to close down the program. Has anyone got any ideas on how to? I've tried scouting the web for some code, but unsure where ...
0
votes
1answer
18 views

VB.Net - How to compare 2 columns in GridView as numbers?

I have a GridView which I plan to add different colors in each row based on certain conditions. One such condition is to color the row in a specific color if a number in column 6 is higher than the ...
0
votes
1answer
18 views

Evaluate string on record table,

How to evaluate match on the record table with vb I have a code like this Dim absenperintah As SqlCommand = New SqlCommand("Select * from mytable where kodetp ='109'", cekdata) ...
0
votes
0answers
10 views

Transferring data from listviews across pages

I have a listview on the first form of my program which fills up with score data that the user enters. I then have a leaderboard form page which I want to fill up with this score information in order ...
-1
votes
0answers
9 views

display multiple phone number in single textbox if i click in datagrid using cellclick

if i click the datagrid the value is phone number how can i add multiple phone number in a single textbox if the command is cellclick. Private Sub DataGridView1_CellClick(sender As Object, e As ...
1
vote
1answer
39 views

Json serializer returns empty string

I have a class as below code. and I tried to convert it to XML and JSON but both of them returns empty value : {} Public Class PivotSet Public Shared Property selectedlines As Boolean() ...
0
votes
1answer
35 views

WPF binding backgrounds as SolidColorBrush

I have this grid: <Grid x:Name="topGrid" Height="100" VerticalAlignment="Top" Margin="10,0,0,0" /> In my code if I set the background like this: topGrid.Background ="#FF3C3C3C".ToBrush()...
0
votes
0answers
15 views

CheckedListBoxControl should only be checked when clicked directly on the checkbox not on caption

I'm using CheckedListBoxControl of DevExpress (v18.1). When I click on the text/Caption of an list item then this item's checkbox is checked. However, I just want to check an item when I click ...
-1
votes
1answer
32 views

VB.NET Suggestion for optimizing my code for this function

Can you suggest me on what to do to optimize my code. As you can see in the picture i am displaying all of the student grades on each subject in a textbox and there are total of 51 textbox. In my ...
0
votes
0answers
16 views

How to get the Value from a ModelItem Property programmatically (vb.net)

I'm creating an Custom CodeActivity with a Custom Designer. Everything works good so far, but now I got a problem. My Property is an InArgument(of String). I need to get the Value ...
1
vote
1answer
20 views

OLEDB using 32bit instead of 64bit

I need to import some datafrom a Excel worksheet but the OleDbConnection is using the 32bit version, so it cant find the provider. I already imported using the 64bit wizzard and everything is working ...
-2
votes
2answers
27 views

Universal code to write text to .txt file?

I have code that currently writes text to a .txt file, but tested on a different computer the user has to change the line of code "C:\Users\Blake\Documents\test2.txt" and create/save a .txt file named ...
0
votes
1answer
29 views

Confused As To Why This Function Does Not Call?

I'm trying to call this function into a procedure and am confused on why this is not working, I've looked up how to format a function call and don't understand my mistakes. Structure Stock Dim ...
-1
votes
1answer
50 views

Is there a way to retrieve some text from a webpage to a textbox in VB?

I'm trying to make it so I can have several text boxes in my form show pieces of information from a specific webpage. For example, would there be a way I would be able to retrieve the title of this ...
1
vote
0answers
25 views

Open Remote Desktop and Connect to Computer

I am trying to figure out if it is possible in VB.net to open the connect to a specific computer using the "new" Remote Desktop App from Microsoft. To be clear, I know how to do this when using mstsc ...
1
vote
0answers
36 views

JSON deserialization error with Azure translation services

I am building a program in Visual Studio 2017 in Windows Forms - sorry but that's the only thing I know how to use - anyway, most everything for this is C#, so I've been having trouble ...
-1
votes
0answers
24 views

Binding two values to WPF gradient from code

I want to make my application GUI more customizable and i want user to be able to set hex values of colors and apply them to GUI. This is where i need to apply colors: <LinearGradientBrush ...
-1
votes
0answers
12 views

Datagridview DragOver events only fires one time

After the first time performing a Drag and Drop in my datagridview the DragOver event no longer fires for any additional Drag and Drop attempts. Private Sub DataGridView1_DragDrop(sender As Object, e ...
0
votes
1answer
62 views

How can I replace an unknown number of words in a string with values contained in an array?

Given a string how can i replace the words that begin with "#" by the contents in array sequentially. Ex. dim s as string ="select * from tb where p1 = #p1 and p2 = #p2" dim param() as string = {"...
0
votes
1answer
39 views

Case Count 0 Digit in VB.Net

Why Don't work Case 0 in my code? In this example, if there is nothing in that line (nothing), it should be +1, but it shows me the result 0. Dim StartIndex = TextBoz1.Lines.Length - 1 For i = ...
0
votes
0answers
20 views

Bootstrap collapse on a < li > opens but won't close

So, I am developing a vb.net website and I am using 'collapse' to toggle some parts of the page. I'm trying to use a < a > link inside a < li > list item to toggle (through href) another < li ...
0
votes
0answers
27 views

FindElements not working for controls in some parts of some Windows programs

WinAppDriver's FindElement will not always find objects in the program to be automated. I've gotten this to work with other programs, like Notepad, and even a different dialog in my program to be ...
-1
votes
1answer
49 views

Null conditional operator not working (shows “invoke is not a member of xxx”)

I can't seem to find anyone else having this same issue. I have seen that you can use null-conditional operators in VB.NET. E.g. SendNews?.Invoke("Just in: A newsworthy item...") However, I'm ...
-1
votes
0answers
20 views

Create window method of the class CWindowImpl causing crash in application on Windows 10

I am having a C++ dll project built in Visual studio 6.0. This dll is used by other client applications for messaging. In this Create method of the class CWindowImpl is used to create the hidden ...
-1
votes
1answer
33 views

Load dll from a specific folder in VB.NET

i have Almost 15 Dll file that need to perform my application. i tried to use many cases. Embed Dlls all of this sort, not work as well. So i ask can i make extra folder inside application directory ...
-1
votes
0answers
19 views

What are the causes of System.AccessViolationException of a COM object?

I am working a CAD Toolkit API, and I have two computers at my disposal. One PC is working fine when I try to run the test program while the other says that there is a system.AccessViolationException. ...
-1
votes
0answers
24 views

Cast vb form to out put device like graphic card [on hold]

How to send a vb form to graphic card out i want to play a video in vb form and send the form as out to the graphic out pin please help.
0
votes
1answer
23 views

Right clic on DataGridView returning cell indexes where right clic was made?

I attached a ContextMenuStrip to a DataGridView, but the action it will perform will be based on the row the user right clicked onto. I was able to retrieve coords from a left click but there is no ...
0
votes
1answer
12 views

I'm using TreeList control and there is no DragNodes Property in OptionsBehavior so how can i get this feature?

As i have seen in DevExpress TreeList demo video that we can re-arrange TreeList nodes by setting DragNodes property to true. I'm using TreeList control of DevExpress (v 18.1) and there is no ...
1
vote
1answer
28 views

Update DataGridViewCheckBoxColumn checkbox on CellClick

I have a DataGridView with a DataGridViewCheckBoxColumn column. The cell size is larger than the checkbox so to make it user-friendly I want the CellClick event to act as if the checkbox itself was ...

http://mssss.yulina-kosm.ru