473,770 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make a bmp turn on and off

EN
Hi, I want to put a bmp of a toggle switch leaning
to the left, the off position. With a painter prgm,
flip the left toggle , lean right, for ON or Start
position. How do I do this?
With VB 6 , ot the left are 2 columns of clickable
icons, Pointer, PictureBox, Label, Textbox, etc
Which of these do I use to make an ON or ENABLE
sending data bits and a STOP, or Disable data bits.

thanks
Ed
Jul 17 '05 #1
3 5078
In response to the post:
On Wed, 20 Apr 2005 00:23:08 GMT, "EN" <re******@earth link.net>
stated...and I replied:
Hi, I want to put a bmp of a toggle switch leaning
to the left, the off position. With a painter prgm,
flip the left toggle , lean right, for ON or Start
position. How do I do this?
With VB 6 , ot the left are 2 columns of clickable
icons, Pointer, PictureBox, Label, Textbox, etc
Which of these do I use to make an ON or ENABLE
sending data bits and a STOP, or Disable data bits.

thanks
Ed


How about just using 2 bmp's? One with the toggle to the left, one to
the right (On & Off). Then switch them each time the button is
clicked.

I've done this with a Gender specification button. A pink girl button
and a blue man button.

Shell
Jul 17 '05 #2
EN

"Shell" <dr*****@mindsp ring.com> wrote in message
news:n9******** *************** *********@4ax.c om...
In response to the post:
On Wed, 20 Apr 2005 00:23:08 GMT, "EN" <re******@earth link.net>
stated...and I replied:
Hi, I want to put a bmp of a toggle switch leaning
to the left, the off position. With a painter prgm,
flip the left toggle , lean right, for ON or Start
position. How do I do this?
With VB 6 , ot the left are 2 columns of clickable
icons, Pointer, PictureBox, Label, Textbox, etc
Which of these do I use to make an ON or ENABLE
sending data bits and a STOP, or Disable data bits.
thanks
Ed
How about just using 2 bmp's? One with the toggle to the left, one to
the right (On & Off). Then switch them each time the button is
clicked.
I've done this with a Gender specification button. A pink girl button
and a blue man button.

Shell


Yeah, that's what I want to do. What I did so far was use a CommandButton.
In the properties, named it as Start / Stop, Style = 1 graphical , Picture
is
Toggle.Off.bmp I made 2 bmps ; Toggle.Off.bmp and Toggle.On.bmp.
I tried DownPicture, but that only worked when the left mouse button was
clicked down. The picture disappeared when the mouse button was
released, not what I want. Ok. So how do I do this?

cya
Ed
Jul 17 '05 #3
EN

"EN" <re******@earth link.net> wrote in message
news:G5******** *********@newsr ead3.news.atl.e arthlink.net...

"Shell" <dr*****@mindsp ring.com> wrote in message
news:n9******** *************** *********@4ax.c om...
In response to the post:
On Wed, 20 Apr 2005 00:23:08 GMT, "EN" <re******@earth link.net>
stated...and I replied:
Hi, I want to put a bmp of a toggle switch leaning
to the left, the off position. With a painter prgm,
flip the left toggle , lean right, for ON or Start
position. How do I do this?
With VB 6 , ot the left are 2 columns of clickable
icons, Pointer, PictureBox, Label, Textbox, etc
Which of these do I use to make an ON or ENABLE
sending data bits and a STOP, or Disable data bits.
thanks
Ed
How about just using 2 bmp's? One with the toggle to the left, one to
the right (On & Off). Then switch them each time the button is
clicked.
I've done this with a Gender specification button. A pink girl button
and a blue man button.

Shell


Yeah, that's what I want to do. What I did so far was use a

CommandButton. In the properties, named it as Start / Stop, Style = 1 graphical , Picture
is
Toggle.Off.bmp I made 2 bmps ; Toggle.Off.bmp and Toggle.On.bmp.
I tried DownPicture, but that only worked when the left mouse button was
clicked down. The picture disappeared when the mouse button was
released, not what I want. Ok. So how do I do this?

cya
Ed

I got it. Checkbox. Properties. Picture = Toggle.Off.bmp
DownPicture = Toggle.On.bmp Style = Graphical

thanks
Ed
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
3415
by: takashi | last post by:
Hi, I have a question. I am learning about how to use c++ language. I have attempted to make my own programs, using the knowledge that I have, but sometimes when I get stuck on writing a code, it took me a long time to figure out what I should do. For instance, I was writing a program which tells you all the prime numbers that are less than the number you input on the console. It was a very short program, but it took me a while to write...
5
4309
by: lawrence | last post by:
Here is a script that is suppose to turn the DIV tag "optionalDiv" visible on click. This works fine on a PC (IE and Netscape both I think) but not on a Mac. Why? <script language="javascript"> document.getElementById('optionalDiv').style.visibility='hidden';
35
4830
by: THOR88 | last post by:
IS THEIR A JAVER SCRIPT THAT WILL RITE SEIG HIEL 88 TIMES ON MY E-MALES???IF NOT CAN YUO RITE ONE PLEASE???
4
1467
by: hufel | last post by:
Hi, I'm doing my first big project in C# and I'm stuck with a problem that I believe has a simple and efficient solution for it (I just haven't bumped into it yet...). The concept is the following: //Users manage clients. When the system creates the client it must fetch the information from the DB and allow some modifications: Client client = new Client("test"); MasterAccount ma = new MasterAccount(1324651);
18
1788
by: MLH | last post by:
I have an A97 app that automatically sends eMail using OutLook Express. Each installation requires the user to reconfigure Outlook Express to avoid prompts waiting for them to authorize or deny the email SEND attempts. Theygo to the main Outlook Express window and click Tools, Options. A smaller window opens and they click its 'Security' tab. Then they UNCHECK the box that says "Warn me when other applications try to send mail as me."...
2
1580
by: graeme34 via AccessMonster.com | last post by:
Hi I was wondering if there was any way of making the windows for the currently opened objects in access invisible on the bottom toolbar. Iam using Access 2003 also is it possible to turn of the right click facility on the mouse to prevent the user from getting into the 'background' of Access?? Thank you. -- Message posted via http://www.accessmonster.com
7
2701
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about the goals -- the make statement is mostly syntactic sugar for:: class <name> <tuple>: __metaclass__ = <callable>
10
2445
by: AA Arens | last post by:
I do have a database with customer info in it. To avoid it will be taken out of our office, is it possible to make it not-readable after a certain period? then every let say seven days, I needs to "extend the license", so it will last another week. It consists of queries, forms, and tables, format Access 2003. Bart
27
13811
by: MLH | last post by:
How can I turn the following into a make-table query? SELECT & " " & AS Recipient FROM tblVehicleJobs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs.VehicleJobID = tblAddnlOwnrs.VehicleJobID WHERE tblVehicleJobs.VehicleJobID=GetCurrentVehicleJobID(); UNION SELECT AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs.VehicleJobID = tblLienHolders.VehicleJobID WHERE
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.