20,278 Topics

Member Avatar for
Member Avatar for Xcelled194

I've noticed an "awkward" issue in VB.... how to escape from things like nested loops or nested IFs, where the standard Exit Loop, Exit For, or Exit If simply starts a new iteration. For example, assume we have a 3-dimensional array (TheArray) that we want to brute-force test to see …

Member Avatar for basharyassin
0
355
Member Avatar for giannoui

Hello, I would like to know if anybody could help me with this program that im trying. I have a text file with data inside and i want to display one data line per time with 2 sec delay. The data should continue show infinitely. This is what i have …

Member Avatar for Reverend Jim
0
540
Member Avatar for jarrodoliver1

Hey guys, Im making a program that will be used by graffiti collectors. There will need to be an import picture button l which will import a picture from your selected drive, and there will also be a take picture button, which i am having trouble with. Any help would …

Member Avatar for Hpsvtw_1
0
142
Member Avatar for b saaj

hi all, i am working on small RMS and got problem to print receipt using pos printer. the expected out put is like that. 1. XYZ Ltd 2. London, Uk 3. 4. 5. 6. Transaction #: 100 7. Date: 11/12/2008 Time: 09:10:10 8. Cashier: Fred 9. 10. Item Qty Unit …

Member Avatar for nmaillet
0
282
Member Avatar for HibaPro

hi all , i now working on new project that have a class for table includes the add , delete , and update function how i can call them in vb??? this one of the class Imports System.Data Imports System.Data.SqlClient Public Class BOQSectionsAndParts Private _BOQSectionsAndParts_ID as Integer = 0 Private …

Member Avatar for Reverend Jim
0
967
Member Avatar for az_ez

Hi, I've been working on getting a GUI connected to a database so I can input data into the database. However when getting to the 'making a save button' I get this problem on line 14: Private da As New SqlDataAdapter("Select Name, Number, Email From Contacts", cs) Private ds As …

Member Avatar for az_ez
0
256
Member Avatar for Khav

Hi I accidently double click on the toolbar and now ALL button on toolbar are gone. I want to reset it to default and get my buttons back. How to do that I tried to write click on Toolbar then Reset toobar , still no good I even tried reinstall …

0
139
Member Avatar for megax24505

I am writing a program that has to read a text file for a string that is surrounded by [ ]. I then want to grab the text behind it which is surrounded by ( ). The string i want to grab is in the same line as the one …

Member Avatar for megax24505
0
805
Member Avatar for l.pavel

I have several classes that can raise same event: classA, classB, classC all can RaiseEvent "DlFinished", "TableUpdated", "ReportProgress". Since all 3 classes give me about the same information, I created an user control which displays the data. Now this may not be the best way to handle this situation, but …

Member Avatar for l.pavel
0
113
Member Avatar for LD Company

Hello. I started making my software and i using database. When I select record in database and click Delete Button i got error message: **Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.** The code of my Delete Button is: Private Sub DeleteMember_Click(ByVal sender As System.Object, ByVal …

Member Avatar for Dili1234
0
418
Member Avatar for Dili1234

I 'm doing an application using vb.net 2008 and sql 2005 i want to know whether it is possible load data into message box from database when form is loaded......

Member Avatar for Dili1234
0
563
Member Avatar for chotep

Hi! I'm having a problem in database.. I have this SQL for my vb.net project Sql = "SELECT STUDENTS.stud_id, STUDENTS.stud_no, [stud_last] & '" & Me.Label1.Text & "' & [stud_first] AS Expr1, STUDENTS.gender00, STUDENTS.course00, SECTION00.sec_code, STUDENTS.Q1, STUDENTS.Q2, STUDENTS.Q3, STUDENTS.Q4, STUDENTS.Q5, STUDENTS.Q6, STUDENTS.Q7, STUDENTS.Finals, STUDENTS.username00, STUDENTS.stud_id FROM SECTION00 INNER JOIN STUDENTS ON …

Member Avatar for G_Waddell
0
111
Member Avatar for pipelian

Hi how can I print a new document for each datarow in my datagridview?. I have the PrintDocument procedures separately. Thanks in advance

0
167
Member Avatar for Pgmer

Hi All, Any one can help me how to use TAPI to control the IP phones? How to get started with? What all i should install and configure? I searched in net before posting it here but its too confusing for me. As this is my attempt in this area.. …

0
73
Member Avatar for bLuEmEzzy

please help.. how to program nodes(like in binary tree) the root node is (1) then left(LNode) is (2) and right(RNode) is (3).. then for (2)- LNode of (4) RNode (5).. for 3-- LNode(6) RNode(7)..so on.. how can i do that.. then the numbers are in the database.. Thanx

Member Avatar for bLuEmEzzy
0
118
Member Avatar for Jamblaster

Ok, here is my question. I got this code working (Yeah it isn't really complex I know, but I'm a beginner anyway) and I couldn't make it work when using a class variable for the strTotalCost and decTotalCost variables and passing decTotalCost to the strTotalCost to show the calculated price. …

Member Avatar for Reverend Jim
0
162
Member Avatar for PM312

i added some text boxes and button in group box and entered its code . Later i added tab control and i cut the group box and pasted on tab control. now the codes are not working. when i double click it dosen goes to old code i type but …

Member Avatar for Reverend Jim
0
66
Member Avatar for brian.yax.7

Dim MapString(41, 7) As String Private Sub MapForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load 'mapfile to array Dim StrSplit(), LineRead As String Dim x, y As Integer 'open the file Dim sreReader As StreamReader = New StreamReader("MapFile.txt") 'x and y must be to 0 x = 0 y = …

Member Avatar for Reverend Jim
0
420
Member Avatar for sanjeewa.abeywardana

this might be a silly question :-) but just for reference asking that System.Drawing.Graphics is a reference type ? or value type ? I mean when creating objects like this Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim i As Integer = 10 Dim g As Graphics = Graphics.FromHwnd(Me.Handle) g.DrawString(i, …

Member Avatar for samaustin141
0
182
Member Avatar for urielar1

Hello, my code is not transferring the selected row data into the targeted text boxes on the other form when i click or select the row, i need help here , that the code Private Sub DataGridView2_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView2.CellContentClick If Me.DataGridView2.CurrentRow.Selected = True …

Member Avatar for urielar1
0
108
Member Avatar for Commando123

hi guys, i have a datagridviewcheckboxcolumn1 that is bound to a field in a database. i want to set it as checked or uncheked programaticly, does any one know how??

Member Avatar for Maligui
0
102
Member Avatar for sandra birgen
Member Avatar for Maligui
0
81
Member Avatar for Dili1234

Function cek_code(ByVal pid As String) As Boolean Dim sql As String = "select count(P_Id) from Profit_margin where P_Id = '" & ComboBox2.Text & "'" Dim cmd As New SqlCommand(sql, myConnection) Dim dr As SqlDataReader Dim value As Boolean = False Try myConnection.Open() dr = cmd.ExecuteReader(CommandBehavior.CloseConnection) While dr.Read If dr(0) > …

Member Avatar for Dili1234
0
164
Member Avatar for sythez.orgz

Can you guys please tell me whats wrong on my code. Im trying to get the data of Title, Author, Price, Stock from DB and output it on my textboxes. Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load connstring = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Csrp2_DB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" conn.ConnectionString …

Member Avatar for Dili1234
0
1K
Member Avatar for kimbula...

I have defined a procedure under the click event of the button as follows. [code] Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click [COLOR="Green"] 'Validate Department[/COLOR] If cmbDepartment.SelectedItem = Nothing Then MsgBox("Please select a department", MsgBoxStyle.Information, "Notification") cmbDepartment.Focus() Exit Sub End If End Sub [/code] I …

Member Avatar for chickss
0
25K
Member Avatar for hazelmayt

i'm just a newbie in dealing with master details in datagridview. i have a two datagridview. first is the employees record and the other one is file(which contains the file path of csv files). my backend is ms access database.one database with two tables. Now, when im going to click …

Member Avatar for hazelmayt
0
255
Member Avatar for joel.hahn

I have beeb unable to figure out how to get data from a list view. It needs to be a multislect, and I need to get the data from a specific column. my listview consists of a 3 column with data populated from a database. I am after the data …

Member Avatar for Reverend Jim
0
937
Member Avatar for saphiro

good day, is there a way to put date values in a variable, that is coming fromo the database? something like dim dates as dates (select * from table1 where id = id ) dates = date BETWEEN collumn1 and collumn2 of table1 well its not working of course, its …

Member Avatar for Reverend Jim
0
160
Member Avatar for botes.riaan

hi i have to open a text file from an OpenFileDialog as an Array into a listbox. The data in the text file are dates and a number in this format, "01/06/2010,106". what i need to do then is get the the 5 highest dates and the 5 lowest dates …

Member Avatar for Reverend Jim
0
276
Member Avatar for mirzamujib

Hi, I've problem in displaying image on my rdlc (Microsoft Report Viewer) report. I took picture box on my report and made its properties as SOURCE=EXTERNAL, VALUE=Parameters!Path.value where Path is my Report Parameter. Below is the code to display image on Report load event: Dim paramList1 As New Generic.List(Of ReportParameter) …

Member Avatar for AleMonteiro
0
988

The End.