Click here to Skip to main content
15,895,011 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Data grid with check boxes Pin
Syed Abdul Khader10-May-04 22:49
Syed Abdul Khader10-May-04 22:49 
Generalneed some help making a bitmap appear Pin
kowplunk10-May-04 16:19
kowplunk10-May-04 16:19 
GeneralRe: need some help making a bitmap appear Pin
Christian Graus10-May-04 16:57
protectorChristian Graus10-May-04 16:57 
GeneralRe: need some help making a bitmap appear Pin
kowplunk10-May-04 17:08
kowplunk10-May-04 17:08 
GeneralRe: need some help making a bitmap appear Pin
Christian Graus10-May-04 17:10
protectorChristian Graus10-May-04 17:10 
GeneralRe: need some help making a bitmap appear Pin
kowplunk10-May-04 17:14
kowplunk10-May-04 17:14 
GeneralRe: need some help making a bitmap appear Pin
kowplunk11-May-04 2:46
kowplunk11-May-04 2:46 
GeneralRe: need some help making a bitmap appear Pin
Dave Kreskowiak11-May-04 3:48
mveDave Kreskowiak11-May-04 3:48 
Well, your trying to paint a picture as the background of a form. When the form is painted, your picture is being painted, but then it is painted over by the BackgroundColor and then the BackgroundImage. Your picture will never be seen. Change the code a little bit and it'll work:
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
    Dim bitmap As New Bitmap(OpenFileDialog1.FileName)
    'Dim gr As Graphics = Me.CreateGraphics
    'gr.DrawImage(bitmap, 0, 0)
    Me.BackgroundImage = bitmap
    'bitmap.Dispose()
    'gr.Dispose()
End If


RageInTheMachine9532
GeneralRe: need some help making a bitmap appear Pin
kowplunk11-May-04 4:43
kowplunk11-May-04 4:43 
GeneralRe: need some help making a bitmap appear Pin
Dave Kreskowiak11-May-04 5:59
mveDave Kreskowiak11-May-04 5:59 
GeneralRe: need some help making a bitmap appear Pin
kowplunk11-May-04 9:47
kowplunk11-May-04 9:47 
GeneralColumn Header Color change in a datagrid Pin
ximox10-May-04 10:59
ximox10-May-04 10:59 
GeneralRe: Column Header Color change in a datagrid Pin
Syed Abdul Khader10-May-04 22:16
Syed Abdul Khader10-May-04 22:16 
Generalcreating a frame on a form using codes Pin
gen2310-May-04 6:47
gen2310-May-04 6:47 
GeneralRe: creating a frame on a form using codes Pin
Dave Kreskowiak10-May-04 10:47
mveDave Kreskowiak10-May-04 10:47 
GeneralMIME Email Decoding from raw POP3 Retrieval Pin
Greg Eales10-May-04 3:27
Greg Eales10-May-04 3:27 
GeneralProblems while reading German umlaut with xml-reader Pin
Highli9-May-04 20:27
Highli9-May-04 20:27 
Generalnoobie-Need help with Retriving data from Excel Pin
Dreadlord9-May-04 13:45
Dreadlord9-May-04 13:45 
GeneralRe: noobie-Need help with Retriving data from Excel Pin
RichardGrimmer10-May-04 1:09
RichardGrimmer10-May-04 1:09 
GeneralScreen Update Problem in windows 2000 Pin
nvmoss9-May-04 11:20
nvmoss9-May-04 11:20 
GeneralRe: Screen Update Problem in windows 2000 Pin
Dave Kreskowiak9-May-04 15:58
mveDave Kreskowiak9-May-04 15:58 
GeneralRe: Screen Update Problem in windows 2000 Pin
nvmoss10-May-04 1:55
nvmoss10-May-04 1:55 
GeneralRe: Screen Update Problem in windows 2000 Pin
Dave Kreskowiak11-May-04 0:53
mveDave Kreskowiak11-May-04 0:53 
QuestionDo you know what this ASCII character is? Pin
taylo9-May-04 10:55
taylo9-May-04 10:55 
AnswerRe: Do you know what this ASCII character is? Pin
Dave Kreskowiak9-May-04 15:57
mveDave Kreskowiak9-May-04 15:57 

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.