279 Posted Topics
Re: 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 | |
Re: 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 | |
Re: @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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: Maybe the anser here helps? http://www.mrexcel.com/forum/excel-questions/717592-visual-basic-applications-get-folder-name.html | |
Re: This link might give you some insight of how to check some common files for tempering. http://www.forensicprotection.com/Education_Authenticate.html | |
Re: I do think crop is not the way to do what you want. Look into split image.Maybe you just want to overlay lines? | |
Re: Maybe check this thread and post3 in it out: http://www.vbforums.com/showthread.php?676983-RESOLVED-Unhandled-exception-on-form-closing | |
Re: 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 … | |
Re: 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 | |
Re: 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. | |
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# | |
Re: 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 … | |
Re: 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 | |
Re: This link might be helpful connecting with vb6 to db2: http://docs.starquest.com/Supportdocs/techStarSQL/StarSQLODBC/Programming/SQ042_ADOParameterizedQuery.shtml | |
Re: What have you tried sofar? You need to show us some code of things you have tried. | |
Re: 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 | |
Re: 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 | |
Re: Maybe you close it in your printform or somewhere else. Definetly not in your button click. | |
Re: Check this out: http://www.dreamincode.net/forums/topic/200879-english-to-piglatin/ | |
Re: You also need to add like this: ListView1.Items.Add(Me.txtDescription.Text).SubItems.Add(Me.txtPrice.Text) | |
Re: Just search dani web with your query as there are lots of answers. | |
Re: Where do you enter the string ? Textbox? Combobox? | |
Re: He is using a script language | |
Re: txtPrice.Text.StartWith should be: txtPrice.Text.StartsWith | |
Re: You are probably better off moving the question to asp web development in Dani | |
Re: 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 | |
Re: 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 | |
Re: First of all get rid of the semicolon after 3 | |
| |
Re: Well Don, if you want the group to improve on your app you have to show us the code. | |
Re: 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 | |
Re: You need to use the textbox in vb6 and set the password character in the peoperties. | |
Re: 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 | |
Re: 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 | |
Re: Maybe also replace line 29: If Len(Trim(txt.Text)) Then with If Len(Trim(txt.Text)) > 0 Then | |
Re: 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 | |
Re: Just type autocomplete into the search box in the top right corner and you will find plenty of references. | |
Re:  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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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 | |
Re: 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 … | |
Re: You need to tell which controls are in your groupbox and what you want to print, text, pictures buttons, button.names etc. | |
Re: 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 … | |
Re: 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 | |
Re: 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. |
The End.