アクティブなレポートのテキスト ボックスの背景にグラデーション カラーを適用したいと考えています。このために、グラフィックを使用し、次のコードを使用します。
Dim a As New System.Drawing.Drawing2D.LinearGradientBrush(New RectangleF(0, 0, Me.Width, Me.Height), color1, color2, mode)
Dim g As Graphics = Me.CreateGraphics
g.FillRectangle(a, New RectangleF(0, 0, Me.Width, Me.Height))
g.Dispose()
フォームではうまく機能しますが、レポートでは Me.CreateGraphics で Graphics のオブジェクトを取得できません。提案してください