Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > How to re-paint MDI image background
 

How to re-paint MDI image background

Hi all,

I have a MDI with an image background.
The property BackgroundImageLayout = Stretch

My problem is that when I resize the MDI the image don´t is resized together.

How do I force this re-paint ?

Thanks in advanced,

Edson Nilo
Edson Nilo  Wednesday, September 23, 2009 8:30 PM

Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
Me.Refresh()
End Sub

Should do the job :-)


Thanks

â™?My Blog â™?My Flickr â™?My Facebook â™?YOUR Place to have fun time !
Omie  Thursday, September 24, 2009 10:11 AM
Thanks Omie,

It is what i´m looking for.

Edson
  • Marked As Answer byEdson Nilo Friday, September 25, 2009 9:39 PM
  •  
Edson Nilo  Friday, September 25, 2009 9:39 PM

Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
Me.Refresh()
End Sub

Should do the job :-)


Thanks

â™?My Blog â™?My Flickr â™?My Facebook â™?YOUR Place to have fun time !
Omie  Thursday, September 24, 2009 10:11 AM
Thanks Omie,

It is what i´m looking for.

Edson
  • Marked As Answer byEdson Nilo Friday, September 25, 2009 9:39 PM
  •  
Edson Nilo  Friday, September 25, 2009 9:39 PM

You can use google to search for other answers

Custom Search

More Threads

• Exception overriding an editor cell in a DataGridViewRow
• Displaying custom values in the cell
• dataset count rows where?
• Simple ADO.NET 2.0 Application: Prompting the user to SAVE his changes before exiting...
• Binding XML file to Datagridview
• Rowvalidating event e.Cancel Hangs
• SelectNextControl & GetNextControl methods of a control
• Relation between 2 DataGridView
• How to bind a DataGridViewComboBoxColumn to an object rather than a value!
• cashe machine