2,383 Posted Topics

Member Avatar for smart_virus87

Using Array : strmsg = "John Doe der" Dim a() As String a = Split(strmsg, " ") Debug.Print a(UBound(a))

Member Avatar for Jx_Man
0
235
Member Avatar for nitos

Make sure you have one more row for sum of amount Try : Dim temp As Integer temp = 0 For i = 1 To MSFlexGrid1.Rows - 1 temp = temp + Val(MSFlexGrid1.TextMatrix(i, 4)) Next i 'set sum of amount to last row MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 4) = temp ![af5176f21877f429286df1edb1c3361b](/attachments/large/0/af5176f21877f429286df1edb1c3361b.jpg …

Member Avatar for Sunil_11
0
1K
Member Avatar for selvaganapathy

i do some googled and found These error messages may be caused by the WORM_KLEZ.E virus, or one of its variations. The executable file name "qbw32[xxx].exe" may vary, where "[xxx].exe" is a randomly generated and false executable name.

Member Avatar for Reverend Jim
-1
716
Member Avatar for wendas

i thinks all is depend on your ability. both of this language is great. as narue said a "Popular" language is not going to save your company but a language which u capable to write. If you prefer C# than VB but you didn't have an ability or experience in …

Member Avatar for Momerath
0
276
Member Avatar for bullet_1
Member Avatar for zebnoon
Member Avatar for chaithra.D
0
1K
Member Avatar for skran
Member Avatar for mehul popat

> but now i want to select(click) any one row from listview and get all three(NOT TWO) textbox.text from datatable BRAND Use SQL Statement. Select BRANID, BRANDNAME, ID From BRAND

Member Avatar for Jx_Man
0
163
Member Avatar for vividiah

First you must know what the meaning of the error warning. "Runtime error '381 'Invalid property array index". You said that vb pointing you in line 2 (`List2.Selected(i) = True`) when error is came up, it means that your selected index is not available on the list.

Member Avatar for vividiah
0
2K
Member Avatar for tyserman5674

>> I am doing a calculation and want to put the results of the calculation in lblMortgagePayment you want to put the result in lblMortgagePayment, but you put wrong assignment in your code. Mr Brownstone was give the answer.

Member Avatar for ss125
0
401
Member Avatar for vishal anand.s

[Read this thread.](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/454099/how-to-populate-combobox-from-database)

Member Avatar for Jx_Man
0
88
Member Avatar for chloie
Member Avatar for mark192

handle it with keyDown Event. this following code is form keydown event, you can do same with other controls. [code=vb.net] Private Sub Search_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.Up Then 'PictureBox1.Top -= 10 MsgBox("Key Up Pressed") ElseIf e.KeyCode = Keys.Down Then 'PictureBox1.Top += …

Member Avatar for sinici.grand
0
237
Member Avatar for sw8revenge

[URL="http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.compatibility.vb6.support.twipsperpixelx.aspx#Y114"]Check this site[/URL] and [URL="http://www.vbmigration.com/resources/detmigratingfromvb6.aspx?Id=19"]this too[/URL]

Member Avatar for arorastat3456
0
736
Member Avatar for masakii

[QUOTE=debasisdas;574995]Modules are a way to declare objects at one place and access them globally.[/QUOTE] yes, absolutely like debasisdas. modules helps u to declared globally function, procedure, variable, etc. so you didn't have to declare them again in every form.

Member Avatar for rishif2
0
4K
Member Avatar for Vixion

This should working : Private Sub Command1_Click() For Each ctl In Me.Controls If TypeOf ctl Is CheckBox Then If ctl.Value = vbChecked Then MsgBox ctl.Name End If End If Next End Sub

Member Avatar for star.tamy.7
0
581
Member Avatar for raizuke.blademaster
Member Avatar for P.manidas

This an example about struct of employee combining with array Module1 Public Type Employee EmpNo As Integer EmpName As String EmpPhone As String End Type Public Sub SetEmployee(ByRef emp() As Employee, ByVal i As Integer) ReDim emp(i) End Sub Public Sub SetEmpData(ByRef emp() As Employee, ByVal i As Integer, ByVal …

Member Avatar for P.manidas
0
3K
Member Avatar for LeNenne
Member Avatar for haviansyah

Hai Haviansyah.. As andre said that your code is not consistent. Ex when you use text1 instead of Name. But we really appreciate your post and hope many posts from you. :) *NB : Pake bhs inggris ya bro,,forum internasional nih,,hehe,,semua comment n bhs harus inggris,,ntar pada komentar,,kdg ada admin …

Member Avatar for jemartalaban_1
1
4K
Member Avatar for Aurax

This should working : Private Sub Command1_Click() xSearch = Text1.Text For i = 0 To Grid.Rows - 1 If xSearch = Grid.TextMatrix(i, 1) Then Grid.Row = Grid.TextMatrix(i, 1) For j = 1 To Grid.Cols - 1 Grid.Col = j Grid.CellBackColor = vbCyan Next j End If Next i End Sub

Member Avatar for Aurax
0
616
Member Avatar for Aurax
Member Avatar for tangansamet
Member Avatar for jamunadevi

[Read this thread](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/432852/how-to-search-for-a-certain-record-in-a-mshflexgrid)

Member Avatar for Jx_Man
0
350
Member Avatar for Neokyuubi

> Is there any way to add the full row that was selected from DataGridView1 to the table "PersonneCopy"? Yes. Get the value from datagrid and Use INSERT statement to add the selected row to Personnecopy table.

Member Avatar for Neokyuubi
0
1K
Member Avatar for LeNenne

> I have tried some but it will not work as I will > > If I press the X button on titel bar then > I will it goes to cmdquit where I have to > choose vbyes or vbno. > The tests I haave done just quit the …

Member Avatar for rishif2
0
444
Member Avatar for chichi005

> error says : Syntax error (comma) in query expression '(acntId, 5/17/2013 , 'Last , First, Middle')' **'Last , First, Middle'** You want to insert 3 fields but the value of txtSpouseName.Text make compiler confused and rise an error. compiler might thought that it should be **'Last' , 'First', 'Middle'**.

Member Avatar for Reverend Jim
0
328
Member Avatar for Papa_Don

Read this article : [How to Sort ListView Items ](http://msdn.microsoft.com/en-us/library/ms229643%28v=vs.90%29.aspx)

Member Avatar for Jx_Man
0
8K
Member Avatar for matthewdiet
Member Avatar for Reverend Jim
0
215
Member Avatar for LeNenne

> I just wonder how to enabled the X in the right > upper corner of a form. What you mean about x mark in the right upper corner? Are you put a button or some other control there? > When I press the X then I will that it …

Member Avatar for Jx_Man
0
246
Member Avatar for rohit.dudhbhate

Post your code here. How far you doing this. Show some effort. we Will trying to help you. [Read this thread about how to read txt file.](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/454185/read-text-file-into-listview)

Member Avatar for Reverend Jim
0
181
Member Avatar for PM312

Try this : Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress If CType(sender, ComboBox).FindString(CType(sender, ComboBox).Text, 1) = True Then 'if it doesnt exist then remove the last character/s that dont match and set the cursor position to the end CType(sender, ComboBox).Text = CType(sender, ComboBox).Text.Substring(0, CType(sender, ComboBox).Text.Length …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Ariah17

If you bet with large amount data and security then mysql, mssql or oracle is the best choise. For user configuring is not difficult as you thinking. Install your program and database as packet. To make it easy for user then your program must facilitate it. Can create database in …

Member Avatar for Dili1234
0
147
Member Avatar for SLMQC

It causing of txtAccount_Balance_TextChanged event. When you clear textbox **txtAccount_Balance** it makes that event work and rise an error. It happen because there are no numbers in the textbox after clear the textbox but empty string.

Member Avatar for Reverend Jim
0
263
Member Avatar for Affable zaki

You will get this error because using of Val() function. e.g : `Val(txtbox_tolagoldweight.Text * 96) `, you just multiply string with number. try this : Sub kaat() goldkaatinratti = (((Val(TextBox1.Text) * 96) + (Val(TextBox2.Text) * 8)) + (Val(TextBox3.Text) * 8)) / 96 End Sub

Member Avatar for Jx_Man
0
3K
Member Avatar for Hazuan Nazri
Member Avatar for Hazuan Nazri
0
1K
Member Avatar for habenero

You can post your project in zip with clicking Files in this editor. Feel free to post. We'll trying to help you.

Member Avatar for habenero
0
340
Member Avatar for IT_Techno

In your qurey use "N" before your field value e.g `"insert into [UrduTextTable] values(N'" + txtUrduString + "') `

Member Avatar for Ketsuekiame
0
869
Member Avatar for vinitatiska

Have you ever heard about BeginTrans,CommitTrans and RollbackTrans? You can do this with Rollback. [Search the google about it.](https://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&noj=1&biw=1366&bih=640&q=BeginTrans%2C+CommitTrans%2C+and+RollbackTrans+Methods+vb6+access+tutorial&oq=BeginTrans%2C+CommitTrans%2C+and+RollbackTrans+Methods+vb6+access+tutorial&gs_l=serp.12...626393.628543.0.629514.2.2.0.0.0.0.754.754.6-1.1.0...0.0...1c.1.14.serp.le82NTufnaU) See this [article](http://bytes.com/topic/access/answers/552069-access-sql-there-way-rollback-transaction), [this article](http://www.access-programmers.co.uk/forums/showthread.php?t=178488), [this](http://visualbasic.freetutes.com/learn-vb6-advanced/lesson9/p15.html) and [this](http://www.vbforums.com/showthread.php?408072-how-to-use-BeginTrans-CommitTrans-amp-RollBackTrans).

Member Avatar for rishif2
0
377
Member Avatar for raizuke.blademaster
Member Avatar for Vusumuzi
Member Avatar for ahudson

Use Select Statement. e.g : `"Select Holder_name, Balance from Account where Account_Number = '" & Textbox1.Text & "'"`

Member Avatar for mridul.ahuja
0
213
Member Avatar for kalaithilak

You mean that you want to open the form1 but it open form2? something like that? You can remove the current form and add it back.

Member Avatar for mridul.ahuja
0
181
Member Avatar for yuvjeeth

You can use this following code : Private Sub Form_Load() If Dir$("D:\dani.txt", vbNormal) = "" Then MsgBox "This is your first time" Else ' Do anything if text file exist End If End Sub

Member Avatar for mridul.ahuja
0
236
Member Avatar for LeNenne

It's hard to do it if you don't know the exact time when the file is saved. About this case, i think better to have form to manage backup files, so you can choose any backup files to be deleted.

Member Avatar for LeNenne
0
151
Member Avatar for LeNenne

> I fixed it If you already fix it then please share with us the solution. Your answer will help another members who has same problem like you. Also make this thread as Solved. Thank you.

Member Avatar for Jx_Man
0
210
Member Avatar for ChemE_Programma

[This is how to find the real roots using Newton’s method:](http://www.chem.mtu.edu/~fmorriso/cm3215/excelTutorial1_2010.pdf) Function realCubeRoot(a, b, c, d, n) ' ' computes the nth real root of the cubic equation ' ' a x^3 + b x^2 + c x + d = 0 ' ' ================================================= xold = 1 iter = …

Member Avatar for ChemE_Programma
0
709
Member Avatar for IsaacMessi10

[Read this](http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/ca257f22-115e-43f2-a28d-c806c81061b7) or [this article](http://www.codeproject.com/Articles/204929/Getting-current-browser-URL-with-VB-NET)

Member Avatar for IsaacMessi10
0
128
Member Avatar for LeNenne
Member Avatar for LeNenne

> .CancelError = True In line 4, Set CancelError to False. .CancelError = False

Member Avatar for LeNenne
0
157

The End.