Results 1 to 2 of 2

Thread: [2005] simple! but don't know the reason?

  1. #1

    Thread Starter
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    [2005] simple! but don't know the reason?

    Hi,
    I tried to set the form width to the width of the label box. The following coding is not working. It's width is not changed.
    VB Code:
    1. private void lblMess_TextChanged(object sender, EventArgs e)
    2.         {
    3.             this.Width = lblMess.Width + 70;
    4.             this.Refresh();
    5.         }


    regards,
    senthil
    God has been pleased to place as a king or cobbler do the work sincerely

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] simple! but don't know the reason?

    You're posting in the wrong forum, my friend. This is VB.Net, not C#
    Have you confirmed that the TextChanged event of the label got raised?

Posting Permissions

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



Click Here to Expand Forum to Full Width