137 references to Paint
System.Windows.Forms (27)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1283
add => base.
Paint
+= value;
1284
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
549
add => base.
Paint
+= value;
550
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1226
add => base.
Paint
+= value;
1227
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2134
add => base.
Paint
+= value;
2135
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
1061
add => base.
Paint
+= value;
1062
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
547
add => base.
Paint
+= value;
548
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
913
add => base.
Paint
+= value;
914
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1417
add => base.
Paint
+= value;
1418
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
735
control.
Paint
+= HandlePaint;
780
control.
Paint
-= HandlePaint;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
682
add => base.
Paint
+= value;
683
remove => base.
Paint
-= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1458
add => base.
Paint
+= value;
1459
remove => base.
Paint
-= value;
System\Windows\Forms\Panels\Panel.cs (1)
15
[DefaultEvent(nameof(
Paint
))]
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
11
/// Provides data for the <see cref="Control.
Paint
"/> event.
System\Windows\Forms\Rendering\PaintEventHandler.cs (1)
7
/// Represents a method that will handle the <see cref="Control.
Paint
"/> event of a <see cref="Control"/> class.
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
400
add => base.
Paint
+= value;
401
remove => base.
Paint
-= value;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1494
MenuItem.DropDown.
Paint
+= DropDownPaint;
2588
MenuItem.DropDown.
Paint
-= DropDownPaint;
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ByteViewerTests.cs (8)
439
control.
Paint
+= handler;
445
control.
Paint
-= handler;
490
control.
Paint
+= handler;
499
control.
Paint
-= handler;
525
control.
Paint
+= handler;
531
control.
Paint
-= handler;
565
control.
Paint
+= handler;
574
control.
Paint
-= handler;
System.Windows.Forms.Tests (95)
System\Windows\Forms\ButtonTests.cs (4)
3382
control.
Paint
+= (sender, e) => paintCallCount++;
3421
control.
Paint
+= (sender, e) => paintCallCount++;
3462
control.
Paint
+= (sender, e) => paintCallCount++;
3494
control.
Paint
+= (sender, e) => paintCallCount++;
System\Windows\Forms\ControlTests.Handlers.cs (19)
3824
control.
Paint
+= handler;
3829
control.
Paint
-= handler;
3872
control.
Paint
+= handler;
3878
control.
Paint
-= handler;
4006
control.
Paint
+= handler;
4007
parent.
Paint
+= parentHandler;
4014
control.
Paint
-= handler;
4015
parent.
Paint
-= parentHandler;
4051
control.
Paint
+= handler;
4060
control.
Paint
-= handler;
4144
control.
Paint
+= handler;
4145
parent.
Paint
+= parentHandler;
4155
control.
Paint
-= handler;
4156
parent.
Paint
-= parentHandler;
4634
control.
Paint
+= (sender, e) => paintCallCount++;
4649
control.
Paint
+= (sender, e) =>
4692
control.
Paint
+= (sender, e) => paintCallCount++;
4710
control.
Paint
+= (sender, e) =>
4748
control.
Paint
+= (sender, e) =>
System\Windows\Forms\ControlTests.Methods.cs (20)
4286
control.
Paint
+= handler;
4287
otherControl.
Paint
+= otherHandler;
4293
control.
Paint
-= handler;
4294
otherControl.
Paint
-= otherHandler;
4338
control.
Paint
+= handler;
4339
otherControl.
Paint
+= otherHandler;
4340
otherControlParent.
Paint
+= otherParentHandler;
4347
control.
Paint
-= handler;
4348
otherControl.
Paint
-= otherHandler;
4349
otherControlParent.
Paint
-= otherParentHandler;
12864
control.
Paint
+= (sender, e) => paintCallCount++;
12900
control.
Paint
+= (sender, e) => paintCallCount++;
12952
control.
Paint
+= (sender, e) => paintCallCount++;
12995
control.
Paint
+= (sender, e) => paintCallCount++;
13187
control.
Paint
+= (sender, e) => paintCallCount++;
13210
control.
Paint
+= (sender, e) => paintCallCount++;
13242
control.
Paint
+= (sender, e) => paintCallCount++;
13282
control.
Paint
+= (sender, e) => paintCallCount++;
13312
control.
Paint
+= (sender, e) => paintCallCount++;
13352
control.
Paint
+= (sender, e) => paintCallCount++;
System\Windows\Forms\GroupBoxTests.cs (6)
1871
control.
Paint
+= handler;
1877
control.
Paint
-= handler;
1917
control.
Paint
+= handler;
1926
control.
Paint
-= handler;
2186
control.
Paint
+= (sender, e) => paintCallCount++;
2231
control.
Paint
+= (sender, e) => paintCallCount++;
System\Windows\Forms\PictureBoxTests.cs (4)
2471
control.
Paint
+= handler;
2476
control.
Paint
-= handler;
2599
control.
Paint
+= handler;
2604
control.
Paint
-= handler;
System\Windows\Forms\ScrollableControlTests.cs (12)
1552
control.
Paint
+= handler;
1558
control.
Paint
-= handler;
1709
control.
Paint
+= handler;
1710
parent.
Paint
+= parentHandler;
1717
control.
Paint
-= handler;
1718
parent.
Paint
-= parentHandler;
1758
control.
Paint
+= handler;
1767
control.
Paint
-= handler;
1860
control.
Paint
+= handler;
1861
parent.
Paint
+= parentHandler;
1871
control.
Paint
-= handler;
1872
parent.
Paint
-= parentHandler;
System\Windows\Forms\StatusStripTests.cs (2)
1228
control.
Paint
+= handler;
1234
control.
Paint
-= handler;
System\Windows\Forms\TableLayoutPanelTests.cs (4)
1451
control.
Paint
+= handler;
1458
control.
Paint
-= handler;
1521
control.
Paint
+= handler;
1528
control.
Paint
-= handler;
System\Windows\Forms\TabPageTests.cs (8)
3994
control.
Paint
+= handler;
4000
control.
Paint
-= handler;
4082
control.
Paint
+= handler;
4090
control.
Paint
-= handler;
4127
control.
Paint
+= handler;
4136
control.
Paint
-= handler;
4228
control.
Paint
+= handler;
4239
control.
Paint
-= handler;
System\Windows\Forms\ToolStripTests.cs (12)
5893
control.
Paint
+= handler;
5899
control.
Paint
-= handler;
6049
control.
Paint
+= handler;
6050
parent.
Paint
+= parentHandler;
6057
control.
Paint
-= handler;
6058
parent.
Paint
-= parentHandler;
6098
control.
Paint
+= handler;
6107
control.
Paint
-= handler;
6199
control.
Paint
+= handler;
6200
parent.
Paint
+= parentHandler;
6210
control.
Paint
-= handler;
6211
parent.
Paint
-= parentHandler;
System\Windows\Forms\UpDownBaseTests.cs (4)
2265
control.
Paint
+= handler;
2271
control.
Paint
-= handler;
2309
control.
Paint
+= handler;
2318
control.
Paint
-= handler;
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
570
form.
Paint
+= OnThrottledInteraction;
584
form.
Paint
-= OnThrottledInteraction;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
1396
add { base.
Paint
+= value; }
1397
remove { base.
Paint
-= value; }
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
55
control.
Paint
+= (sender, e) => DrawRoundBorder((Control)sender, e.Graphics);