Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8487057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:07:35+00:00 2026-06-10T21:07:35+00:00

I am using vb.net to develop a simple desktop application. fillfeilds is a public

  • 0

I am using vb.net to develop a simple desktop application. fillfeilds is a public function being called from another class.
The function is being called but the value of the textboxes doesn’t change. But when I call Button1_Click which in turn calls fillfeilds the routine works fine.

I would be most grateful if anyone could guide me as to what I am doing wrong as I do not understand this behavior.

Thanks.

Public Sub fillFeilds()

        FirstNamePri.Text = "lll"
        FirstNamePri.Text = "lll"
        LastNameAlt.Text = "kkkk"


    End Sub


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FirstNamePri.Text = "lll"

        fillFeilds()
    End Sub

‘class that calls fillfeild() function

Public Class MainCust

      Dim cust As New CustInfo
    MainWindow.MainPanel.Controls.Add(cust)

    Dim rec As New Customer

    Dim dataArr As ArrayList = rec.getFirstCust()

    Dim customer As New CustInfo
    customer.fillFeilds(dataArr)


End Sub

End Class
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:07:36+00:00Added an answer on June 10, 2026 at 9:07 pm

    You are creating two separate instances of CustInfo. You are showing the first one but not the second one. The second one, which is never shown is the one on which you are actually filling the fields. Try this instead:

    Dim cust As New CustInfo
    MainWindow.MainPanel.Controls.Add(cust)
    Dim rec As New Customer
    Dim dataArr As ArrayList = rec.getFirstCust()
    cust.fillFeilds(dataArr)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop a client-server based desktop application using .Net 4, C# and
I'm using ASP.NET MVC to develop a web application, deploying to IIS 7. I've
I am trying to develop an application using ADO.NET. I have two tables in
I recently came across a way to develop pluggable application modules when using ASP.NET
I am using VSTS 2008 + .Net 3.5 + ASP.Net to develop a simple
I have develop one simple database application build using SilverLight5.0 + Entity Framework +
i'm trying to develop my first and simple videogame. I'm using SDL.NET (wrapper .NET
still i develop application with asp.net webform but there is lots of hype regarding
Anybody tried here using Getting Real(37Signals) approach to develop windows application? (C#/.NET). Or simply
I am trying to develop a .NET Web Project using NHibernate and Spring.NET, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.