Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Error while putting usercontrol on tabcontrol

Error while putting usercontrol on tabcontrol

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpgraphicsdesign
1 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nguyentuancuong
    wrote on last edited by
    #1

    i was developed usercontrol inherits TextBox control, when i put it on form is ok (in design mode), but when i put it on tabcontrol and switching between code window and design window show following error message: - An error occured while loading the document. Fix the error, and then try loading document again. The varible 'control name' is either undeclared or was never assigned ... but i press F5 it run thanks cuong, Imports System.ComponentModel Imports System.Windows.Forms Imports System.Drawing Public Class VPIDSTextBox Inherits TextBox Private _mandatory As Boolean Private _tagData As Boolean Private _enterFocusColor As Color = Color.FromArgb(200, 210, 215) Private _leaveFocusColor As Color = Color.FromArgb(0, 0, 0) Private _fieldName As String Private _dataType As Int16 ' 0: Text; 1: Number ; 2: Date Private _dataFormat As String Private _keep As Boolean Private _isSaveData As Boolean = True Private _showButton As Boolean = False Public WithEvents ErrPro As System.Windows.Forms.ErrorProvider 'Public WithEvents cmdButton As Button 'Event ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call 'init error provider ErrPro = New System.Windows.Forms.ErrorProvider() End Sub 'UserControl overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. Private Sub InitializeComponent() ' 'VPIDSTextBox ' End Sub #End Region _ Property IsSaveData() As

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups