20,899 Topics

Member Avatar for
Member Avatar for Kingcoder210

Hi everyone! I have used following code to show dates in combo boxes. Private Sub Income_Sheet_Report_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cmbisrbdt.Items.Clear() cmbisrbdt.Text = "BEGINNING DATE" cmbisredt.Items.Clear() cmbisredt.Text = "END DATE" Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None Dim con As New SqlConnection(ConnectionString) Dim com As SqlCommand = Nothing Dim …

Member Avatar for G_Waddell
0
967
Member Avatar for Nutster

If am writing a VB.Net module for a project I am working on and have decided to try out different ways of doing some things, without getting rid of the older code that worked. I am selecting between these methods by setting a `#Const` at the beginning of the Module …

Member Avatar for john.knapp
0
195
Member Avatar for prince.abankwah.5

i have a checkbox (ckVat) and a textbox (txtvat). what i want to do is that when i check the checkbox, it should pull data from the database into the textbox. the table from which am retrieving the data is called "Vat" so i want it to pull the vat …

Member Avatar for prince.abankwah.5
0
146
Member Avatar for rexyspy

Hello Everyone... Can someone tell me what am not doing right here? Because am trying to insert a record into a database through a VB.net 2012 windows form into a MSsql satabase. Problems: When I write the codes without the insert statement, it will work well and open the connection. …

Member Avatar for pritaeas
0
194
Member Avatar for Kukonangagila

Guys, i have a project payroll system, i want to generate reports, im using databinding source to add, update, delete, data.. I need to create 3 reports "any kind report format". Example1 for payroll payslip: i have Emptable and payroll table. in emptable contains empID, empfname, emplname, etc.. and payroll …

0
88
Member Avatar for Rachna0309

| Sr.No | Membership No | Name | Addresss | Occupation | |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Account | |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | | 35957 | SHAH HEMANGINI KANAIYALAL NATVARLAL |SHROFF STREET,, KILLA PARDI, DIST.VALSAD, Pardi, Pin Cd : 396125 | | 1 | 35959 | SARSIWALA SAKINABEN ASGARALI ABDULHUSEIN |OPP.HIGHPOWER SODA FACTORY,, DUNGRI FALIA,DAMNI …

Member Avatar for Pgmer
0
253
Member Avatar for Rachna0309

**I have a text file as below:** I have a text file as below:  BRANCH :SARDAR BHILADWALA PARDI PEOPLE'S CO-OP. ,Head Office NODE : 9 BRANCH CODE : 1 RUN DATE :11/05/2009 USER : SNA REPORT ID :R048260 * AREA WISE MEMBER LISTING OF SHARE CUSTOMERS ** PAGE : …

Member Avatar for Pgmer
0
257
Member Avatar for lulu79

Hi, I have 2 datagridview. 1 to show TANTOU, TOTAL SUM of DURATION and COUNT of event happened. Another 1 is to show TANTOU, AVERAGE of DURATION and COUNT of event happened. I have use LINQ function to get the result. But how can i combine it so that i …

0
217
Member Avatar for vijaycare

Hi All, I am working for a database solution using vs 2005, and it is in final stage for reporting. I have 3 access databases. One is for selecting godown. And the remaining is godownwise databases. The godownwise databases having same structure (Tables and relationship but the data may be …

Member Avatar for vijaycare
0
253
Member Avatar for Blaze_Razgriz

Hello Forum I'm learning more about Form Apps in VB.net and I encountered the error 'System.ObjectDisposedException', no matter what I do this error doesn't seem to want to stop. This error occurs in two stages all under the declaration of BBGO which is declared as graphics. This should be the …

Member Avatar for john.knapp
0
467
Member Avatar for Rachna0309

I am using Like operator in ms access query to get part of string.This query runs well in ms access query wizard but when I use this query to retrieve records in recordset,recordset is null. Also I am using update query with like operator.Records are not updated and also no …

Member Avatar for adam_k
0
956
Member Avatar for hhm_pro992

OpenConn() Dim li As Integer Dim qqttyy As Integer = Val(ListView1.Items(li.Index).SubItems(3).Text) Dim codee As String = ListView1.Items(li.Index).SubItems(1).Text OleDa.UpdateCommand.CommandText = "UPDATE Inventry SET QTY = QTY -'" & qqttyy & "'WHERE CODE ='" & codee & "'" OleDa.UpdateCommand.ExecuteNonQuery() CloseConn()

Member Avatar for G_Waddell
0
161
Member Avatar for joshl_1995

Hello Community, I want to know if there is a way to make a program that will click a button on a webbrowser but the button does not have a name (name="") or id (id="") property it just has a class (class="") property and if there is a way is …

Member Avatar for G_Waddell
0
244
Member Avatar for pratik65

i am making a project in vb.net 2010 with SQLEXPRESS as back end. i tried to run on my college computer but i think i may to again make full database on the college pc and then run..? is there any solution so that i dont have to make the …

Member Avatar for john.knapp
0
233
Member Avatar for PrasannaKB

Hi All i have generated matlab code into stand alone (DLL) using matlab builde NE,i writen interfacing code to Proficy Trouble shooter and cause+ tool in visual studio,i have used thes MATLAB DLL as add reference inthe program and i am able to build .NET Assembly (DLL),If i integrat this …

0
46
Member Avatar for summey

I am trying to load two text files from a dialogbox into a listbox. I noticed in the dialogbox properties there is a place for multiselction but how would i pass both textboxes to an array?

Member Avatar for summey
0
352
Member Avatar for JAVA-Shake

Hello Friends, I try to find a solution to place subscript/superscript in labels with VB2010. Is there a syntax to fix this problem for my chemical equations?

Member Avatar for john.knapp
0
65
Member Avatar for ms061210

** Please help me debug the code, I am experiencing error in this part: cmd.CommandText = "select ROUND(((date_from - date_to)/30),0) as months from rental where tenant_id = '" & Me.TextBox9.Text & "'" cmd.CommandType = CommandType.Text It says: Error while retriving record on the table.. There is already an open Data …

Member Avatar for john.knapp
0
155
Member Avatar for pratik65

i want to Autogenerate id column in my database table , my code is given below . it is not workin it is giving me Exception as "startIndex Cannot be larger than Length of string , parameter:startIndex ".how should i solve it Private Sub AutoGenerateNo() Dim no As String Try …

Member Avatar for adam_k
0
782
Member Avatar for mattwagner

Hello, I'm very new to using VB.Net so I found it quite difficult to understand other answers that I searched for. Basically, I have an project to develop where a user can create an account, and log in with it. So far I have : Created a database in ms …

Member Avatar for adam_k
0
7K
Member Avatar for purijatin

I have a barcode scanner. So when the barcode is scanned using a gun, the value normally is entered to textfield placed on the screen. So I have made an excel macro. And when the barcode is scanned, the text appears on the cell ending with the new line character …

Member Avatar for adam_k
0
111
Member Avatar for aishapot

Sub filllist() strsql = "select * from tabletest" ListView1.Items.Clear() sqlcmd.CommandText = strsql sqlcmd.Connection = sqlconn sqldr = sqlcmd.ExecuteReader() [B] sqlda.SelectCommand = sqlcmd -- the error is pointing here and it say NullReferenceException was handled then Object reference not set to an instance of an object. How do i solve this? …

Member Avatar for neeturathi
0
400
Member Avatar for ayat abukhadra

Hello, I've recently created a vb.net windows form application which i user the background worker component in it, Now i'm trying to do the the same for smart devices in C#.NET or VB.NET, how to do threading in smart devices , what i basically wanna do is start a loop …

Member Avatar for ayat abukhadra
0
76
Member Avatar for nore

I have a data table with query inside, then i need to sent value of data table exactly in datagridview i made before. Anyone can do this?:-/

Member Avatar for pcs77
0
15K
Member Avatar for UKnod

Is there any way of running and compiling with known errors in the code. Her is my reason. I am using a reference to word 2008 and word 2010, so as the program will work with both versions. Trouble is that if the computer I am using to test the …

Member Avatar for john.knapp
0
187
Member Avatar for kenomote

hey guys i need some help on table values for example i have a table for books and it has two fields one is number of Copies and Number of Borrowed how do i subtract and add values to each fields for every single transaction on the same table?

Member Avatar for kenomote
0
144
Member Avatar for zalen17

Can you give me some codes of how to make a Online Grading Enquiry System using visual basic. i need your help sir beacause this is uour project. hope can you help me

Member Avatar for zalen17
0
118
Member Avatar for boher

In my project, I have two seperate forms and in one of them I can add various panels using a button. After adding let's say 5 panels I click on one of them and I need the code to tell me which panelI clicked on. The reason I need this …

Member Avatar for Pgmer
0
693
Member Avatar for Dili1234

I used this code to retrive from one record to another first tried to retrive the first record................. varible decalaration Imports System.Data Imports System.Data.SqlClient Public Class Form3 ' Dim connectionstring As String = Module1.connectionString Dim sqlconn As New SqlConnection(connectionstring) Public sqlDataset As New DataSet Dim da1 As OleDb.OleDbDataAdapter Dim myCommand1 …

Member Avatar for Dili1234
1
393
Member Avatar for rexyspy

Hello everyone... I love the magic that programming does, that's why am here. Right here, I am using ..........Visual Studio (VB.net) 2012 ..........SQL Server 2012 I am actually creating a program to do two main functions.... 1). To Search for records from multiple MSsql tables and display the result in …

Member Avatar for rexyspy
0
759
Member Avatar for unknownprogress

I cannot make my program calculate the total of two integers (one on the main form, and the other on a different form). It keeps putting in the value "0", but when I tried it without a button it'd always just put one of the chosen integers instead of adding …

Member Avatar for unknownprogress
0
131
Member Avatar for kenomote

hey guys i need some help on my code here.......... im trying to do some computation about the biling system or a library if the borrwer returns the book on time it will be no charge.......but if hte book is damage then it will charge him trice the ammount of …

Member Avatar for kenomote
0
134
Member Avatar for cmzerres

Hello, I am trying to make a program that allows redstone circuits to be made in for Minecraft,but how do I export the world into a .schematic file if the program each block ID and coords?

Member Avatar for dhatsah
0
65
Member Avatar for Tobyjug2222

Hey Guys, I'm an A level student studdying Computer science, and hence using VB.NET for my coursework. Therefore I'm very novice at VB! While trying to update Data in a Microsoft Office, Access table (Office 2010) - I get this error. (In VB) Bare in mind, I've read all this …

Member Avatar for Tobyjug2222
0
611
Member Avatar for dhatsah

I have 2 graphics I draw onto a form. 1 Graphic is a Randomly Generated Star Field, these stars move, and are updated every tick on a timer(50ms) Once the stars have been drawn/updated a cockpit is overlayed onto this image to give the appearance of moving through space. The …

0
105
Member Avatar for M_UMAR

I'm new at vb.net. i'm making a calculator using only 1 text box and want that my text box show the value( assigned to first variable at run time) along with the operator[+,-,*,/] in upper line and then the value entered in the lower line should be assigned to the …

Member Avatar for M_UMAR
0
237
Member Avatar for Lhark

**For our final requirement before my groupmates and i can graduate we have to develop a LAN-Based Enrollment system we searched about the pros and cons when it comes to using either Access or MySql as the database and the majority of the results are in favor of using Mysql …

Member Avatar for john.knapp
0
131
Member Avatar for hhm_pro992

OpenConn() Dim qqttyy As Integer = Val(ListView1.SelectedItems(0).SubItems(3).Text) Dim codee As String = ListView1.SelectedItems(0).SubItems(1).Text OleDa.UpdateCommand.CommandText = "UPDATE Inventry SET QTY = QTY -'" & qqttyy & "'WHERE CODE ='" & codee & "'" OleDa.UpdateCommand.ExecuteNonQuery() CloseConn()

Member Avatar for hhm_pro992
0
230
Member Avatar for Reverend Jim

The code in this snippet (and attached project zip) demonstrates how to use a background worker thread to monitor a network address (name or IP). It shows how to start and stop the thread and how to update controls in the main thread using delegates. It should be simple to …

Member Avatar for Reverend Jim
1
2K
Member Avatar for tendaimare

I want to format my textboxes in such a way that when someone fills in the details in the textbox if they press enter button on the keybord the focus is given to the next textbox that they should fill in .I tried the code below that we used in …

Member Avatar for safrans
0
3K
Member Avatar for Neethaa

I TRIED TO POPULATE DATA FROM DATABASE INTO THE COMBO BOX AND. ... USING COMBOBOX TO RETRIEVE DATA FROM THE DATABASE AND DISPLAY IT IN TEXTBOX. Im using Vb.net with Acess database Please tell me how to do this.

Member Avatar for Pgmer
0
86
Member Avatar for laney.sinclair.5

I have this webpage. It has a wysiwyg html editor. It will create a blog post to my blogs with its contents everytime I hit submit. I hired someone to create this webpage so I cannot edit it. I don't want to mess it up. I created a program in …

Member Avatar for tinstaafl
0
148
Member Avatar for reimar23

Can someone help me... I am new to vb.net with sql connection and I can't fix this error : variable name '@date' has already been declared. Variable names must be unique-- I need this to be fixed "ASAP" Im running out of time here because of the error here is …

Member Avatar for reimar23
0
337
Member Avatar for Programmer629

hi everyone! i was wondering if anyone could hed me in the right direction 2 programming a program like pinger (preferably vb.net). i have visual studio .net 10 so can someone help me? thx!

Member Avatar for Reverend Jim
0
208
Member Avatar for john.knapp

Hello all. I'm using an API function via PInvoke, with the interesting data being returned to a pointer. My application crashes when attempting to free the pointer. If run with no breakpoints, the application hangs on Line 61 below. After the first run, it will then throw a memory exception …

Member Avatar for john.knapp
0
792
Member Avatar for Neethaa

Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox3.SelectedIndexChanged txtdayattended.Enabled = True sql = " select work_day from tbl_yearset where month='" & ComboBox3.Text & "'" If rs.State = 1 Then rs.Close() rs.Open(sql, conn) If rs.EOF = False Then txtworkday.Text = rs(0).Value End If End Sub Please let …

Member Avatar for Reverend Jim
0
156
Member Avatar for fkatan

Hi, I use databinding.addnew() but when I try to type data in cell an error message apper(DBNULL Exception).... Pls let me konw: How can I insert or edit data in DataGrid Thanks

Member Avatar for harsh01ajmera
0
3K
Member Avatar for kenomote

Hey guys i need some help on how to save Values in My.Settings Two texboxes to save two different values and be albe to read those values or laod them when the program is oppned again...and also to be able to be replaced those values...

Member Avatar for tinstaafl
0
166
Member Avatar for Neethaa

Private Sub btnInsert_Click(sender As System.Object, e As System.EventArgs) Handles btnInsert.Click Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim dr As OleDbDataReader Dim Pnum As Integer Dim InDate As Date Dim PDate As Date Dim Amount As Integer Dim CmpID As Integer Dim Tax As Integer Dim TaxAmt …

Member Avatar for Reverend Jim
0
174
Member Avatar for pratik65

I have 3 TextBoxes in my Project Form , textbox1 is for taking Maximum_Marks, TextBox2 is for Minimum_Marks and the textbox3 is for taking Obtained_Marks ,but i dont want my Obtained_Marks textbox should take value Greater than Maximum_Marks textbox1 value or Less Than Minimum_Marks textbox2 value. i am trying to …

Member Avatar for Reverend Jim
0
190

The End.