Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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

  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 ..........
0
Zubair009
Asked:
Zubair009
  • 3
  • 2
1 Solution
 
ayufansCommented:
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.
0
 
Zubair009Author Commented:
i am a new one in visual basic tell me how can i use date time picker please tell me .?
0
 
ayufansCommented:
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
0
 
Zubair009Author Commented:
than you very much you help me this site is great ......
0
 
ayufansCommented:
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.

Cheers.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now