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)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top