FAQ  •  Register  • 
  • Login
  • Programming Question (Visual Basic 2010)

    <<

    (TKC) Slevin

    User avatar

    Esteemed Member
    Esteemed Member

    Posts: 1091

    Joined: Mon Jun 8, 2009

    Location: Cambridge or Waterloo? Canada or United Kingdom?

    Division: Half-Life 2 Deathmatch

    Reputation: 0

    Post Tue Aug 24, 2010 3:05 am

    Programming Question (Visual Basic 2010)

    How do you 'remember' the items of a combo box after you close the form (calling the form_closed)?
    ie if you add custom items to a combobox, the next time you open the form it will save those new items along with the original?

    I know how to use the My.Settings thing for strings from textboxes when calling the FormLoad and FormClosed Subs, but cant figure out how to do this for a range of items.

    Possible ways of going around this are to:
    -create an array and keep a track of each item (but i dont know the size that it will get to
    -everytime i close the form, create a text document to keep a track of all items the copy all items next time it loads (but this is a problem cause i dont want to keep creating new files, plus have multiple combo boxes that i dont want a txt file for each)

    Anyone with programming experience please help.
    • 0

    ImageImageImage
    <<

    (TKC)-o]T3[o

    User avatar

    Patriarch of the Forums
    Patriarch of the Forums

    Posts: 10290

    Joined: Wed Oct 8, 2008

    Location: Wylie, Texas

    Division: Rising Storm 2 Vietnam

    Steam Name: [TKC]olT3lo

    BF3 Soldier: olT3lo

    BF4 Soldier: olT3lo

    Reputation: 106

    Post Tue Aug 24, 2010 7:14 pm

    Re: Programming Question (Visual Basic 2010)

    Sorry.. while I am a programmer I don't know VB at all.. good luck.
    • 0

    ImageImageImageImageImageImage
    <<

    (TKC) Slevin

    User avatar

    Esteemed Member
    Esteemed Member

    Posts: 1091

    Joined: Mon Jun 8, 2009

    Location: Cambridge or Waterloo? Canada or United Kingdom?

    Division: Half-Life 2 Deathmatch

    Reputation: 0

    Post Tue Aug 24, 2010 11:37 pm

    Re: Programming Question (Visual Basic 2010)

    (TKC)-o]T3[o wrote:Sorry.. while I am a programmer I don't know VB at all.. good luck.

    Any ideas with other languages?

    Im using visual studio 2010, and its not the same Visual Basic i remember from school (6.0)
    The syntax is improved greatly.

    I think Visual Basic now is a hybird, containing several new functions and classes from C/C+/C#
    (I dont remember using Try statements, or even having the whole main be called a class in the old VB6)

    Any suggestions in related languages will be appreciated.
    • 0

    ImageImageImage
    <<

    (TKC)-o]T3[o

    User avatar

    Patriarch of the Forums
    Patriarch of the Forums

    Posts: 10290

    Joined: Wed Oct 8, 2008

    Location: Wylie, Texas

    Division: Rising Storm 2 Vietnam

    Steam Name: [TKC]olT3lo

    BF3 Soldier: olT3lo

    BF4 Soldier: olT3lo

    Reputation: 106

    Post Tue Aug 24, 2010 11:59 pm

    Re: Programming Question (Visual Basic 2010)

    No.. i'm a web programmer.. PHP, Javascript, stuff like that. I don't have a background in full blown languages like C.
    • 0

    ImageImageImageImageImageImage

    Return to General Discussion

    Who is online

    Users browsing this forum: No registered users and 3 guests

    cron
    x

    #{title}

    #{text}