Results 1 to 5 of 5

Thread: Customer Data Type.

  1. #1
    mshahid is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2012
    Posts
    29
    Reputation
    12

    Customer Data Type.

    I am new in vb.net i made a program that show the customer data types the program is running and do not show any error but the problem is that the customer information shows in the label control not the texbox.

    kindly help me

  2. #2
    Lotok is offline VB.NET Forum Genius
    .NET Framework
    .NET 4.0
    Join Date
    Jan 2012
    Location
    Scotland
    Posts
    193
    Reputation
    22
    Can you show your code?

  3. #3
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,345
    Reputation
    1543
    You are assuming that we have some prior knowledge of your project. We don't. We only know what you tell us. What Label? What TextBox? What customers? If the data is not displaying then it's because you're not displaying it. You haven't shown us what you're doing so we can't possibly know what's wrong with it. As suggested, please show us your code but ONLY the RELEVANT code.

  4. #4
    mshahid is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2012
    Posts
    29
    Reputation
    12

    Customer Data Type (attach code file)

    I am new in vb.net i made a program that show the customer data types the program is running and do not show any error but the problem is that the customer information shows in the label control not the texbox. attach code file


    kindly help me
    Attached Files Attached Files

  5. #5
    Lotok is offline VB.NET Forum Genius
    .NET Framework
    .NET 4.0
    Join Date
    Jan 2012
    Location
    Scotland
    Posts
    193
    Reputation
    22
    You haven't anything in your code to show me what kind of control you are referring to. Good practice is to prefix your names, for example txtMyTextbox, lblMyLabel etc.


    I guess these controls are labels rather than the textboxes you wanted since their values are showing on the labels?



    company.Text = aCustomer.Company

    customersince.Text = aCustomer.CustomerSince

    Address.Text = aCustomer.Address

    city.Text = aCustomer.city

    country.Text = aCustomer.Country

    balance.Text = aCustomer.Balance


    It is worth pointing out too that your code does some weird stuff. Long winded for what you are trying to achieve and your use of the array is weird. You declare an array of 8 customer objects, add 2 customers to index 1 and 2 (arrays are 0 based) and then call an array.length even though you hard coded the length.
    Last edited by Lotok; 09-07-2012 at 3:48 PM. Reason: Additional Info

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking