Visual Studio - Debug Error Form

  • Thread starter Thread starter Brian P. Hammer
  • Start date Start date
B

Brian P. Hammer

I am looking to see if someone has created that form that pops up in VS when
you hit an error during debug. The one with the error info, the connector
line to the line causing the error and can be dragged around.Anyone know
where I can find info on recreating this?

Thanks,
Brian
 
Thanks - I have a custom form for my errors and am not trying to debug. As
I said, I am wanting to recreate this form... For other functionality in my
app and not error handling.

Regards,
Brian
 
Hi Brian ,

Thanks for your post!

Based on my experience, I do not think this issue has too much with .Net
winform, I think VS.net IDE newsgroup will provide you more information
regarding writing add-in or VS.net automation.

If I misunderstand you, please feel free to show me your real concern.
Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Jeffery - I do Not want an add-in. I am looking for a form for my Windows
application that replicates the looks and behavior of the VS error form when
debugging.

I have a grid that can show notes (like excel does) and I would like to use
a form similar to the one VS uses. I will begin building my own as it seems
there has not been one created yet.

Regards,
Brian
 
Hi Brian ,

Thanks for your feedback.

Ok, I see your concern.

I am not sure if other community members have implemented the similiar
function. If you want to implement a similiar dialog, I think the key
obstacle is:
1. the connector line
2. dragged around freely

#1, we can use spy++ to view the window structure of VS2005 debug error
dialog. As we can see, the connector line is actually a transparent form
besides the error form. To construct a transparent form, we can set
Form.TransparentKey property to form's background color. Then use a
different color to draw the connector line.

#2, normal form's caption bar is draggable. I did not see any problem
regarding this.

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thanks Jeffery. Didn't figure out the transparent form but can see that in
Spy.

The only problem I am having is setting the form so that it will not
initially fall outside of the main application window or for that matter,
the screen. On my grid, a column on the far right, draws the form so that it
is off the screen.

Regards,
Brian
 
Hi Brian ,

Thanks for your feedback.

Regarding transparent form, we can use 2 steps to get the result:
1. set Form.BackColor to Color.Red
2. set Form.TransparencyKey to Color.Red

Regarding the second issue, we can p/invoke SetWindowPlacement Win32 API to
get this done. As we can see in "Remarks" section of SetWindowPlacement API:
"If the information specified in WINDOWPLACEMENT would result in a window
that is completely off the screen, the system will automatically adjust the
coordinates so that the window is visible, taking into account changes in
screen resolution and multiple monitor configuration."

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Gak,

Ok, if you need further help, please feel free to feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top