Get quote & make Payment
Switch 2 images, Visual Basic Programming
I have a problem with Visual Basic:
exchangeable 2 images of place I have 2 picturebox''s placed a button
when I click on the button, the 2 pictures of this place change with every click.
My code is: Public Class Form1
Dim photo1, photo2 As Boolean
Private Sub Form1_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Foto1 Dim As New Bitmap ("C: \ Users \ Anthony \ Dropbox \ VB \ 08 - shift algorithm \ wisselalgoritme/foto1.jpg")
PictureBox1.Image = photo1
PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
Foto2 Dim As New Bitmap ("C: \ Users \ Anthony \ Dropbox \ VB \ 08 - shift algorithm \ wisselalgoritme/foto3.jpg")
PictureBox2.Image = foto2
PictureBox2.SizeMode = PictureBoxSizeMode.StretchImage
Private Sub BtnSwitch_Click (sender As System.Object, e As System.EventArgs) Handles BtnSwitch.Click
If PictureBox1.Left = Me.Width Then
PictureBox1.Left PictureBox1.Left = + 300
PictureBox1.Left PictureBox1.Left = - 300
If PictureBox2.Left = Me.Width Then
PictureBox2.Left PictureBox2.Left = - 300
PictureBox2.Left PictureBox2.Left = + 300
can you help me please?
Posted Date: 10/14/2012 12:02:59 PM | Location : United States
Ask an Expert
Switch 2 images, Assignment Help, Ask Question on Switch 2 images, Get Answer, Expert's Help, Switch 2 images Discussions
Write discussion on Switch 2 images
Your posts are moderated
Write your message here..
Sub and function procedures in code, In your code A, Function has to always...
In your code A, Function has to always be used on the right side of a variable assignment or in an expression. For illustration: Temp = Celsius(fDegrees) or Msg Box "The C
XML document, Write a XML with database with book details (BOOK ID, Title, ...
Write a XML with database with book details (BOOK ID, Title, Author, subject, published Year, language, vendor, price)
How to, need general help in pseudo code
need general help in pseudo code
Tab order - dialog, Tab Order: The tab order stands for the order in w...
Tab Order: The tab order stands for the order in which the controls receive focus when the user clicks the tab key. The CTRL + D can be used to set the tab order of controls.
Hierarchy of operation, what are the functions and the importance of hierar...
what are the functions and the importance of hierarchy operators
Objective of vb script, The objective of this unit is to describe the basic...
The objective of this unit is to describe the basics of VBScript. After completing this unit, you will be capable to write code for Web pages via VBScript. You will be able to unde
Making decisions with select case, The Select Case structure provides an op...
The Select Case structure provides an option to If...Then...Else If for selectively executing one block of statements from amongst multiple blocks of statements. Any Select Case st
Files in a visual basic project, FILES IN A VB PROJECT The project file...
FILES IN A VB PROJECT The project file has the.vbp extension. The form in which we draw has the .frm extension; .mod denotes the module file; .cls denotes the class file; .res
Precompiled header file, THE PRECOMPILED HEADER FILE As soon as you gen...
THE PRECOMPILED HEADER FILE As soon as you generate a blank project, ahead of doing any coding you compile the project to generate .pch (that is the pre compiled header) file a
Program for elevator application, You are given a console program in both V...
You are given a console program in both VB and C# that uses a class CElevator (ElevatorAppAssign). The main modules are in the assign directory class files. Below is a discus
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
IT Courses and Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.