what code can I use for progress bar in visual basic prog. to work with timer?
539234
Objects >\n1. Timer - Timer1, interval set to 100\n2. Progress Bar - Progressbar1 , min = 0 , max = 100\n\nthen use the following code > \n\n\nPrivate Sub Timer1_Timer()\nIf ProgressBar1.Value = 100 Then\n    Timer1.Enabled = False\n    Exit Sub\nEnd If\nProgressBar1.Value = ProgressBar1.Value + 10\nEnd Sub\n\n\nu can change the timer interval and max of progressbar as according ur need.
142557
you would need a compiler.. I assume your writing a visual basic program..\nThe easiest to do it is to use EXCEL assuming you have excel... You have to look in the macro area in tools bar. There is a visual basic editor!\n\nBut if your planning to program a program*, you can use Microsoft Visual Studio to do so... It costs money thou! GEt an educational copy (free).\n\nThe excel way is free... if you have office excel..
37333
Assuming you are writing your macro in VbScript:\nsResult = Inputbox("Prompt", "Input box title")
678911
Check out the site at http://www.pscode.com - I don't do C++ but I use that site all the time for Visual BASIC stuff I work on.
981523
Sleep is the right answer, but if your code is running on an older server you might have problems.  I use this function when I need to "sleep" code:\n\nFunction GoSleep(seconds)\n   '\n   ' Check the Windows Script Host Version.\n   '\n   wsv = WScript.Version\n   '\n   ' If it's 5.1 or newer, use the built-in Sleep command,\n   ' since it might be more reliable or better-performing.\n   '\n   if wsv >= "5.1" then\n      WScript.Sleep(seconds * 1000)\n   else\n     '\n     ' If the version isn't at least 5.1, use a quick-and-dirty\n     ' method of determining the elapsed time since the function\n     ' was called.\n     '\n     startTime = Time() ' gets the current time\n     endTime = TimeValue(startTime) + TimeValue(elapsed) ' calculates when time is up\n     '\n     ' While the current time is less than the calculated end time, \n     ' add zero to x.\n     '\n     While endTime > Time()\n         '\n         ' If there's nothing in here but a comment, the while\n         ' doesn't seem to process correctly, so we'll just tell  \n         ' VBScript that we need it to let Windows do other things\n         ' for a little while...\n         '\n         DoEvents\n     Wend\n   end if\nEnd Function\n\n\nJust call the function with the number of seconds to wait (GoSleep 10) and no matter what you'll get your pause.\n\nGood Luck!
957919
Write a code to animate the WINDOWS system TASK BAR.\n\nwatch out!!!! those date &time and network status ICONS should not fall down when you animate.
791942
First off, the program you designede in visual, are you running it in another visual basic program or are you importing it into another program.  Second, all you need to do to run the program by single key execution is to set the program to a macro.  For more detailed info go to the help section in visual (or press f1) and type in "macro".  Everything you need should be there.  You can send me a direct e-mail if you have any other issues the help won't help with (flyingrizzly@yahoo)
952409
That is a good question needs a GOOD answer.\nYou have some tools in Excel to do this.\nTry:\n1- View > Toolbars > Forms\nand draw the object you want (Use Checkbox and OptionBox will help you alot)\nRight click on each of these boxes and go to Properties > Control where you can select the way this control controls the action.\nYou can alos use ListBox or ComboBoxes.\n2- You may need some VBA macros to complete the job\n\nI can do alot of these for you, need you to send me more info here in Y! Answers and I can promise I will help\n\nEnjoy my profile, I am the VBAXLMan
325795
I don't think its an option from the menu. Ofcourse, VBA script can be written for that to happen.
799924
A clock/watch; a program
829485
You can use what i did\nUse a formula to devide the time stamp into hours and minutes like this\n=HOUR( B4)-HOUR( A4)+(INT( MINUTE(B4 )-MINUTE(A4)) /60)\nAssuming that A4 has the start time, B4 has the end time.\n\nIf you have two times in differant days, that is another story, mail me here in Y! Answers for it\n\nEnjoy my profile, I am the VBAXLMan
908020
http://www.vb-helper.com/tips7.htm\n\nSorry I don't personally know about VB so I done a search for you\nI hope this helps, :)
1070309
1. Place a Timer control on your form.\n2. Set its Interval property to 1000(for 1 sec., 1000 millisec.), so the Timer(or Tick) event will be called every n\nmilliseconds, determined by the Interval property.\n3. Put this code into the Timer(or Tick) event(first define an Integer variable at the top of the form's code):\n\nIf seconds = <secondstoanswer> Then \nMsgBox("Times up!")\nExit Sub\nEnd If\nseconds = seconds + 1\n\nDiring design, you can set the Timer's Enabled property to False to disable the Timer. To change states(enabled/disabled), use:\n<timername>.Enabled = Not <timername>.Enabled\n\n:)
454838
For existing programs that do this, see PSLIST and ProcessExplorer.  \n\nTo write your own in C++, see this great Code Project article by Ahmed Yassin: http://www.codeproject.com/threads/Tasks.asp\n\nA comment at the end of the article mentions 3 other ways to do it as well:\n\n1. ToolHelp \n2. PSAPI\n3. Read Registry (check platform SDK sample PView)\n4. some function exported by ntdll.dll \n\nAlso see the MSDN help on the functions used in Ahmed's article.\n\nGood luck!
137826
you can always make a vb program that has a timer control on it. set it to raise the timer event every 400 secs. then you can play a wav file or something. you can compile this program into an exe and have it run in your computer all day long. you can even make it everytime you start your computer by placing a shortcut on the start menu > programs > startup folder.\n\nhope this helps...
989888
use this link. \n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=28876&lngWId=1
234455
Try PlanetSourceCode:\n\nhttp://www.planetsourcecode.com/vb/default.asp?lngWId=4