code_junkie

Textbox anchored to a form on all 4 sides not displayed properly

Nov 12th, 2011
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Friend WithEvents txtRecommendationText1 As System.Windows.Forms.TextBox
  2.  
  3. <System.Diagnostics.DebuggerStepThrough()> _
  4. Private Sub InitializeComponent()
  5. Me.txtRecommendationText1 = New System.Windows.Forms.TextBox
  6.  
  7. ' ...snip...
  8.  
  9. 'txtRecommendationText1
  10.  
  11. Me.txtRecommendationText1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
  12. Or System.Windows.Forms.AnchorStyles.Left) _
  13. Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
  14. Me.txtRecommendationText1.Location = New System.Drawing.Point(4, 127)
  15. Me.txtRecommendationText1.Multiline = True
  16. Me.txtRecommendationText1.Name = "txtRecommendationText1"
  17. Me.txtRecommendationText1.Size = New System.Drawing.Size(223, 149)
  18. Me.txtRecommendationText1.TabIndex = 10
  19. End Sub
Add Comment
Please, Sign In to add comment