• Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Calculation problems.

    @Jim shouldn't that be Dim checks As Double = CDbl(TextBox1.Text) also OP has 2 threads now for the same topic
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Variable Multiplication Help

    In line 12 you are assigning checks to a textbox. Maybe you wanted checks to be what is in the textbox checks= CDbl(TextBox1.Text)
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Variable Multiplication Help

    Dim checks As Double Dim Fee As Double Dim Q As Double Dim Initial As Double Initial = 10 Dim number1 As Decimal = 0.1D Dim number2 As Decimal = …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Variable Multiplication Help

    You are declaring Fee as double on th top and than returning an Integer in line 24 In line 12 you are assigning a double to a textbox ? textbox1.text= …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Calculation problems.

    You can't use checks to count the clicks. This could be anything. You need to setup a proper counter tha tincreases each time th bvutton is clicked. Use the button.click …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Calculation problems.

    You are not showing enough code. Where do you count the clicks and under which condition?
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Calculation problems.

    This is the problem I am working on ( you have likely seen it before) A bank charges $10 per month, plus the following check fees for a commercial checking …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Calculation problems.

    ElseIf checks < 39 Then This doesn't give you the range 20 -38 but th range 0-38
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in i need help with my task

    From the line 3 I can see that you didn't read up on inputbox - google it. Here is a link: http://msdn.microsoft.com/en-us/library/6z0ak68w(v=vs.90).aspx Do you know about functions, subroutines and about …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in System Error &H80004005 (-2147467259) Unspecified Error, when save VB6 file

    I don't understand. You mean edit the code or put data into a form and than try to save. Also use debug and show the code where the error is …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching how to make an installer for a program

    I made a visual basic program and i want to know how to make installer can anyone help?
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in how to make an installer for a program

    Go to the menu bar -> File-> make project.exe and check out the options
  • Member Avatar for Minimalist
    Minimalist

    Began Watching i need help with my task

    Good day Can you please help me with my codes. My teacher tasked us to make a program that will accept a password from the input box then will show …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in i need help with my task

    'You better read up on the inputbox methods. 'Declare all the values and variables Dim message as string="Enter the password" Dim title as string = "InputBox Demo" Dim defaultValue As …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Intersect

    They don't have to be in the same position. Look at this example: http://msdn.microsoft.com/de-de/library/bb460136(v=vs.90).aspx
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Intersect

    I have a question about the string.intersect method. I am not getting the results I expect. Dim lstChars1() As Char = "hello dolly" 'TextBox1.Text.ToCharArray Dim lstchars2() As Char = "help …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Intersect

    Intersection returns only the elements that are contained in both sets. It doesn' rtell you how many or at which positions they are.
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Compare Strings

    Hello, i have 2 textbox. and i need to compare those 2 strings to get the number of same letters/characters. Example: Hack Cake Total same letters/characters = 3 [ C.K.A …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Compare Strings

    O.K. put a button on your form and paste the code into it. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim word1 As String = TextBox1.Text Dim …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Yes there is somecode here: http://stackoverflow.com/questions/19473054/vb-net-how-to-combine-2-lists
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Sorry but you completely lost me with the my.settings stuff. I don't understand what you want to achieve with this? This will not work: MySource = My.Settings.ListBoxCollection1 MySource = My.Settings.ListBoxCollection2 …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    No, you don't need too. The code will work with any collection.
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    In line 2 you have to clear the listbox ListBox1.Items.Clear()
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Private Sub TextBox1_KeyUp(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyUp Dim strOr As String, strReturn As String, strL As String, valueL As String strOr = Trim(TextBox1.Text) strL = UCase(Trim(TextBox1.Text)) 'hold …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Replace: Button1.PerformClick() with If TextBox1.Text <> "" Then Button1.PerformClick() End If Delete textbox2 and the referring code
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    I you copied my code and have a button1 to clear not selected items you can just insert the following line at line number 26 in the code above Button1.PerformClick() …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Did you get the code to work? And to your question: no a listbox ist not meant to this. Either use a listview control or use multiple listboxes synchronised - …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    It only takes a few lines and works a charm. Icommented the code a bit. I removed the button to populate the list and do it at form load. The …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    The problem is that you can get a combination of lower and upper case letters in the owrd list and mybe typos. So what you can try is to declare …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Well you would have to put some code in to make it not case sensetive - I need to think about this. To the second point, the bclear button clears …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    Thats what the picture looks like sfter I pt an o into the input textbox:
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    O.K. I got it working, however it distinguishes between captal and non capital letters. I put 2 buttons, one to load your list into the listbox and one to remove …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in connectionstring error

    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\bin\Debug\bookshop.mdb" shoulds be like this: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\bookshop.mdb"
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in connectionstring error

    Sorry, don't know why this doesn't work. I try again http://social.msdn.microsoft.com/Forums/sqlserver/en-US/dc31ea59-5718-49b6-9f1f-7039da425296/where-is-datadirectory-?forum=sqlce
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in connectionstring error

    In the documentation for source it says: Data Source = |DataDirectory|\Mydb.mdb so if I look at your connection string you still have directory references in the path which is not …
  • Member Avatar for Minimalist
    Minimalist

    Began Watching System Error &H80004005 (-2147467259) Unspecified Error, when save VB6 file

    when I create a program with VB6 and I do storage program that I have made the message "System error & H80004005 (-2147467259). Unspecified error". Can you all enlighten me? …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in System Error &H80004005 (-2147467259) Unspecified Error, when save VB6 file

    Please check this link: http://support.microsoft.com/kb/223152/en-us
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Basic calculator

    In this code,while executing it does's show the result. For eg: Consider addition,in addition result it shows the second value to be added. How it can be corrected? Public Class …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Basic calculator

    You get this error because your button names are different from from the construction in the addhandler statement. Read Reverend Jim's statement carefully
  • Member Avatar for Minimalist
    Minimalist

    Began Watching connectionstring error

    So I put the database into the dubug folder in bin of my project, and in the data source configuration wizard i selected ms access and my file, then i …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in connectionstring error

    It looks to me that in line 9 you want to connect if the passwords are wrong? Check your if--then--else statement
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    I have used as selection mode "multi simple" - maybe try this and let me know
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    You need to set your listbox in the properties window to multiselect and and select each item with a match that matches.
  • Member Avatar for Minimalist
    Minimalist

    Began Watching scale method

    Could i please have an example of using the equivalent of the obselete Scale method for picture box controls in vb.net?
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in scale method

    Here are some code examples side by side vb6 and vb.net 8 http://msdn.microsoft.com/en-us/library/zzt5x46b(v=vs.90).aspx
  • Member Avatar for Minimalist
    Minimalist

    Began Watching Vb 2012 Express Listview SelectedIndex no where to be seen xD

    lol Hi people its been 2 years im back :D I finshed high school but had too stop programming so im back to noob The problem is i cant seem …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Vb 2012 Express Listview SelectedIndex no where to be seen xD

    Here is just some basic code. Add items in formload. When an item is clicked in listview1 it is copied totextbox1. Where I copy the text you have to insert …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in How to backup a MySQL database in VB6?

    O.K- create a command button You need the location and the filename of the file you want to copy. You need a location where you want it copy to and …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in How to backup a MySQL database in VB6?

    Dim SourceFile, DestinationFile As String SourceFile = "SRCFILE" ' Define source file name. DestinationFile = "DESTFILE" ' Define target file name. FileCopy(SourceFile, DestinationFile) ' Copy source to target. Also show …
  • Member Avatar for Minimalist
    Minimalist

    Replied To a Post in Partial word match in textbox

    O.K. as I said the first attempt was just a guess and a hangover from vb6. ListBox1.ListCount becomes listbox.items.count, however we need to use the a list to add all …

The End.