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

  • Home
  • SEARCH
  • 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 6001375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:49:32+00:00 2026-05-23T00:49:32+00:00

I am creating some more complex controls containing already defined controls for use in

  • 0

I am creating some more complex controls containing already defined controls for use in my application which I am currently working.

I have an issue with a ListView control on which I try to “draw” a table (View = Details). I add the columns header for my ListView and a couple of rows. The header and the rows are visible in the designer from my custom activity, but when I add the custom control on a Windows form I cannot see them neither on the designer, neither when executing the application. The custom activity contains also other predefined controls: ListBox, TextBox, etc, which are shown correctly, but the ListView isn’t and I cannot find any reasonable explanation for this. I made also some debug and observed that the items are there but simply are not shown in the form.

Someone have any idea how I can go over this issue? 🙂

  • 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-05-23T00:49:32+00:00Added an answer on May 23, 2026 at 12:49 am

    Thank you, for trying to help me with this.

    I manged to solve the problem in not a very elegant manner, but one that it works. I will add my solution if anyone would need help with a similar problem.

    I don’t know if it could be understand from my question but I created the custom control from the designer. It seems that there is a small bug with generating the Designer file if adding a ListView on a custom control. For some reason the columns added in the designer are not added into the *.Designer file, I manually added them and the problem was solved. The lines of code that should be added in this case will be something like this:

    this.myListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.myColumnHeader1,
            this.myColumnHeader2,
            this.myColumnHeader3});
    
            // 
            // myColumnHeader1
            // 
            this.myColumnHeader1.Text = "My Column Header1";
            this.myColumnHeader1.Width = 100;
            // 
            // myColumnHeader2
            // 
            this.myColumnHeader2.Text = "My Column Header 2";
            this.myColumnHeader2.Width = 100;
            // 
            // myColumnHeader3
            // 
            this.myColumnHeader3.Text = "My Column Header 3";
            this.myColumnHeader3.Width = 100;
    

    I must also note that this problem can be observed only when adding the ListView through the designer on a custom control, if it is added directly on a Windows form the *.Designer file will be saved Ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on creating a dashboard. I have started to refactor the application so
I'm building a MVC application which is a bit more complex than what I
I am creating some application, facebook application and i need to ask you something.
I'm creating some scripts to streamline application installations and I need to append to
I am creating some cookies in my ASP.NET application. These cookies expire 10 minutes
I have a fairly complex application at this point, and feel as though the
I am working on an application (Symfony 1.4 / Doctrine) that has some pages
My issue is pretty simple. I have an application that should be executed automatically
I'm creating a Firefox extension, in which I want to iterate through the Application.windows
When creating selenium tests using the #{selenium} tag, how do you use complex XPath

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.