Determine Zodiac Sign And Weekday Of Birth?
Feb 28, 2011I need to make a program in vb.net that asks for the user's birthday. The program should give the day of the week the person was born and their astrological star sign.
View 1 RepliesI need to make a program in vb.net that asks for the user's birthday. The program should give the day of the week the person was born and their astrological star sign.
View 1 Replieshow to make a zodiac calculator, I know the basic codes that I need to insert, but I'm creating it in a windows application. The day and year are text boxes that the user can input that particular information, but the month is a drop-down box. My two questions are: Is it okay to delete the private sub of the day and year so I can combine them into one sub? And how do I get the months to show up individually in the code area? Or would I have to delete the drop-down box completely and make it like the day and year text boxes where the user can input the information themselves?
View 6 RepliesIm importing text from a .txt file using streamreader and when it reads in a � sign it converts it to the square symbol for a unknown character! If i put in a $ sign it imports it correctly!
View 2 Replieshow to calculate a weekday of a given date?
View 8 RepliesMy program is to read serial port based on the timer, so every ticks, it reads the value and write it to a textbox.The timer in the form is in the interval of millisecond. Therefore I make it 1, that means every 1ms, there is an event.The event I try is as simple as writing in a text box.
[code]...
the last code is meant to measure how many seconds will I get from d = 1 to 1000, it should return 1 second time difference. But instead of 1 second, it returns around 15 seconds.
I have a question about the WeekDay and WeekDayName functions:
[Code]....
The parameter "FirstDayOfWeekValue" is supposed to represent "the first day of the week", but I don't understand how it's used. I mean, if the date is 16th March, then it's a Tuesday. That's true everywhere in the world and under any condition, isn't it? If that's so, what is the relevance of "FirstDayOfWeekValue", which apparently lets you change the weekday of a given date? And what is the "proper" value I should use, in order to get the correct result (ie. 16th March = Tue)?
Example of a function that would return an integer (how many months old) based on a persons age when given the date of birth?
View 1 RepliesHow do I list every monday, as date, of a specific year?
I want to create this for every day of the week and put them into a datagridview. The most umportant is that I need to now how to get every weekday (e.g. monday) of the year.
I am creating a program that auto fill information. Now the problem is, that I have to fill in the Date of Birth, and it doesn't have the ID. How could I do that. (All must be automatically).Also I want it to choose at random, so if it choose 1, another time it would choose 2 or something like that.
View 11 RepliesI know I can import Microsoft.Visualbasic and just use the ones I used in vb6. But I don't want to ;)In vb6 DateDiff("d", dte1, dte2) would just give me the number of days between the 2 dates and it didn't matter which order I put the 2 dates, it would still return x days.In .Net i have Date.Compare(dte1, dte2) but I have to know which date is newer other wise I get a negative result because I subtracted a bigger from the smallerIs there no .NET way to just get the difference without having to subtract then multiply by -1 if its less than 0?ALSO,In vb6 I could use Weekday function to get what day of the week a date is and use it in the DateAdd function to find the first day of the week's date. Like so: dim firstday as date = DateAdd("d", (Weekday(today, vbWednesday) - 1) * -1, today) would like a .Net way to find the date of the first day of the week, giving that our week might not start on sunday or even monday. I need to pass a date and the weekstart day (wednesday) and have it return the date for the wednesday. Like this:dim firstday as date = GetFirstDay(Today, Firstday.Wednesday)so if the date i passed was "9/3/10" which is a friday, the function would return "9/1/10" which is the date my week started on.
View 2 RepliesMy project requires users to be 18+. I have supplied a textbox for birthdate entry, but I don't know if that's the best way. Also, I don't know how to format it so that it only accepts date entry.
Next is the calculation part... yikes.
today - bithday = age
Code:
Private Sub Birthday_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Birthday.TextChanged
End Sub
I am in a VB 2010 class right now, and I'm suppose to write a program that requests the user's date of birth and then display the day of the week (such as Sunday, Monday, ect...) on which day they will have or had their 21st. Birthday.
I already have the GUI made up with a MaskedTextBox set to simple date and it is named = mtbDayOfBirth
I also have the button already to calculate this, and a read only text box named = txtBox2.
My code so far is:
Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim d As Date = CDate(mtbDateOfBirth.Text)
txtBox2.Text =
End Sub
End Class
The only thing in my book only talks about how to pull the number of days from your bday or pull the full birthday as like the 04/06/1992 would return Monday, April 06, 1992.
im trying to get the user of my program to enter their date of birth ad for the program to return how old they are in years, months and days (you are 10 years, 3 months and 23 days old) type thing and if its their birthday, to return an appropriate message.atm ive got a textbox for the days, a combo box for the month and another textbox for the year. i guess the real question is how do i use these to do the above.
View 9 RepliesI want to use VB to set an existing RDP connection's credentials.Can I do that with code only?
View 3 RepliesI use the code below to get driver file sign info, it works well
Imports System.Security.Cryptography.X509Certificates
Dim cert As X509Certificate2 = New X509Certificate2("C:WindowsSystem32drivers cpip.sys")
MessageBox.Show(cert.Subject)
But if want to get EXE file signed info like
Dim cert As X509Certificate2 = New X509Certificate2("C:WindowsSystem32winlogon.exe")
MessageBox.Show(cert.Subject)
the error occured "Cannot find the requested object"
I want to digitally sign my exe. I have a .p12 file as digital certificate.I used signtool.exe for signing the exe. After signing the exe the properties > digital Signature tab is showing the right name but when I am doing double click on exe then the "open file-Security warning" window is still showing unknown publisher.How can I show right name of publisher in "open file-Security Warning" window.
View 1 RepliesI recently upgraded to VB 2010 Express (from 2008), and I have a problem using the debugger. When I move the mouse pointer over an array variable, I only can get the value for the current index, and not values for all indices, as I did in 2008.
For example, if I move the pointer to classSize(i), I see the value for the current value of index i, but I do not see the plus sign which would display a drop-down list showing values of all elements in the array.
I checked for options (Tools > Options > Debugging > General), but did not see an option related to DataTips.
I am trying to get OpenSSL.net to 1) create a key pair to use for CA signing and 2) create and sign certificates using this CA. I have managed to create an RSA/SHA1 X509CertificateAuthority, and have created a X509Request and keys, but I am running into problems actually signing the request.
'create the request and request key
Dim rsa As OpenSSL.Crypto.RSA = New OpenSSL.Crypto.RSA()
rsa.GenerateKeys(1024, 65569, Nothing, Nothing)
[code]....
I am getting an OpenSslException on the line noted above, with the message error:0606B06E:digital envelope routines:EVP_SignFinal:wrong public key type error:0D0C3006:asn1 encoding routines:ASN1_item_sign:EVP lib
I got this nice piece of code from someone on this forum which only allows user to input numbers or backspace i need to modify it to allow the - sign so user can input a negative number Can someone share with me the code to modify this
If Not Char.IsDigit(e.KeyChar) Then e.Handled = True
If e.KeyChar = Chr(8) Then e.Handled = False 'allow Backspace
I'm building three web applications in .NET that will all share a users database and login information. Lets pretend that application 1 is the "parent" application and applications "A" and "B" are the "child" applications. All users have to be logged into application 1 to have access to applications A and B.
Authorization, Authentication, and MachineKey sections of all web configs are present and work correctly.
I have the correct web.config settings in all applications to achieve Single Sign On except one problem remains: what do I put in the "loginUrl" attribute of the forms tag in Applications A and B.
Assume that the url for the login to application 1 is [URL] How can I get applications A and B to send the user back to application 1 for authentication using only settings in web.config?
How can i create a sign up form.....using a database access... I'm done with Log in form and now i want to create a sign up form..
View 6 Replieshow to create arrow sign in vb.net that work like go to next and previous page.
View 7 Repliesi had decided to make my academic project in digital signer ,so i surf net for it and got a sample. its main aims is ti sign only one pdf..so i decided to make the application to sign all pdf which r there in a folder,i had done all the changes, i but i come accross an error which i am not able to solve,
View 1 RepliesI would like to know how I would separate the $ from number. I am reading data from a text file. the last column has a contain $12.00. I am able to split the five columns into an array. But also want to be able to remove the dollar sign.
i.e.
John Kay Lame Welder $20.00
I am trimming some strings but I am unable to do anything about the strings containing plus signs. For example if I have this string with a telephone number
Dim str As String = "+46765124246"
And try
str.replace("+46", "0")
Nothing changes in the string.
I am using web browser control to login to gmail account. After successful login, i want the browser automatically sign out. How can i do that? I tried this:
Private sub webbrowser1_DocumentCompleted (Byval sender as system.object)Dim element as html elementfor each element in webbrowser1.document.links if element.getattribute("href").contains("logout") then 'log out code goes here
I am doing basic calculator program... but i not able to use the /*+- sign on my keyboard
when i press / (for example) in the TextBox.Text will show also / sign.
I am fairly new to VB.NET so I research alot when I run into bugs. Problem is I cannot find a solution to this, or anything remotely dealing with it. I am developing software to connect to a remote mysql server, run a query, and come back with a dataset. I have run this query against the server through a mysql prompt and have received a result successfully. But when i try to run this query from my app, I get an object reference error.
Through debugging I have found that the @ character used for variables in sql strings, is causing the problem in my code, but i cannot find a way to pass this query to the server without visual studio throwing errors. Every answer to the use of variables that I have found, suggests specifically stipulating the variable values in my code, which I do not want to do.
[Code]...
I have one datagridview and there some field are there for money dataType. But if user want to add (-) keyword then it should be display like -$10. if again user will click on (-) keyword then it should be remove i.e $10 .
View 8 RepliesI have one datagridview control and there one column are there for money data type. But if user press to minus (-) keyword then it should be display like -$10. and again if user will press on (-) keyword then it should be remove i.e $10 .
View 3 Replies