Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to Throw Visual Studio Error?

Status
Not open for further replies.

Qik3Coder

Programmer
Jan 4, 2006
1,487
US
I am working a slew of user controls for windows form control. Has any been able to throw a Visual Studio error if certain conditions aren't met?

Problem:
I have a control that works with a DataGridView. If the target datagridview isn't set, I want to have an error show in the Error List in Visual Studio. I already have a run time error thrown, but I would rather not find that error at run-time, if I can handle it earlier.

Thanks in advance,

-Sometimes the answer to your question is the hack that works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top