Click here to Skip to main content
15,893,994 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to load wmf image Pin
Spejlo18-Aug-07 10:07
Spejlo18-Aug-07 10:07 
GeneralRe: How to load wmf image Pin
Luc Pattyn18-Aug-07 10:15
sitebuilderLuc Pattyn18-Aug-07 10:15 
GeneralRe: How to load wmf image Pin
Spejlo18-Aug-07 10:27
Spejlo18-Aug-07 10:27 
GeneralRe: How to load wmf image Pin
Luc Pattyn18-Aug-07 11:19
sitebuilderLuc Pattyn18-Aug-07 11:19 
GeneralRe: How to load wmf image Pin
Christian Graus18-Aug-07 11:30
protectorChristian Graus18-Aug-07 11:30 
GeneralRe: How to load wmf image Pin
Luc Pattyn18-Aug-07 11:46
sitebuilderLuc Pattyn18-Aug-07 11:46 
GeneralRe: How to load wmf image Pin
Christian Graus18-Aug-07 12:36
protectorChristian Graus18-Aug-07 12:36 
GeneralRe: How to load wmf image [modified] Pin
John Andrew19-Aug-07 13:36
John Andrew19-Aug-07 13:36 
To load an image, set the PictureBox's Image property to a new Bitmap object initialized by the image file's name.


' Load a file.
Private Sub mnuFileOpen_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
mnuFileOpen.Click
If dlgOpen.ShowDialog() = DialogResult.OK Then
picImage.Image = New Bitmap(dlgOpen.FileName)
Me.Width = picImage.Width + Me.Width - _
Me.ClientSize.Width
Me.Height = picImage.Height + Me.Height - _
Me.ClientSize.Height

Dim file_name As String = dlgOpen.FileName
file_name = _
file_name.Substring(file_name.LastIndexOf("\") _
+ 1)
Me.Text = "[" & file_name & "]"

dlgSave.FileName = dlgOpen.FileName
End If
End Sub

http://www.thehitcounters.com
Free Hit Counter, Website Counters by The Hit Counters

Custom Logo Design Services by http://www.thebusinesslogo.com

modified on Wednesday, May 6, 2009 6:16 AM

GeneralRe: How to load wmf image Pin
Luc Pattyn19-Aug-07 13:48
sitebuilderLuc Pattyn19-Aug-07 13:48 
AnswerRe: How to load wmf image Pin
Christian Graus18-Aug-07 11:30
protectorChristian Graus18-Aug-07 11:30 
AnswerRe: How to load wmf image Pin
Luc Pattyn18-Aug-07 11:54
sitebuilderLuc Pattyn18-Aug-07 11:54 
GeneralRe: How to load wmf image [modified] Pin
Spejlo18-Aug-07 21:52
Spejlo18-Aug-07 21:52 
GeneralRe: How to load wmf image Pin
Luc Pattyn19-Aug-07 0:33
sitebuilderLuc Pattyn19-Aug-07 0:33 
QuestionHow to relate two tables in different data base Pin
Ashish Kumar Vyas18-Aug-07 4:13
Ashish Kumar Vyas18-Aug-07 4:13 
AnswerRe: How to relate two tables in different data base Pin
green2go18-Aug-07 13:35
green2go18-Aug-07 13:35 
QuestionDataGridView 2.0 [modified] Pin
Taylor Kobani18-Aug-07 2:34
Taylor Kobani18-Aug-07 2:34 
Questionhow to write ms word file using rtf formated data Pin
Salman Sheikh18-Aug-07 2:08
Salman Sheikh18-Aug-07 2:08 
AnswerRe: how to write ms word file using rtf formated data Pin
Paul Conrad18-Aug-07 3:30
professionalPaul Conrad18-Aug-07 3:30 
GeneralRe: how to write ms word file using rtf formated data Pin
Salman Sheikh20-Aug-07 1:29
Salman Sheikh20-Aug-07 1:29 
AnswerRe: how to write ms word file using rtf formated data Pin
Jwalant Natvarlal Soneji21-Aug-07 18:13
Jwalant Natvarlal Soneji21-Aug-07 18:13 
QuestionHow to use a kind or array of file path? Pin
Jwalant Natvarlal Soneji18-Aug-07 0:31
Jwalant Natvarlal Soneji18-Aug-07 0:31 
AnswerRe: How to use a kind or array of file path? [modified] Pin
Luc Pattyn18-Aug-07 0:39
sitebuilderLuc Pattyn18-Aug-07 0:39 
QuestionRe: How to use a kind or array of file path? Pin
Jwalant Natvarlal Soneji18-Aug-07 0:42
Jwalant Natvarlal Soneji18-Aug-07 0:42 
AnswerRe: How to use a kind or array of file path? Pin
Christian Graus18-Aug-07 0:46
protectorChristian Graus18-Aug-07 0:46 
AnswerRe: How to use a kind or array of file path? Pin
Luc Pattyn18-Aug-07 0:50
sitebuilderLuc Pattyn18-Aug-07 0:50 

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.