Search:

Type: Posts; User: HairyToe

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    Does anyone know what might be the cause of this?

    Cheers
  2. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    Hi,

    Thanks dbasnett

    using that last code and the code I already had I got the app writing to a .txt box. Problem is now in the txt file it says
    'System.Windows.Forms.ListBox+ObjectCollection'
  3. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    Hello,

    I have been looking at this again, and still cant get it to work. Any ideas anyone?

    Cheers
  4. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    I have tried adding text.txt into that folder and running my application again. unfortunately, I am not able to get this to work still.

    keep getting the
    MsgBox("File Does Not Exist")

    will...
  5. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    Hi,

    Thanks for the reply.

    Im a little confused now, where can i find the Application.StartupPath to add the text file to start with?

    Thank you
  6. Thread: VB Array

    by HairyToe
    Replies
    7
    Views
    1,006

    Re: VB Array

    Would the best method to do this be in a dynamic data structure?
  7. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    Im now using this code and still getting the same problem

    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim ExpensesFile...
  8. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    GizSho- would you say "My.Computer.Filesystem.Writealltext" was a better method of doing this?
  9. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    Here is the code im trying to use.

    Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim ExpensesFile As String

    ...
  10. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    I tried the code you suggested, and modified it to my needs.

    When i attempt to save the listbox to the .txt file, i get a message saing file does not exist.

    I have been onto C:\ and added a...
  11. Replies
    20
    Views
    1,413

    VS 2008 Re: Writing to a text file

    I only used Dim 1 as an example.
  12. Replies
    20
    Views
    1,413

    VS 2008 Writing to a text file

    Hi,

    For writing to a Text file and saving it somewhere like my C:\ drive, Should the following work?


    Dim 1 As NewStreamWriter ("C:\test.txt")

    I want to put this code into the On btn click...
  13. Replies
    5
    Views
    11,122

    Re: Running total in VB

    Thanks, Not far wrong! I will read those articles which you published dbasnett.
  14. Replies
    5
    Views
    11,122

    Running total in VB

    Hi,

    Im trying to keep a running total within a text box. The code I am using is
    RunningTotal.Text = Txtbox1.Text + RunningTotal.Text

    WHen I do this, RunningTotal.text only adds the content...
  15. Replies
    4
    Views
    913

    Re: Combo Box into Array

    Pradeep1210 - Thank you for your advice and help with this one. :)
  16. Replies
    4
    Views
    913

    Re: Combo Box into Array

    Hi.

    So would I put something like -


    if Combobox.SelectedItem = Location1 Then textbox1.text = 10
  17. Replies
    4
    Views
    913

    [RESOLVED] Combo Box into Array

    Hello,

    Trying to take the selected text from a combo box and insert it into an array. I thought of doing this in a manner such as this...

    TextBox1.Text = combobox1.Text.

    I will then try and...
  18. Thread: comboBox

    by HairyToe
    Replies
    5
    Views
    699

    comboBox

    Hi,

    I have created a comboBox and want to set it so when a user selects option1 from the drop down list. a Text box populates with text for the user to see.

    Is this possible?

    Thanks
  19. Thread: VB Array

    by HairyToe
    Replies
    7
    Views
    1,006

    Re: VB Array

    from reading online, its more to do with writing to a database, which is not what Im trying to do here.

    Is it possible to get a radio button set with code in the background to add 10 to a running...
  20. Thread: VB Array

    by HairyToe
    Replies
    7
    Views
    1,006

    Re: VB Array

    hi,

    Would I be able to do this in the form of a Visual Basic Records function?

    Thanks

    Karl
  21. Thread: VB Array

    by HairyToe
    Replies
    7
    Views
    1,006

    Re: VB Array

    this is a small project I am doing where I need to store data to an array which I have managed to complete. I now need to have a couple of radio buttons or something similar where I can call data...
  22. Thread: VB Array

    by HairyToe
    Replies
    7
    Views
    1,006

    VB Array

    Hello,

    I am currently putting together a VB application and required some advice/help, and I wondered if someone could help?

    I have put together an array for data from two text boxes to be...
  23. Replies
    2
    Views
    416

    Date and Time into .txt

    Hello,

    Im trying to take the date and time and at the click of a button i want to publish them both into a .txt file.

    My application has been set up to take data from text boxes and put them...
  24. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    Klenima, the code you provided didnt work for me directly.

    From reading your code, my mess of a code, and some trial & error, I am now on the right path.

    I have even found an easier way of...
  25. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    I have added the code as given, I run the application, and no errors show. As posted in #13 above. It only runs form2 now.

    because of this, textbox1 on form1 is still empty. so no data can be...
  26. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    should that be "public class form2" at the top?

    am i correct in thinking i need to have form1 and form2 listed within my project under the solution explorer?

    Thanks
  27. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    Now when I run my program, Form1 does not load first like before. Form two loads instead. Is there an option or piece of code to set it so that form1 loads first. Then when button is clicked, form2...
  28. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    yes, I want form2 to load once and text in textbox1 to change
  29. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    I have form 1, within form one is a number of text boxes.
    When you click a button, it loads form2 so that other functions can be carried out.

    WIthin that form2, I want what ever the value of...
  30. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    I have tried re-naming the varibles as suggested. I also deleted all the firm ans started again to make sure it was not another line of code i had entered.

    I still get the same problem.

    This is...
  31. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    THe "form2 As New Form2" section is highlighted green with an error message saying

    "Make sure you do not have an infinate loop or infinate recursion"
  32. Replies
    18
    Views
    1,947

    Re: Calling data from form1 into form2

    Hi,

    I have tried adding the following to my code, but it does not work.

    Am i doing it all wrong?

    Thanks


    Dim form2 As New Form2
  33. Replies
    18
    Views
    1,947

    Calling data from form1 into form2

    Hello,

    Is there any way to pull data from a text box on form1 into form2

    For example

    if Textbox1 = 100

    When i click the botton to load form2-
  34. Thread: Clear data

    by HairyToe
    Replies
    3
    Views
    569

    Re: Clear data

    Thank you, I have managed to get my head round that and ive got it working.

    Thinking a little bit outside the box here... BUT is it possible to reset the text boxes to their original state?
    ...
  35. Thread: Clear data

    by HairyToe
    Replies
    3
    Views
    569

    Clear data

    Hello,

    Is there any code that will delete the content of a text box on a button click.

    Eg,

    On button click clear textboxes in form1?

    Thanks
  36. Replies
    14
    Views
    1,090

    Re: Character string Vb code help

    Dim textNumber2 As Decimal = 0.0
    Decimal.TryParse(TextBox2.Text, textNumber2)

    Is that the correct format?
  37. Replies
    14
    Views
    1,090

    Re: Character string Vb code help

    I have tried adding and changing the code posted by GarryMazzone,

    but it does not work.

    sorry about this, Im trying to learn Vb ATM. :)
    Dim textbox22 As Single = 10.54653
    ...
  38. Replies
    14
    Views
    1,090

    Re: Character string Vb code help

    Mazz1,

    Would i rename MyVal to the name of the text box im using?
  39. Replies
    14
    Views
    1,090

    Re: Character string Vb code help

    Hi,

    So how would I set it so that it only moves the decimal point and only keeps the last two digits. Eg

    instead of 10.984 it shows 10.98

    Thanks
  40. Replies
    14
    Views
    1,090

    Re: Character string Vb code help

    Actually would it be
    FormatCurrency(0.0)
Results 1 to 40 of 62
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width