279 Posted Topics

Member Avatar for OMER AHMED

You need to apply some division to the file.length as this comes in bytes based on the charcters in your file. Here are some of the divisions: info.Length / 1024 '= kilobytes info.Length / 1048576 ' =megabytes info.Length / 1073741824 '= gigabytes

Member Avatar for Minimalist
0
433
Member Avatar for y0yie_333

Well Microsoft wasn't much help on this one. Try this link: http://stackoverflow.com/questions/13578909/how-to-save-and-retrieve-a-fingerprint-template-in-phpmyadmin-database-using-vb

Member Avatar for rubberman
0
6K
Member Avatar for Arun_14

@Mr M In line5 you probably mean: Answer = Value1 - Value2 ? @Arun 1) I would use the read out (textbox ?) also as a variable to keep on with the operations. 2) I would use select case stements for your operations code

Member Avatar for Santanu.Das
0
181
Member Avatar for Satyam_1

You need to check if th form does exist and if it does set the window.state to normal. Something like this: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim frmCollection = System.Windows.Forms.Application.OpenForms For Each f As Form In frmCollection If f.Name = "Form2" Then MsgBox("Form exists") f.WindowState …

Member Avatar for Satyam_1
0
275
Member Avatar for Christian_4

In vb6 you can't use declaration= dadada but you need to seperate these. Private Sub cmdLogout_Click() Dim reply As String reply = MsgBox("Are you sure you want to Logout?", vbYesNo, "Confirmation") If reply = vbYes Then Unload Form1 frmAuthentication.Show End Sub This makes me always question is it vb6 or …

Member Avatar for Nutster
0
521
Member Avatar for Papa_Don

Looks more like a select case statement where there are more than one clause. See a good example of it here: https://msdn.microsoft.com/de-de/library/cy37t14y.aspx

Member Avatar for Reverend Jim
0
254
Member Avatar for Papa_Don

Maybe the anser here helps? http://www.mrexcel.com/forum/excel-questions/717592-visual-basic-applications-get-folder-name.html

Member Avatar for Minimalist
0
322
Member Avatar for Mr.M

This link might give you some insight of how to check some common files for tempering. http://www.forensicprotection.com/Education_Authenticate.html

Member Avatar for Minimalist
0
268
Member Avatar for joshl_1995

I do think crop is not the way to do what you want. Look into split image.Maybe you just want to overlay lines?

Member Avatar for joshl_1995
0
1K
Member Avatar for Lethugs

Maybe check this thread and post3 in it out: http://www.vbforums.com/showthread.php?676983-RESOLVED-Unhandled-exception-on-form-closing

Member Avatar for Lethugs
0
248
Member Avatar for Mike_25

In the formload event: Me.Width = Screen.Width Me.Height = Screen.Height However, that might not display all of the controls, depending on the layout of the form. You need to deal with this by resizing these as well. Something like in the form resize event: Me.MyControl.Width = me.ScaleWidth / 2 Additional …

Member Avatar for Minimalist
0
221
Member Avatar for tshukela.george

Since you are declaring snumber as string your inputbox statement should be: sNumber = InputBox("Enter a number", "Numbers Only", iNumber.ToString) https://msdn.microsoft.com/de-de/library/6z0ak68w%28v=vs.90%29.aspx

Member Avatar for tshukela.george
0
290
Member Avatar for hefaz

Do check this one out. Maybe it helps. http://www.saetechnologies.com/data-view-automation-error-element-not-found-vb6/ You also can google Data Automation Error! No elements found vb6 which brings up a number of results.

Member Avatar for hefaz
1
3K
Member Avatar for Minimalist

I am just wondering about a really long thread on the vb.net forum not beeing displayed in a few pages. At the moment it is a really long scroll job. https://www.daniweb.com/software-development/vbnet/threads/496489/error-message-when-application-opens#

Member Avatar for tobyITguy
0
118
Member Avatar for Papa_Don

Well the first line tells you: System.NullReferenceException: Object reference not set to an instance of an object. Which means you are referring to an object without having it declared. HAve you got option strict on and infer off? This will mostlike flag the error, depending on the error meg settings …

Member Avatar for Papa_Don
0
508
Member Avatar for junzz31

Your cmd is wrong. Check this example out: http://stackoverflow.com/questions/11519195/how-to-delete-records-of-ms-access-database-using-vb-net-form-and-how-to-enter-a

Member Avatar for DaveAmour
0
298
Member Avatar for vann_1

This link might be helpful connecting with vb6 to db2: http://docs.starquest.com/Supportdocs/techStarSQL/StarSQLODBC/Programming/SQ042_ADOParameterizedQuery.shtml

Member Avatar for Minimalist
0
53
Member Avatar for xmarker
Member Avatar for joshl_1995

It is not very clear what you attempt to do. In your example you replace a single word, in your for each loop you replace all(?) text. Also you should use something like: For Each lbItem As string In ListBox1.Items TextBox1.Text = Replace(TextBox1.Text, lbItem, "{HIDDED}") Next

Member Avatar for joshl_1995
0
355
Member Avatar for altjen

There is lot of work beeing done in this field of computing. Adding to what Schol-R-LEA has posted, do a google search on:computer voice commands and also look at this article: http://www.pcworld.com/article/2055599/control-your-pc-with-these-5-speech-recognition-programs.html

Member Avatar for Mr.M
0
232
Member Avatar for Satyam_1
Member Avatar for Satyam_1
0
382
Member Avatar for karodhill
Member Avatar for Mr.M
0
223
Member Avatar for wilsonchama

You also need to add like this: ListView1.Items.Add(Me.txtDescription.Text).SubItems.Add(Me.txtPrice.Text)

Member Avatar for wilsonchama
0
1K
Member Avatar for Emma Etigu
Member Avatar for Emma Etigu
0
335
Member Avatar for lyca
Member Avatar for Elliot_1
Member Avatar for 2384443
Member Avatar for jonathan.paul.7543
Member Avatar for David_50
0
1K
Member Avatar for marvin_1

Set your form's KeyPreview property to True and test for the key combinations you want to prevent in its KeyDown event, then set e.SuppressKeyPress = True

Member Avatar for djjeavons
0
622
Member Avatar for Amiet_1

Well, I haven't worked with com ports since dos6 and commit but you might find eberything you need to get started here: http://www.codeproject.com/Articles/16648/NET-Phone-Communication-Library-Part-I-Retrieve-P http://www.codeproject.com/Articles/16727/NET-Phone-Communication-Library-Part-IV-Receive-S

Member Avatar for Logn
0
705
Member Avatar for naz1234
Member Avatar for fantyfiz
Member Avatar for Papa_Don
Member Avatar for cgeier
0
336
Member Avatar for jamshed ahmed

Yes you need to assign your value properly. Otherwise start your loop at the top and go down. That should work. For i As Integer = dt.Rows.Count - 1 To 0 step -1

Member Avatar for Reverend Jim
0
392
Member Avatar for Bashar_1

You need to use the textbox in vb6 and set the password character in the peoperties.

Member Avatar for mridul.ahuja
0
892
Member Avatar for Liwons

Spaces in these names are problematic and there are different ways of dealing with it: http://stackoverflow.com/questions/14190798/how-to-select-a-column-name-with-space-between-in-mysql-on-liunx-ubuntu http://forums.codeguru.com/showthread.php?329069-SQL-Selecting-from-quot-column-names-quot-with-spaces-in

Member Avatar for Liwons
0
134
Member Avatar for Emma Etigu

You can use somezhing like this (.NET Framework 4.5): TextBox1.Location = New Point(15, 15) or you can use the top and left properties: TextBox1.Top = 100 TextBox1.Left = 30

Member Avatar for Minimalist
0
96
Member Avatar for Papa_Don

Maybe also replace line 29: If Len(Trim(txt.Text)) Then with If Len(Trim(txt.Text)) > 0 Then

Member Avatar for Santanu.Das
0
969
Member Avatar for fantyfiz

Why would you want to load form1 again? Anyway it works for me without an error. Try: Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click Dim myform As New Form myform.Show() End Sub

Member Avatar for fantyfiz
0
151
Member Avatar for Emma Etigu

Just type autocomplete into the search box in the top right corner and you will find plenty of references.

Member Avatar for Reverend Jim
0
212
Member Avatar for Papa_Don

![2.jpg](/attachments/small/4/4805fc5176e56e308062f0cba33229dd.jpg "align-left") Unicode character U+2640 called the female or venus sign. It will not do you any good in a notepad text file. Remember - this came from a unix program generated text and is probably a control character that is not understood by notepad and consequently the unix control …

Member Avatar for cgeier
0
502
Member Avatar for Samir@ymail

You need two textboxes and a button. Add a module to your project and copy: Option Explicit Public Function HexIt(sText As String) As String Dim A As Long For A = 1 To Len(sText) HexIt = HexIt & Hex$(Asc(Mid(sText, A, 1))) & Space$(1) On Error Resume Next DoEvents Next A …

Member Avatar for Minimalist
0
168
Member Avatar for jez9

O.K so you want to print the whole form to A4 or part of it? So how big is the form -whole screen, part of the screen? How much space should it occupy on A4? The difficulty with using print form is that your screen resolution is different to the …

Member Avatar for Minimalist
0
2K
Member Avatar for jez9
Re: Time

This snippet should give you an idea of how to work the difference out: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim str As String = "" Dim format As String = "HH,mm" Dim diff As TimeSpan Dim constSt As TimeSpan = New TimeSpan(0, 8, 0, 0, …

Member Avatar for jez9
0
170
Member Avatar for Magic8Computing

Put this on top of your class or form1: Imports System.IO Put this into your function instead of the msgbox: Using writer As StreamWriter = New StreamWriter("C:\append.txt", True) writer.WriteLine("First line appended; 1") End Using This creates a new file if the file doesn't exist

Member Avatar for Mr.M
0
176
Member Avatar for Cameron_2

You are aware that you let the compiler do your conversions from text to decimal. Put option strict on and you will get some errors.Why? because you are multiplying text as in: txtEur.Text = txtDollar.Text * 0.89 It is much better to declare variables correctly like: Dim DecDollar as Decimal …

Member Avatar for Minimalist
0
574
Member Avatar for mbowenitj

You need to tell which controls are in your groupbox and what you want to print, text, pictures buttons, button.names etc.

Member Avatar for Minimalist
0
861
Member Avatar for Spark_2

Well with tabcontrols you also have to select the pages of the control you want to work with. Also you need to add columns to a datagridview before you can add the rows. So here is a small application to show you how to it. I move text from form1 …

Member Avatar for Spark_2
0
4K
Member Avatar for Satyam_1

Another method would be: Set: SelectionMode to FullRowSelect of your datagrid Private Sub DataGridView1_CellMouseDown(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDown For Each row As DataGridViewRow In DataGridView1.Rows DataGridView1.RowsDefaultCellStyle.SelectionBackColor = Color.Red If e.RowIndex > -1 Then DataGridView1.Rows(e.RowIndex).Selected = True End If Next End Sub

Member Avatar for Satyam_1
0
4K
Member Avatar for wezhas
Re: vb6

So how have you started to solve your homework question? Humor us and show some code and explain your thoughts of how to solve the task.

Member Avatar for Minimalist
0
120

The End.