Questions tagged [errorprovider]

108 questions
25
votes
1 answer

Customizing WinForms ErrorProvider to display its icon inside control's entry

I have some custom/user controls that in most cases have label and entry, like this: removed dead ImageShack link Is there any way I can customize the standard WinForms ErrorProvider to display its icon inside entry (entry - textbox, combo, datetime…
Jarek
  • 5,885
  • 6
  • 41
  • 55
17
votes
5 answers

C# WinForms ErrorProvider Control

Does anyone know if there is a way to get a list of controls that have the ErrorProvider icon active. ie. any controls that failed validation. I'm trying to avoid looping all controls in the form. I'd like to display some sort of message…
codingbadger
  • 42,678
  • 13
  • 95
  • 110
10
votes
5 answers

Windows Forms - ErrorProvider + DataGridView

How can I hook in the ErrorProvider with individual cells on the DataGridView control?
Ronnie Overby
  • 45,287
  • 73
  • 267
  • 346
8
votes
1 answer

error provider is not blinking uniformly

I have an error provider providing error for 4 controls.. when I set all the four errors, only two of them blink together at a time and all four settle down after certain time.. even if I set two errors, both blink alternatively.. but I want all of…
techBeginner
  • 3,792
  • 11
  • 43
  • 59
7
votes
2 answers

disable validation of errorprovider when click cancel button

is there a way to disable the validation of errorprovider elegantly when click cancel button to dismiss a winform? The validation always happens when the textbox lose focus, and i don't wanna it to validate when the user click cancel button, it is…
Benny
  • 8,547
  • 9
  • 60
  • 93
6
votes
0 answers

.Net Framework Data Provider error 60

I've received the following error from the live site: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Internal .Net Framework Data Provider error 60.…
6
votes
1 answer

error C2039: 'Dispose' : is not a member of 'System::Windows::Forms::ErrorProvider'

I am trying to use ErrorProvider Class to show error on checkbox. I am able to show the error using the following code errorProvider1->SetError(checkBox1,"Error"); But when I am trying to dispose this errorProvider using the following…
5
votes
3 answers

Error Provider in WPF

I am looking at WPF componenents in the toolbox but I cannot find the error provider that is present in 2005/2008. Is it removed?
David Brunelle
  • 6,528
  • 11
  • 64
  • 104
5
votes
9 answers

C# ErrorProvider Want to know if any are Active

I want to know if any ErrorProvider are active in my form. being able to find this out might help reduce my code.. I did find this thing here Counting ErrorProvider but incase someone knows a better way... so here goes. Ok so basically I have a…
RcK
  • 97
  • 1
  • 1
  • 9
4
votes
3 answers

Get c.SelectedItem in Controls C#

I am making some validation functions for my project but I am stuck on something. I want to have a single function to handle a couple of different controls and errors. Here's my code: private void ValidateControls(Control c) { if (c is TextBox) …
Sj03rs
  • 937
  • 10
  • 32
4
votes
1 answer

How to set ErrorProvider Icon left for all Controls programmatically

We use derived Form-Classes, with one base form class for our software. On the derived forms we use DataBinding extensively to deal with our BusinessObjects, all implementing IDataErrorInfo, throwing custom error-messages on false inputs to the GUI…
Oliver Friedrich
  • 9,018
  • 9
  • 42
  • 48
4
votes
1 answer

How can I set an errorProvider against ALL invalid form controls when using this.validateChildren()?

Apologies if I'm overlooking something obvious here. Problem Context I have an application which allows the user to fill out a form, the contents of which will be uploaded to a database. When they hit the 'Upload' button, the form must be…
Eilidh
  • 1,270
  • 1
  • 13
  • 33
4
votes
1 answer

C# Winforms PropertyGrid and ErrorProvider

I'm working on extending the errorprovider to the propertygrid and treeview controls. I found a very helpful post at: Example detailing how to add the errorprovider to a propertygrid, and it works very well. My question is how did the author know…
dhysong
  • 1,011
  • 1
  • 14
  • 29
4
votes
6 answers

Form Validation using ErrorProvider and Validating Events

I'm fairly new to using validation. I have a C# winform project that I want to validate a form before closing. However, I only want this validation to occur when I click a button. So I have an event that fires for that like so: if…
ImGreg
  • 2,946
  • 16
  • 43
  • 65
3
votes
1 answer

Is there any issues with having a separate ErrorProvider for each control?

Normally you would have a single ErrorProvider for all the controls on a form; however I have a control that subtypes a textbox that need to show the user an error. I don’t wish to have to put an error provider on every from it may be used on…
Ian Ringrose
  • 51,220
  • 55
  • 213
  • 317
1
2 3 4 5 6 7 8