Results 1 to 5 of 5

Thread: strange error come out help???

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2013
    Posts
    9

    strange error come out help???

    The error in the red line and also this code come out in .designer.vb
    Code:
    'NoteItAll
            '
            Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
            Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
            Me.BackgroundImage = Global.NoteIt_All.My.Resources.Resources.mainform_xx
            Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
            Me.ClientSize = New System.Drawing.Size(1333, 701)
            Me.Controls.Add(Me.Label3)
            Me.Controls.Add(Me.Label2)
            Me.Controls.Add(Me.Label1)
            Me.Name = "NoteItAll"
            Me.Text = "NoteItAll"
            Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
            Me.ResumeLayout(False)

    This come out in error description:
    Error 1 'NoteIt_All' is not a member of '<Default>'. F:\TextEditting\TextEditting\NoteItAll.designer.vb 58 30 TextEditting

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,711

    Re: strange error come out help???

    First and foremost, make sure the resource file does in fact exist and is an image/bitmap. If so, try taking out the Global.NoteIt_All. That away it would read:
    Code:
    Me.BackgroundImage = My.Resources.Resources.mainform_xx
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2013
    Posts
    9

    Re: strange error come out help???

    I have already include all my resource file and i delete the thing that you said but again i have error

    Code:
    Me.lblEraser.Image = My.Resources.Resources.Eraser_2_icon
    this is the error description:
    Error 1 'Eraser_2_icon' is not a member of 'NoteIt_All.My.Resources.Resources'. C:\Users\Lucky\documents\visual studio 2010\Projects\NoteIt All\NoteIt All\Paint_Note.designer.vb 194 30 NoteIt All

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2013
    Posts
    9

    Re: strange error come out help???

    I have already include all my resource file and i delete the thing that you said but again i have error

    Code:
    Me.lblEraser.Image = My.Resources.Resources.Eraser_2_icon
    this is the error description:
    Error 1 'Eraser_2_icon' is not a member of 'NoteIt_All.My.Resources.Resources'. C:\Users\Lucky\documents\visual studio 2010\Projects\NoteIt All\NoteIt All\Paint_Note.designer.vb 194 30 NoteIt All

  5. #5
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,711

    Re: strange error come out help???

    It sounds to me as though at one point or another it may have been deleted and then re-added. Try doing this:
    1)Deleting it from the project in the IDE
    2)Deleting it from your project in your project folder
    3)Re-Add it
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

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