How To Write A Program Which Gives The Sunrise & Sunset Time For A Particular Place
Aug 5, 2009how to write a program to get the Sunrise & sunset Times?
I know only VB 2005 or 2008.
how to write a program to get the Sunrise & sunset Times?
I know only VB 2005 or 2008.
How can i calculate time duration between sunrise and sunset? Then how can i divide this duration(sunrise to sunset) into 8 equal parts(Hr: Min)?
All i need is starting and ending time of every part. And i want to write this code in VB.NET because in VB.NET i can easily design the GUI.
I'm trying to complete a time program for a class that I am currently taking in which it's supposed to utilize a Tick Method. Essentially, the Tick should be incrementing the time by one second. The problem is that I don't know where to place it. The book I have doesn't go much into this, just the code. I have also placed the timer in the Designer, set enable to True and set the interval to 1000 milliseconds. This is the code I found for the Tick Method
[Code]....
I'm currently in VB class at my highschool and we just got chapter 6.1 to read on this online textbook that we follow. Anyway, we are doing loops now and the problem reads "Write a program to request positive numbers one at a time from the user in an input dialog box. The user should be instructed to enter -1 after all the positive numbers have been supplied. At that time, the program should display the sum of the numbers." So far I know this much
[Code]...
Now I know this isn't right But I can't find out how I'd pull out the numbers the user entered to get the sum of them and not include -1 because as it stands, when I hit ENTER with -1 the label just shows -1.
I am having hard time determining how to get 1st, 2nd, and 3rd place determined by time. I was thinking about bubble sort through an array, but since I am determining lowest to highest based on numbers = runner it just sounds more confusing. The code to determine second is not that efficient, I know there is an easier way. That is the part where I am stuck.
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
[Code].....
I have a project with various forms all of the same size. Is there a way of getting them to appear in, for example the middle of the screen each time they load, in the same position
View 2 RepliesI'm having some problems with placing the date and time (e.g., 11/3/2011 10:13 AM) into a text box as I tried several things. The above date time format shows in properties as the value but when I try using it, the textbox shows "11/3/2011 12:00:00 AM). Any way to assign the date and time to a text box?
View 3 RepliesI've got a project that generates a sql query and returns the results. I want to place a time/counter on the form that shows how long it takes to return the query from the server. Basically to count up in seconds from 0 while that sub is executing. Would threading be the best way to do this or is there another way that I'm missing?
View 2 RepliesHow to comment and uncomment codes at multiple place within my project at the same time?I am using VS 2010 trial version to develop a VB application.Some of functions only should be showed to developer, not to users. So I must comment them and uncomment them many times during the process of development. please note that those codes are located in many locations and many VB files within my project.
Can I do this in a conveninent way, just clicking a button, or just defining a const or "#define something", something like that?
I looked at "How do I place an image with a mouse-click in Javascript?" but it had a small snippet of Java; immensely larger than my knowledge of Java. And that is the closest I've come to finding an answer in the past week. Here's what I would like to do (don't know if its even possible):
I have a panel and a toolstrip with 3 buttons. Each button represents a different image. I want to click on a button (once) and then move into the panel and everytime I click the mouse button it drops the image where ever I clicked. This only ends when either I click back on the same button or one of the other buttons. I do not want to drag an image into the panel each time. In other words the button stays depressed and the event/action stays active.
I am making another program. An Enrollment System.This is the screenshot of the recently started program. I added a child form.And I want to add the portion with the red box of this program. I don't know what they call it nor how to do it.I want to place it under the Menu Bar of my program.
View 5 RepliesJust wanna know if its possible to place gridlines on the VS2005 IDE?
View 3 RepliesI want to make a button that will save, but save in on a perticular line in a .txt file.[code]...
View 1 RepliesI am assuming there is a way to have this sub in? I am assuming Do Until Loop is the way to go[cod]e...
View 1 RepliesI have an app that gets info from the internet into a label, the progam then decides which event will hapen depending on the info obtained, either load next form and continue or Application.Exit
My problem is that the speed that the info is returned from the net, varies and because the info is late sometimes the program exits when it should not.
Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.
View 1 RepliesI want to write a program to write in an xml file in this format:
<?xml version="1.0" encoding="utf-8" ?>
- <Orders>
<Item id="1" SKU="998123" Description="Super Widget" Quantity="100" />
[Code]....
Just want to know how to get the path of a text file when i open it then put it on a textbox in vb.net
View 6 Replies1. Place a PDF file in the resources and open it in my program using 'AxAcroPDF1.src'
2. Place a txt file in the resources, open and change it.
how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.
View 20 RepliesI am just curious about this, but in all my years writing code, I have never once ever come across a time to use a write only property. Of course readonly is pretty common in class development, and while I may have had classes where I don't specifically need to expose a property for reading, generally you end up with a method like SetValue or something like that, which is more or less the same idea as a writeonly property.
I don't recall ever seeing a writeonly property in a .NET framework class. So can anyone provide an example where it actually made good sense to use a writeonly property over either a read/write property, or a method?
i have to write a program for my VB class that consists of a resistance checker program. I've searched like a madman to help me through this and I have found nothing >. The program consists of 2 combo boxes, the first one is the nominal resistance drop down list of the numbers :100, 150, 220, 330, 470, 680, 820 and 1000. The second list is of the tolerance numbers; +/- 0.4%, +/-0.6% and +/-0.8%. Now what i want to do is select a number from the first combo box and select the tolerance level of the second combo box and i input the resistor of said value into the text box. when i click the check resistor button it should display a message saying if the resistor is in or out of tolerance. For now I have the form all laid out and the values inputted into both combo boxes and i can go to run the program i am able to select said values. Now my problem is trying to get the right code so that i can check the resistors value.
View 2 RepliesHow copy folder with its content from place to another place. example from C: to D:
View 15 RepliesWith a Time value in my program. Basically, I am importing a travel Time from a database e.g. 3:45 so it takes 3 hrs and 45 minutes to get from a to b. I then want to double this - 3:45 * 2 = 7:30, and then want to multiply it by a cost e.g. travel is charged at 25 per hour. so it would be total travel time = 7:30. Travel cost = 25. Total Travel Cost = 7:30 * 25. In the access db, it is stored as a text field, and then imported in vb as a string.
View 1 RepliesI'm trying to write a file in chunks in a loop but the filestream.write just causes the sub to end the second time round but the first chunk it written and the savefiledialog remains?
edit: I was using an offset which I shouldn't have so now it writes the file just fine but the savefiledialog doesn't close itself?
I've dynamically created some ovalshapes and need to change their fillcolor and their tag at run time....
I can't seem to get at their properties
below is the code I'm creating my shapes with:
Dim alert(6) As PowerPacks.OvalShape
Dim canvas As New ShapeContainer
canvas.Parent = Me
[Code].....
I am currently making a GUI for Minecraft Coder Pack. MCP works off a system of batch files that launch python programs. I want to be able to read and write to these cmd windows throught vb.net. So that I can tell when a process has finished or to answer a yes, no question i nthe python program, with a gui from vb.net[code]\...
View 1 RepliesHow do I write a vb10 program that works in windows me. I am getting an err message saying MSCOREE.DLL expects a newer version of windows.
View 3 Repliesmy brother asked me for this project:he is writing down the time his exam begins, example:current hour is: 14:05:09 and his exam starts at: 14:50:00
how can i write down into a label how much time left untill his exam begins?
like: 00:44:51 left untill your exam begins..
My form cant move i set none to formborderstyle and made my form transparent using
CODE:
So now i cant move my form from place to place.