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. Visual Basic
  4. Form problem

Form problem

Scheduled Pinned Locked Moved Visual Basic
graphicshelpcsharpquestion
1 Posts 1 Posters 0 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.
  • R Offline
    R Offline
    RJGCarey
    wrote on last edited by
    #1

    I am migrating a large VB.6 solution to VB.Net and have encountered a problem that I haven't been able to solve. It has been my habit for some years to notify myself of errors by putting up a new form and write to it the location and type of error that has occurred. This works nicely in VB.6. I use this class in an error routine, such as. Catch ex As Exception Err.Showit("clsBars", "DoNewMinute", ex.Message.ToString) End Try In VB.Net the form comes up and is correctly sized and positioned and the error message is written to it. When you pass the cursor over the form it turns to an hourglass. You can not minimize, maximize, close or drag the form. If you use this class from a command button on another form with this code Err.SetUpForm() Err.Showit("This is a test") the form behaves normally. What am I missing? Thanks RCarey Here is the code for my error class.(alias Err.) Public Class clsError Private dG As System.drawing.Graphics Private dFt As System.Drawing.Font Private dBr As SolidBrush Private dFm As StringFormat Private dX, dY As Integer Private lineCount, maxLines As Double Public Sub SetUpForm() '1/14/04 Dim dbgString As String Try frmError = New Form3 '

    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