简体   繁体   中英

How to set a custom location for a Error Provider

How would you set a custom location for an error provider in VB.Net?

I have tried:

myErrorProvider.SetIconAlignment(myTextBox, ErrorIconAlignment.MiddleRight + 50)

However this doesn't work

I don't think you can do it with the alignment. Try a different method: myErrorProvider.SetIconPadding(myTextBox, 50)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM