About Seprate Verticall Scroll Bar.... Two Text Boxes  does not work with Vscrollbar ?

Posted on 2003-03-21
Medium Priority
Last Modified: 2010-05-01
  Hello ,,
              i have a problem i want to make  a clock like in the win98 which comes by 2-click on the taskbar icon of the clock. which is made up of only list box .......
            i take two text boxes text1.text and text2.text  and one vertical scrollbar  vscroll in the form...
                 1)   i want that when my focus is on text1.text and then i press vscroollball upward the value should be increased in the text1.text and when focus on the text2.text the value should be increase in the text2.text i struggle alot but no avail i am a new one in this field thank you ...
                 2)    but when i got focus on the other text2.text and press vscroll box does not happen ..........
Question by:Zubair009
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 8185026
why don't you just try using datetimepicker if you want to have clock (hour and minutes) shown ? It got the up and down button where you can select increase or decrease the hour or minute.

Author Comment

ID: 8185964
i am a new one in visual basic tell me how can i use date time picker please tell me .?

Accepted Solution

ayufans earned 160 total points
ID: 8192324
You have to select the proper OCX before you can start using Datetime picker.

Go to the "Project" menu, and select "Components". In the "Controls" tab, look for "Microsoft Windows Common-Controls-2 6.0". Select it (by tick-ing the tick box) and then you'll see quite a number of new VB control appearing on the left side of the VB design view page.

Look for a VB control which name is "DTPicker". Drag or double click them to your form, and there you have it. The DateTimePicker control.

If you want to have the up and down arrow available on the box, simply set the "UpDown" property of the DTPicker to True. You can set the max date and min date of the DTPicker according to your needs.

To change the DTPicker from date to time, you need to adjust the Format properties to "2. dtpTime". And there you have it.

Good Luck

Author Comment

ID: 8193149
than you very much you help me this site is great ......

Expert Comment

ID: 8193226
My pleasure ^_^ If you have any other question, just ask it according to the proper TA (Topic Area), I'm sure there's a lot of people out there who can help you.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question