20,282 Topics
| |
I want to make a calculation where the atribut columns whose rows have benefit values are all placed on the left and all rows with cost values are placed on the right. with the actual calculation formula like this: (0.25x0.49237)+(0.15x0.71842)+(0.15x0.44721)+(0.15x68680) (benefit row atribut column and weight) - (row atribut column … | |
how to convert this into relative path code, since if im gonna install my system to other computer this line of code will get an error since the path of the data source doesnt match the current path if im gonna install it to other computer ![Screenshot_2021-10-20_195847.png](https://static.daniweb.com/attachments/4/0df2cab646658f059b798148fb75b026.png) | |
hello i am new to the coding world and i am trying to get this login code to only accept the names and passwords in the access database, current any can login. please assist Imports System.Data Imports System.Data.OleDb Imports System.Data.DataTable Public Class Form1 Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal … | |
I wish to read from a closed excel file, a few years ago I found a website using ADO and it worked but now I cannot find this website I have tried over 100 with no success please help Ernest | |
I'm getting an error I'm very new to vb.net and designing an application with visual studio 2019. My application is to Read the registry key open subkey to retrieve displayname and displayversion. I would like to add an array to read multiple key values under the key locations for both … | |
I need an end user license agreement for code shared amongst my home projects with other developers. The EULA needs to include a "pay to the order of x" clause, and also needs to include the ability for me to utilze the code at multiple companies that I could participate … | |
Hi guys, I have one question about Visual Basic and DataGridView behaviour. So, after I type all the text boxes and click on button (save data), I would like user to get focus on that new data. Now, each time button is clicked, DataGridView goes on a first row. New … | |
I want to make several of my textbox.text properties equal to variables. I tried: Dim outcome As New txtResult.Text outcome = "xxxxx" this produced an error. :( first, is this possible and if it is, what am I doing wrong??? | |
Good afternoon, I'm haven't coded in a very long time, and now I have some time in my life I'm actually coding a Quiz application in vb.net using ms access for the question/answer database. This project is what the student will see when their taking the test, and my issue … | |
This code causes an exception: dim box as new mult() box.show <-------- cannot access a disposed object | |
hi, I put a button to run the batch file and everything is fine But when the file works it asks for other files that are complete to run it and I did not know how to merge it together to work properly and these pictures ![1.png](https://static.daniweb.com/attachments/4/83b5662430989d1e87d8ad82ef1a2851.png) ![3.png](https://static.daniweb.com/attachments/4/7a92fe7a9051f62f3c292b5b8830433a.png) ![Screenshot_13.png](https://static.daniweb.com/attachments/4/cc156d0fa8215abef8802da216cc1a96.png) ![2.png](https://static.daniweb.com/attachments/4/18a4dd6b1d04de74b1629bd70a0ee460.png) | |
hi, I put a button to run the batch file and everything is fine But when the file works it asks for other files that are complete to run it and I did not know how to merge it together to work properly and these pictures ![2.png](https://static.daniweb.com/attachments/4/58150e086065570c8858e61e23daa1f9.png) ![3.png](https://static.daniweb.com/attachments/4/434597cdb1cae791efed1e48a774990b.png) ![1.png](https://static.daniweb.com/attachments/4/033b76aa8457667dde038b5e39573e06.png) | |
I found this peaice of code to import a Access database table to sql server Private Sub btnImport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImport.Click Dim fileName As String = "" Dim ofd As New OpenFileDialog If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then fileName = ofd.FileName PerformImportToSql(fileName) End If End … | |
| Hello fellas, recently i hit upon an to develop a small program to lock screen. As a part of it, I need to lock taskbar from functioning, i.e should not show up when pressed Start Button, or Ctrl + esc or not even Ctrl + alt + Del. I dont … |
Visual Basic - Visual Studio 2019. My desktop status bar disappears when I open my application. Controlbox = False FormBorderStyle = FixedSingle StartPostion = WindowsDefaultLocation WindowState = Maximized Any help appriciated. | |
I want to ask how to make when we press the value for the combo box. For other textbox can easily appear. So, the user can do input 2 times. Here I attach my code Private Sub combo1() conn.Open() Dim stringsql As New MySqlCommand("select * from supplier", conn) Dim dr … | |
Hi All Masters... I have a datagridview and want to scroll with the mouse move up and down events like a mouse wheel if anyone has sample code i would be very grateful Thanks before... | |
I was wondering if someone can create the printer with raspberry pi ? Will pay the price for the costs of labor, materials, etc. or maybe you can recommend someone to make it? Like this https://exciting.io/2012/04/12/hello-printer/ | |
Hey guys im new here n i need some help uploading image in windows form with vb.net and i don't mean picture box Thnx in advance, its so urgent | |
I want to make a Visual Basic contacts application that stores the names, emails and countries of up to 10 different people and allows the user to lookup an address based on its number. | |
| I had button code to print data in data grid view on vb.net program. But when I click on print all times it show print preview lost first of record. this is my code Dim mRow As Integer = 0 Dim newpage As Boolean = True With dgvreciept Dim fmt … |
Hello, so I have a more complex class in another file, but I have duplicated my trouble on a simpler class which I will show to you. I am trying to base64 encode a path via cipher text, either a good idea or a bad idea. Anyway, I am noticing … | |
Please am new here and I need you guys help am trying to save a fingerprint template into my database (Sql server) but is not working, this is my code Dim fingerprint as Memory stream = new MemoryStream Template.serializ(fingerprint) fingerprint.position=0 Dim be as BinaryReader = new BinaryReader (fingerprint) Dim bytes() … | |
Write the main such that it reads two integers: Start and End and calls the void function of part ‘a’ in order to print the average of integers divisible by 3 in the range: [Start..End]. | |
I'm using the ink picture control and I'm having trouble getting my code to work. The inkpicture control is used for tablet pcs when the user draws inside the control. I just want to be able to save it to a jpeg. I've been stuck on this for days :) … | |
Please I have a problem in vb.net. The problem is this, I have a combobox, cboSearchBy, with four column names (FileNo, Lessee, Location and TFNo). I need a code that when i select any of the four items in the combox then the data under that column in the sql … | |
Hi, i want to total the values in column9 in Patientdatagridview to a textbox1. here is my code but it displayes each value, not the total. e.g. if values are 200, 200, 200 then it should display 600 but here it says 0200200200 Private Sub Button1_Click(ByVal sender As System.Object, ByVal … | |
Develop a visual basic program that asks the user to enter an integer positive number, then reverse this number as a single integer and display it in a textbox. For example, if the user enters 235 the output should be 532. If the input is 79534 the output is 43597 … | |
Hi every1 i have a form with a textboxid, buttonAdd, ButtonSave on it , when i click on the btnAdd it must show the id and when i click update it must really Save . I want to auto generate the id through codes ... can any1 help... I don't … |
The End.