Click here to Skip to main content
15,913,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralError Handler Pin
nishkarsh_k18-Dec-07 18:49
nishkarsh_k18-Dec-07 18:49 
GeneralRe: Error Handler Pin
MohammadAmiry18-Dec-07 19:16
MohammadAmiry18-Dec-07 19:16 
GeneralRe: Error Handler Pin
Nilesh Hapse18-Dec-07 19:17
Nilesh Hapse18-Dec-07 19:17 
GeneralRe: Error Handler Pin
Christian Graus18-Dec-07 20:11
protectorChristian Graus18-Dec-07 20:11 
Generalhi Pin
mon***z18-Dec-07 18:40
mon***z18-Dec-07 18:40 
GeneralRe: hi Pin
Ajay.k_Singh18-Dec-07 19:10
Ajay.k_Singh18-Dec-07 19:10 
GeneralRe: hi Pin
MohammadAmiry18-Dec-07 19:25
MohammadAmiry18-Dec-07 19:25 
Generalpicture box Pin
BOREC18-Dec-07 15:48
BOREC18-Dec-07 15:48 
Hello!

1)How can I reset the picturebox so it doesn't show a picture in it.

I have a code that show a picture from a certain file path in it.

Private Sub Button1_Click(..)
PictureBox1.Image = System.Drawin.Bitmap.FromFile("C:\...\PICTURES\IMAGE1.jpg ")
EndSub

I want to create a new Button that shows no image in PicureBox1?

2) I also wanted to ask how can I make local file path ( I want my program that it always looks for a certain picture in a subfolder PICTURES of parent folder PROGRAM ( ...\PROGRAM\PICTURES\ ). Now I use absolute file path and it is very usefull.

Now I use this string:

PictureBox1.Image = System.Drawin.Bitmap.FromFile("C:\..\PICTURES\IMAGE1.jpg" )<-- I want to
replace this path in brackets.

3) And I want to write a code for writing a list of file names in a specific folder like PICTURES:

Dim FileName As String

For Each FileName In My.Computer.Filesystem.GetFiles("C:\...\PICTURES\"
ListBox1.Items.Add(FileName)
Next

That's allConfused | :confused:
GeneralRe: picture box Pin
Luc Pattyn18-Dec-07 16:14
sitebuilderLuc Pattyn18-Dec-07 16:14 
General... Pin
BOREC18-Dec-07 20:07
BOREC18-Dec-07 20:07 
GeneralRe: ... Pin
Luc Pattyn19-Dec-07 5:10
sitebuilderLuc Pattyn19-Dec-07 5:10 
Questionwhat is this? Pin
hassanasp18-Dec-07 12:49
hassanasp18-Dec-07 12:49 
AnswerRe: what is this? Pin
Colin Angus Mackay18-Dec-07 13:03
Colin Angus Mackay18-Dec-07 13:03 
GeneralDock/float tab pages Pin
cstrader23218-Dec-07 11:01
cstrader23218-Dec-07 11:01 
QuestionLooping through database columns [modified] Pin
craigmg7818-Dec-07 5:55
craigmg7818-Dec-07 5:55 
GeneralRe: Looping through database columns Pin
nishkarsh_k18-Dec-07 18:31
nishkarsh_k18-Dec-07 18:31 
GeneralRe: Looping through database columns Pin
craigmg7819-Dec-07 5:27
craigmg7819-Dec-07 5:27 
GeneralWindows Service - timer tick event not firing. Pin
Steven J Jowett18-Dec-07 5:08
Steven J Jowett18-Dec-07 5:08 
GeneralRe: Windows Service - timer tick event not firing. Pin
m@u18-Dec-07 5:57
m@u18-Dec-07 5:57 
GeneralRe: Windows Service - timer tick event not firing. Pin
DigiOz Multimedia18-Dec-07 15:39
DigiOz Multimedia18-Dec-07 15:39 
QuestionMy break point not working properly Pin
poonams18-Dec-07 1:58
poonams18-Dec-07 1:58 
GeneralRe: My break point not working properly Pin
John_Adams18-Dec-07 11:25
John_Adams18-Dec-07 11:25 
GeneralRe: My break point not working properly Pin
Nilesh Hapse18-Dec-07 19:14
Nilesh Hapse18-Dec-07 19:14 
GeneralRe: My break point not working properly Pin
poonams19-Dec-07 1:37
poonams19-Dec-07 1:37 
GeneralImage Class in vb.net 2005 Pin
VB 8.018-Dec-07 1:24
VB 8.018-Dec-07 1:24 

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.