Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Visual Basic 6 Pin
Christian Graus1-Dec-09 7:44
protectorChristian Graus1-Dec-09 7:44 
GeneralRe: Visual Basic 6 Pin
Dave Kreskowiak1-Dec-09 8:42
mveDave Kreskowiak1-Dec-09 8:42 
GeneralRe: Visual Basic 6 Pin
goldenrose91-Dec-09 8:42
goldenrose91-Dec-09 8:42 
GeneralRe: Visual Basic 6 Pin
EliottA1-Dec-09 9:45
EliottA1-Dec-09 9:45 
GeneralRe: Visual Basic 6 Pin
Dave Kreskowiak1-Dec-09 10:53
mveDave Kreskowiak1-Dec-09 10:53 
QuestionDecryption Pin
Pasan1481-Dec-09 4:12
Pasan1481-Dec-09 4:12 
AnswerRe: Decryption Pin
Dave Kreskowiak1-Dec-09 5:44
mveDave Kreskowiak1-Dec-09 5:44 
QuestionMDI BackgroundImage drawing issues Pin
EliottA1-Dec-09 3:22
EliottA1-Dec-09 3:22 
First, this is a repost. I received no answers from my previous query, and I feel it might have been due to my poor explanation of the scenario.

Scenario: I have made an MDI application. My main form has a flowlayoutpanel docked to the left (menu) and a panel docked to the top (header). My menu can be collapsed or expanded off a button click. The reason for this is to allow more content area (workspace) for forms that are loaded. As you know, the default backcolor for a MDI parent is a deep grey, which just looks horrible.

All this functionality works great. The last piece was having a background image on the workspace, which was simple enough. Set a BackgroundImage. This is done with the following code:

Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch


Works fine, but when the menu is collapsed, the background image is not redrawn so there appears to be the same image twice by overlapping. The background image is redrawn perfectly when the main application is minimized then maximized, or you move a form over the entire working area that has a backgroundimage and it is magically repainted.

Is there some property or technique needed to force this repaint on any given particular event?


AnswerRe: MDI BackgroundImage drawing issues Pin
Dave Kreskowiak1-Dec-09 4:29
mveDave Kreskowiak1-Dec-09 4:29 
GeneralRe: MDI BackgroundImage drawing issues Pin
EliottA1-Dec-09 4:56
EliottA1-Dec-09 4:56 
GeneralRe: MDI BackgroundImage drawing issues Pin
Dave Kreskowiak1-Dec-09 5:21
mveDave Kreskowiak1-Dec-09 5:21 
GeneralRe: MDI BackgroundImage drawing issues Pin
EliottA1-Dec-09 6:09
EliottA1-Dec-09 6:09 
GeneralRe: MDI BackgroundImage drawing issues Pin
EliottA8-Dec-09 8:27
EliottA8-Dec-09 8:27 
QuestionHelp desperately needed with Uni assignment! Pin
benducky1-Dec-09 1:30
benducky1-Dec-09 1:30 
AnswerRe: Help desperately needed with Uni assignment! Pin
DaveAuld1-Dec-09 1:43
professionalDaveAuld1-Dec-09 1:43 
AnswerRe: Help desperately needed with Uni assignment! Pin
Ashfield1-Dec-09 1:44
Ashfield1-Dec-09 1:44 
AnswerRe: Help desperately needed with Uni assignment! Pin
Luc Pattyn1-Dec-09 1:46
sitebuilderLuc Pattyn1-Dec-09 1:46 
AnswerRe: Help desperately needed with Uni assignment! Pin
The Man from U.N.C.L.E.1-Dec-09 2:24
The Man from U.N.C.L.E.1-Dec-09 2:24 
AnswerRe: Help desperately needed with Uni assignment! Pin
Richard MacCutchan1-Dec-09 2:38
mveRichard MacCutchan1-Dec-09 2:38 
AnswerRe: Help desperately needed with Uni assignment! Pin
Thomas Duwe2-Dec-09 4:12
Thomas Duwe2-Dec-09 4:12 
QuestionCall Console Application from ASP.NET Pin
she-Developer30-Nov-09 23:40
she-Developer30-Nov-09 23:40 
AnswerRe: Call Console Application from ASP.NET Pin
Ashfield1-Dec-09 0:14
Ashfield1-Dec-09 0:14 
AnswerRe: Call Console Application from ASP.NET Pin
Dave Kreskowiak1-Dec-09 2:20
mveDave Kreskowiak1-Dec-09 2:20 
GeneralRe: Call Console Application from ASP.NET Pin
she-Developer1-Dec-09 2:53
she-Developer1-Dec-09 2:53 
QuestionVB 2008 Express App install wants to install unnecessary components Pin
nhsal6930-Nov-09 21:43
nhsal6930-Nov-09 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.