2,082 questions
0
votes
0
answers
35
views
How to get printDocument in Visual Studio 2015 VB.net print by ticket dialog with numeric count
I want to printDocument in Visual Studio 2015. I set ticket Dialog, but I can't print with dialog. It does work.
example: I want to print only page 3, but it prints the whole document.
Control with ...
0
votes
0
answers
29
views
How to check if my vb.net project has dependency for -Visual C++ Redistributable Package 12 (2013)?
I have been asked to check if the Visual C++ Redistributable Package 12 (2013) can be safely removed and if it does not have any impact.. I need to figure out if the application has dependency for ...
0
votes
0
answers
51
views
How to add a file to my.resources during debug
Specifically, I want to add a file to the project resources when running in debug mode. In other words, during debug, the file info is being built then when finished building the file, I want the VB....
0
votes
1
answer
80
views
How to use the dataTable object to read a worksheet directly into an array without opening the excel file and without looping through every cell
I am using vb.net 2012 v14.8.4084
This simple function is meant to dump all content from an excel file's sheet1 into an array
And then print this array to console
This code fails to compile due to ...
0
votes
1
answer
173
views
Problem Installing ClickOnce App VB.Net WinForm
I'm trying to install an application that I created in VB.Net VS2019, this app is an empty form with an icon on the form and no code at all.
The app is being deployed to a shared drive.
When I ...
0
votes
1
answer
824
views
How can I bring Chrome browser to focus when running a Selenium test using ChromeDriver in VB.NET and C#?
When executing a Selenium test with ChromeDriver, I would like to bring the test browser into focus to see the actions taking place. The way I am able to do that now is by manually clicking the ...
0
votes
0
answers
61
views
I keep getting this error each time : "Data type mismatch in criteria expression."
Private Sub Btn_Rechercher_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_Rechercher.Click
Dim mycommand As New OleDbCommand()
mycommand.CommandText = &...
0
votes
0
answers
322
views
Download issues when trying to use My.Computer.Network.DownloadFile in VB.NET
I have a lot of issues with My.Computer.Network.DownloadFile command. I want my application to download a file from internet. First, I tried to upload the file to dropbox and I copied the link. My ...
0
votes
0
answers
52
views
How to make the NVDA narrator to read datagrid row background color?
Working on a vb.net appln. I have a data grid with rows that has Red, yellow and green background based on the status of the record. For accessibility purpose I'm using NVDA narrator to read the UI. ...
0
votes
0
answers
231
views
How to add an icon to the title of messagebox in VB.NET 2010
I tried to add an icon to the title of the messagebox. I researched at web, but I can't find a good answer. How do I add an icon to the title of the messagebox?
Look to this messagebox:
I tried ...
0
votes
1
answer
30
views
System.FormatException: 'String was not recognized as a valid
Dim day As String = Label22.Text
Dim week As String = DateTime.ParseExact(day, "dd/MM/yyyy", CultureInfo.InvariantCulture).DayOfWeek.ToString
Label88.Text = week
more things but nothing
0
votes
0
answers
168
views
Opening up multiple forms VB.NET
Good evening,
I'm having a issue when opening up another form when clicking the button. Basically the form I'm trying to open when you click the button is not in the same folder of the main Form. When ...
0
votes
0
answers
23
views
how do i retrieve a resourcestree cellvalue and pass it to another class
I am working on a hotel reservation management system project in vb.net. i am using a resourcestree and a scheduler control. i have successfully linked the resourcestree to the scheduler control and ...
0
votes
0
answers
181
views
How I Could Fix "Invalid attempt to call MetaData when reader is closed"
I want to make a search system that when i press the button, my textbox and combobox would auto fill with data from database. and at the same time, while the combobox changed, it will be get the ...
-2
votes
1
answer
109
views
View data from SQL Server in Crystal Report this way? in vb.net
Database data in SQL Server:
Date timein timeOut
-----------------------------
7/02/2022 7:00 5:00
7/03/2022 7:00 5:00
7/06/2022 7:00 5:00
Crystal Report should show ...
0
votes
2
answers
1k
views
VB.NET to ACCESS DataBase, Data not being saved
I am having trouble with my Data Save routine, saving data from several textbox's into an MSACCESS database. The code throws no errors, completes successful, but the database is not accessed. I assume ...
0
votes
1
answer
276
views
Dynamic Button Click on Tab Control - Tab Pages C#
I have an application that needs to click on button located on tab pages. So for example:
Tabcontrol has Tabpage1, Tabpage2, .... TabpageN
and each tabpage has a buttonX that performs a taskX.
Now ...
0
votes
1
answer
418
views
Extract DLL and Import DLL (VB.NET)
I want to make portable app that uses the NAudio dll. I put the DLL files into Resources and tried this:
My.Computer.FileSystem.WriteAllBytes("\NAudio.dll", My.Resources.NAudio, True)
When ...
0
votes
1
answer
232
views
Can I send data using the same TCP port?
I have a TCP listener working but doesn't send anything. To get this TCP listener working I have a thread in a endless loop.
Now I need to answer to some specific packets and also be able to send data ...
0
votes
0
answers
67
views
Retrieve data from excel column and write values in a temp file
Right now, I am able to retrieve the necessary data. However, I end up creating multiple temp files. I think my issue is that my function closes the files and then my do until starts the process over ...
0
votes
1
answer
1k
views
Capture image form a IP CAMERA
I have a IP camera, i need to capture the image from it.
I have no idea how to do this is Vb.net 2010
Please help me. in simple code
Thank You
0
votes
0
answers
88
views
Why doesn't find function work in While statment
I'm using a RichTextBox find function. It works fine until I stick it in a While loop. Then it won't do anything.
This code works:
Dim startTEXT As Integer = 0
Dim endTEXT As Integer = RichTextBox1....
0
votes
2
answers
56
views
Is there a way to jump to record I have searched for and still display values less and greater than the value I searched for?
Please assist. Instead of filtering I want to find a value for example value 10 and jump to that value 10 but still display values that are less than 10 and greater than 10. This value is a size of ...
0
votes
0
answers
36
views
Is there a way to avoid getting an error when I use one of two textboxes to search from database?
I have two textboxes that I can use to search from database but it is not all the time when I use two textboxes to search.
Sometimes I use one but when i do so I get an error:
"Syntax error ...
0
votes
0
answers
45
views
Datagridview with a checkbox default set to true
I have a datagridview with a checkbox default set to true on the code:
Protected Sub dgvStudent_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgvStudent.DataBound
Dim ...
0
votes
0
answers
29
views
how to write in json format, class and object creation, rest API CALL (POST) using vb.net
{
"Record":
[
{
"Wagon_Details":
[
{
"Rake_No1":””,
"Rake_No2": ““,
"Rake_ID": ““,
...
0
votes
1
answer
662
views
VB.net copying and pasting a column from one sheet to another sheet
I have been working on opening an existing workbook, while creating two new sheets inside that workbook. After that is done, I am trying to copy an entire column from an existing sheet in the workbook ...
1
vote
1
answer
51
views
changing image that on my selected child forms picturebox1
how change the image on picturebox1 in childform on vb.net 2010 my app is a mdiform and child, sub on module (for mdiform,property changing or getting codes are include mdiform) is gonna change the ...
0
votes
1
answer
258
views
Vb.net animation sonic the hedgehog
Why does my walk not work but the run works properly sonic the hedgehog animation.
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...
0
votes
1
answer
306
views
Cannot bind to the property or column on the DataSource. vb.net
I have error Cannot bind to the property or column please solution. For notes I use studio visuals 2010. Is there the best solution or recommendation?.
thanks
jack
Dim Path As String = Environment....
0
votes
1
answer
827
views
Conversion from string "" to type 'Decimal' is not valid and Public member 'date' on type 'DBNull' not found in vb,net
I found an error at the time of double click in cell gridview because there is a blank or empty record in the DTE column and qty column.
Is there the best solution or recommendation?
note : I use ...
0
votes
0
answers
112
views
Update button not updating values that have been loaded into a textbox by a file
My code is made up of saving records to files and reading those records, the structure of my files are made up of modules, this code is from visual basic 2010. I'm having a hard time understanding why ...
0
votes
1
answer
27
views
Why is my first set of numbers on the closed parenthesis stuck on 21?
I want the output to have the numbers on the first set to go from 0-20 and the second set to 0-100 but not 0,1,2,3,4,5 but 0,5,10 basically skipping each 5. Here's a screenshot of my code and output.
...
0
votes
2
answers
539
views
Conversion from type DBNull to type String is not valid in vb.net
Please the solution I have an error "Conversion from type 'DBNull' to type 'String' because the pathhelper column has a null value
Private Sub gridView1_CustomUnboundColumnData(ByVal sender As ...
0
votes
0
answers
311
views
How to filter datagridview with combobbox without query and with invisible column in vb.net
How to filter datagridview with combobbox without query and with invisible column in vb.net?
and is it possible to be only distinct or unique value?
I want filter in "SHI" column.
Note : I ...
0
votes
1
answer
238
views
Cannot bind to the property IN VB.NET
I have a problem Unable to bind property.
or because i have something wrong with my code.Please solution.
I'm using visual studio 2010.
Private Sub PopulateDataGridView()
Try
...
1
vote
1
answer
4k
views
How to change appearance of the form titlebar in vb.net
how to color formborder color in vb.net?
I want color formborder equal to backcolor 45, 66, 50.
What do I mean in the yellow circle in the screenshot below?.
note : I use visual studio 2010
Thanks
...
2
votes
1
answer
356
views
How to set the title for the first column of DataGridView (RowHeaders column) in VB.NET
How to give title in RowHeaders datagridview in VB.NET?
by that I mean circled the color in yellow in the screenshot below.
note : I use vb.net 2010
Thanks
roy
0
votes
1
answer
189
views
Input string was not in a correct format & how to rename rowheader datagridview
please code solution and for rename row header I mean marking the color of the image file I attached
Note : for notes I use visual studio 2010
Public Class Form1
Private Sub btnUpdate_Click(ByVal ...
0
votes
1
answer
80
views
Read from two tables information
How can i convert this code to read information from the two tables.
Private Sub GenerateDynamicUserControl()
FlowLayoutPanel1.Controls.Clear()
Dim dt As DataTable = New ClassBLL().GetItems()
...
0
votes
0
answers
93
views
Create Previous, Next Buttons in FlowLayoutPanel
can someone help me to add buttons for Previous Next and pages between them.
For example in my FlowLayoutPanel1 it display 4 results, because i do not want to use autoscroll=true
what i want to do is ...
0
votes
1
answer
551
views
Index was outside the bounds of the array. VB.NET
My problem
Index was outside the bounds of the array. when i try to run the code , it generates this error
i have two forms : SIGN IN and SIGN UP , my problem is they don't work together and generates ...
0
votes
1
answer
558
views
Read Multiple Excel Sheets in a Listview
I am trying to read an excel file that has multiple sheets 1,2,3,4,5,6,7,8,9,10
I need to read several columns of what is in those sheets for example from the range a1: a20 and c1: c20
The result is ...
0
votes
0
answers
178
views
Where clause in OleDbCommand in vb.net
I do not understand what I am doing wrong!
Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;...
0
votes
1
answer
206
views
error to connect on remote mysql database
So, I´ve an application that comunicates with a remote mysql db, so its on hostinger and works properly for more de 2 years, and few days ago its just stop working, and the error happens when I try to ...
-1
votes
1
answer
235
views
how multi images appear in the Picture box with the file name in the datagridview [closed]
I want to appear multi or a single image in the picturebox with the file name in the datagridview when clicked on datagridview.
for information I use visual studio 2010
Imports System.Data.OleDb
...
-1
votes
1
answer
573
views
"The Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine." Exception is thrown while trying to run forms. eg purchases form
I've been trying to connect a Microsoft access database file to my Visual Basic application. When i try to run the application i get an error: "The Microsoft.ACE.OLEDB.12.0' provider is not ...
2
votes
1
answer
185
views
how to if combobox selection then directly checkbox unchecked in vb.net
How if ComboBox selection then directly CheckBox unchecked?
Private Sub ComboBox1_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1....
-3
votes
2
answers
802
views
Trying to trace Data type mismatch in criteria expression
I can't trace, the error is:
Data type mismatch in criteria expression.
Private Sub UpdateLV(ByVal id As String)
Dim SQL As String = "UPDATE tbl_sharePay SET Old_code= '" & ...
0
votes
1
answer
112
views
How do I prevent overwriting the name of a saved image, if the previously saved image was deleted?
Dim data As IDataObject
Dim bmap As Image
SendMessage(hHwnd, WM_CAP_EDIT_COPY, 0, 0)
data = Clipboard.GetDataObject
If data.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
...