Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all,

 

I'm relatively new to VB.Net and I'm runing into a problem. I'm trying to create a cash register program that allows the user to type an item number into a textbox, click a button, and have the matching database record be populated in a listbox. First question, am I using the right control as far as using a listbox, or should I use something else? Afterwards I'll need to add more items to the listbox and calculate the total. Second question, I've tried a few sample codes that connect to the DB and pull the right record based on a query, but apparently the connection is closing before it gets to the point to display the record. Any help would be greatly appreciated.

 

Thanks in advance,

 

Chris

if(computer.speed == "slow")
    {  
       hamster.feed();  
    }
if(computer.speed == "really slow")
    {  
        hamster.kill();
        BuyNewHamster();
    }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...