SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question C# Windows App - Textbox problems

    Hi guys,

    Random problem here:

    I have got a floating form inside a MDI Parent using this code:

    Code:
            private void btn_CustMaintenance_Click(object sender, EventArgs e)
            {
                frm_CustomerMaintenance oCustomerMaintenance = new frm_CustomerMaintenance();
                oCustomerMaintenance.TopLevel = false;
                this.Controls.Add(oCustomerMaintenance);
                oCustomerMaintenance.StartPosition = FormStartPosition.CenterScreen;
                oCustomerMaintenance.Show();
                btn_CustMaintenance.Enabled = false;
            }
    When I add a textbox to the CustomerMaintenance form with some text in it, it acts very strangely. If you click on the text in the textbox, usually the text cursor thing would appear where you have clicked on the text, but it doesnt, it just goes to the left hand side of the text.

    If I put a textbox on the MDI page though, then that works correctly.

    Has anyone else had this problem? If so, how did you sort it? If no-one has had this problem, can you try and simulate it and come up with a solution!

    Cheers,
    William

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone been able to have a look at this?

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ???

    Pleeeeeeeeeeeeeeeease help!


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
  •