Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




A Happy Birthday App!


A friend of my has birthday and I want to make a app for her, just to describe her! Any ideas??????
Please help me or I will jump over a bridge!!!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Happy BirthDay
Hi, today it was exactly 52 years ago I was born in this very sunny west side of Argentina.
Please Congratulate.Me
P.S. Any other old guy around?
(But young in spirit...)

Happy BirthDay
Hi, today it was exactly 52 years ago I was born in this very sunny west side of Argentina.
Please Congratulate.Me
P.S. Any other old guy around?
(But young in spirit...)

Happy Birthday To Me - My Time
Hello Friends,

Happy birthday to me !



It is my time today, so I'll ask about time functions

*****************
question 1 = How to determine this moment if it is in morning or evening ?

question 2 = How to change the time from 12 to 24 or vice versa?

Birthday
hi, how can i tell if its someones birthday?

i have the date of birth 00/00/0000, and i have todays date, i want to know if they match. i could use the left() function to see if the day and month match but.... i have a time shift thing on it for timezones. i have a sub that will need to take the time and add or take the correct amount of hours, then if it goes to another day, it needs to adjust the date.

any ideas how i can do the timeshift AND the birthday subs?

i know i can use the datediff() function but im not quite sure how to go about it, i need the timeshift result to be in the same format as the now function

Days Until My Birthday
How do I work out how many days until my birthday, assuming I was born 29/3/68.

I tried this, but it gave me 1292
print DateDiff("d", Format(Date, "ddmm"), Format(.Fields!dob, "ddmm"))

Part of the problem may be with my date format - I use dd-mm-yy.

Birthday Reminder
Hi friends!

I have average knowledge of VB. I want to write a VB program code where one reminds me the birthday of my friends.But I need this as a background process where the program reminds me atleast 5 times in a day.I mean that I should not execute the program everytime to check whether I have missed anybody's birthday.I should be reminded/alerted when the system is logged in.Please help me or suggest me how to do this.Please also suggest if there is any similar program,like Bills Payable reminder.

Thanks in Advance
Aravind

Calculating Age Last Birthday
Does anyone out there have a simple function or procedure that can calculate someone's age given their date of birth and the current date?

I would really appreciate.

Thanks

Tesita

Same Birthday Problem
the problem is to randomly choose birthdays for 25 people.
when you click a command button, it should randomly generate
and test for coincidence (two or more people having the same
birthday). birthdays (1 to 365) are displayed in a control array
of 5 by 5......

Second part of that is to run the experiment for a 100 times
and the number of times coincidence occurred is counted. another
text box should display the fraction of times coincidence occurred
(as a percentage)

As you probably noticed I am having so much trouble learning this
stuff. I never thought that programming was that hard. could you guys
give me some tips on how to study?..midterm is coming up...huuu..
once again thank you guys for helping me out..

judy,

Birthday Problem
can you guys help me out?
thanks.

1.one command button, which when pressed, randomly generates and tests for coincidence (two or more people having the sasme birthday). The birthdays (integers from 1 to 365) are displayed in a cotrol array of 5 by 5 (either consisting of text boxes or labels)
2. a text box which displays 1 if two or more people have the same birthday, and 0 if no birthdays coincide.
3. antother command button, which when pressed, runs the experiment (of generating randomly birthdays for 25 people, and checking for coincidence) for a total of 100 times. the number of times coincidence occurred is counted.
4. another text box which displays the fraction of times coincidence occurred(as a percentage)

i have found a way to create 25 boxes when run, but i don't know how to generate random number and show them in boxes. and check for coincidence.........

Birthday Problem. URGENT
Hi all

I have database in Access with table clients. What I need is SQL query that selects name, surname from clients where birthay = today

Please help me. I've spend last 2 days on this one.

Birthday Comparison To Date
Hello to everyone.

I'm doing a small program which when loads compares a persons birthday with todays date.
If within the birthday is within 7 days before tofays date I get a msgbox warning me. ( I'm a shocker with remembering birthdays, anniversaries etc..)

Is there a simple way of doing this?

I have a database of 'important' birthdays,etc.. Loop through the recordset, if within 7 days display message box.

My first idea was to convert the 'day/month' part to a long value
ie:

Dim DateBirth As Long
Dim Pos As Integer
Dim DateNow as Long

' Convert date to long value for comparison
Pos = InStr(4, DateBirth, "/", vbTextCompare)
DateNow = CLng(CDate(Left$(CStr(DateBirth), Pos - 1)))

Pos = InStr(4, Date, "/", vbTextCompare)
DateNow = CLng(CDate(Left$(CStr(Date), Pos - 1)))

If (DateNow-DateBirth) > 0 and (DateNow-DateBirth) > 7 then MsgBox " Buy a Bloody Present."

This works fine until the Birthday is the 24/12 - 31/12


Cheers in advance

Select Part Of Date For Birthday
Hey guys,

I have an Access DB that has a field "BirthDate"

I need to select individuals that have a given birthdate.

The data stored looks like this:

4/11/1972

How do I select all of the records that have 4/11 as the birthdate and ignore the year?

Thanks,

Mike

Steps In Making A Birthday Reminder Program.
Hi, I have been using a program called miniminder to remind me of birthdays etc. I am wondering if anyone knows what the steps would be in making a program such as this? I would like to give it a try, but not sure where to start and how the program runs every time my computer starts up.

Thanks in advance.
leadfinger.

thanks
leadfinger
http://www3.nbnet.nb.ca/gspil

SQL Server - VB - Email Notification On Employee Birthday...
Hi Pals,
Can anyone help me how to do this Tasks. I had developed HRMS Program using Visual Basic and SQL Server 2000, however when the program starts it will prompt a notes of curret listed employee birthday on current date. since its multiple users, it will appear on each user login. who is the first person get noted, he will get notify from the notes, and He/She just click one button it will email to everyone and said that this employee are birthday on today. once it been emaild. the remainder status will prompt email has been set and still prompt. today employee birthday....... Help.....
this is not urgent, but it will nicely have into Human Resources Management System Program....


Thank you.

Hanz

(Resolved)View Birthday Of The Month In LISTVIEW?
hi! need help i'd like to know how to view Birthday of the Month in Listview...

i have errors here:
"Select *From QueryMusic Where Bday = Month(now)"

i want to view "birthday of the month" when i click radio button(Birthday) and display in Listview....

waiting to your reply.thanx in advance.



Edited by - edd_hills on 7/20/2005 7:02:09 AM

@_@Happy Y2K@_@
Hi all,
Just want to wish you all a safe and happy millenium.
Keep on Coding!

____________________________________
The VB Bugs in my Life...

Happy New Year, All !!!
Happy New Year to all you VBers! Best of luck in 2003. Keep on coding...

Happy Numbers
Hey people,
I have been assigned a program that can calculate if a number is a happy number or not. Click this click to learn what a happy number is. This lab is really confusing me. Any help is appreciated.

To Everyone {Happy Holidays}
Have a safe and joyful holliday season to everyone at Xtreme Visual Basic Talk

Happy Holidays
Merry Christmas and Happy Holidays

For all the persons how participated in this forum,
For all the kind persons how helped me and advised me,

And wish the New Year will be a great year for them with all Success.

With Best Regards

Happy New Year Everybody...
I know that it is not about visual basic but if would write this into off-topic it wouldnt be read. I wish everybody here a happy, healthy, wealthy and succesful year...

Happy New Year.
http://www.vbforums.com/showthread.p...09#post2297309


Listen I know im off topic, but its 9pm here, I have been at work since 7:00am, I work 7days a week here and total in aout 90 hours a week... I would love to go out and have a good time tonight but i cant leave until i finish this last little thing on my project... I normally dont program for the company but the other guy is on xmas vacation still... Im just the "GIS"(I make maps for oil companies) mapper guy.. could someone help me with that vba post so i can go out...

By the way, yes i do have work at 7:30 am tomorrow morning.

I love you all...

Happy Numbers
i am a total n00b prorammer and i need to know how to take a text box ad put all that characters in it into and array or something like that, the square all the elements of the array until it ends up at one or loops, and the program will tell you if the number is happy or not, how do i do this?

Happy New Year
I just wanted to wish you all a happy, healthy and wealthy new year and thank you all

Happy VB NEW YEAR
Merry XMAS and Happy VB New Year

From Dominican Republic. The Land Where Christmas Starts at OCTUBER 15 and END at January 6!!!

I Am Happy!!Congratulate Me
Hi All....
I Got first prize in All Pakistan Software Competition last month and Just got the prize money of 15,000 Pak Rs.

Happy New Year !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!
HAPPY NEW YEAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Happy New Year
I wish you a happy and fantastic new year to all.

this is my 100th post.
thanks to all of those who replied to my queries.

Thanks.
Saran

Happy Holidays
http://www.vbforums.com/showthread.p...hreadid=127308

Im One Happy Chappy!
im Soooo Happy.
I got Visual Studio 6 toaday.
C++
J++
VB 6
and all the stuff
MDSN Libarys etc etc etc...........
Filled my C drive but i dont care!
im happy. (and its all Fully Legal)

Happy Valentine's Day...
Hi Guys,
You've been so kind to me in helping out. I'm learning a lot from you guys. I wish you all a very Happy VALENTINE'S DAY

Cheers,
Parasuraman

Happy New Year!
Hey everyone,
No.. this is not an approved topic for this forum , but I just wanted to say Happy New Year to everyone in the VB Forum. Thanks for everyone's questions and answers. I look forward to another year with you guys!

Happy New Year!

Fisherman

Happy New Year
A Happy New Year to all

Happy New Year
Hey Friends : May health,happiness and good times Greet you each day of the new year ----- Happy New Year 2006

Happy Monday!
Im trunning to run a large amount of queries on an adodb database object. I start with a begin transaction call, and then begin to do my work - selects and updates.

Finally when I get to a delete statement I get an error - Cannot create new connection because in manual or distributed transaction mode.

Can I not use delete statements with a begin transaction/rollback/commit transaction set?

Happy Holidays To All
The subject says it all. Thanks for an informative year to all that participate.

Regards,

John G

Happy 2000
I'm leaving for a short vacation, so . . .
EVERYONE, HAVE A HAPPY MILLENIUM ! ! !

Jean Spector
Tech Support Team Leader, CET
mage@lycosmail.com
(in VB from 11/1999)

...happy New Year, With A Question...
I have this...but I can't get it to work as I want...

I have 2 frames with tekstboxes.
If optOne shows...frame ONE wil also show.....

Every frame has his own text and checkboxes...

But the checkboxes interupt eachother.
They both show in my WORD.doc
How can i fix that?

-------------------------------------------------------------------
If chbVrouw = True Then
Selection.TypeText Text:="mw " + txtSec + " " + "Sec: " + kzlSec1 + ","
Else
Selection.TypeText Text:="hr " + txtSec + " " + "Sec: " + kzlSec1 + ","
End If


If chbStads = True Then
Selection.TypeText Text:="mw " + txtName + ","
Else
Selection.TypeText Text:="hr " + txtName + ","
End If
____________________________________________

Thanks...happy new year!

No HAPPY Merry Christmas For Me Until
Until i had finished programming the oscilloscope.I want to use channel 1 and channel 2 to show waveforms in the picBox.
I have to use this formula Va=[(Vd/4065]x5 -2.5]/-0.283.
To get the data externally,we need to use rw_adcbuf2(short int base_addr,unsigned short adcval1,unsigned short adcval2,unsigned short *adcbuf1,unsigned short *adcbuf2,unsigned short *dacbuf,int bufsize).

Happy New Year (early I Know)
I have no plans on being on here tomorrow so.....

HAPPY NEW YEAR!!!

Happy Face Animation
How do you guys make those happy face in your post.

Red, green, yellow I see them everywhere and can't figure how to make one.

Thanks,

Happy Millenium! (I'm Original)
This is my last post of the millenium, 'cause I am ready to take a trip to Mar del Plata, the most famous beach here in Argentina, (some 900 miles from where I live) for summer holidays.
I can see all of you green with envy!
Happy millenium to all VB World people, team and members!

Happy Thanksgiving And Thanks For Your Advices!
Hi:

Just to send my best wishes to all for this thanksgiving. And thanks for your advices. What a nice people here :-)
I hope you enjoy with your family and/or friends this special day.

Xenia Jones

Happy Thanksgiving And Thanks For Your Advices!
Hi:

Just to send my best wishes to all for this thanksgiving. And thanks for your advices. What a nice people here :-)
I hope you enjoy with your family and/or friends this special day.

Xenia Jones

HAPPY CHRISTMAS And NEW YEAR
Dear Friends

I wish U a very very happy christmas and happy new year.

Basically, i want to wish all the users of this site. But i did understand how do that.
Thats why i choosed this way.

I pray the god to give U ALL, the good health, good time, good money and all the happyness in the world.

thank U

M Kiran Kumar

Happy Holidays And VB Toys For All
Hi,

I just uploaded a couple of programs into the VB6 Code Bank. The first one is a gradient title bar module that draws icon, caption text gradient fill color and control buttons. The second one is what I call Form Designer's Aid. FDA facilitates moving and resizing controls in the design environment with the keyboard Arrow keys.

Enjoy and happy Holiday to All,

Servo

Happy New Year And A Century Too..
Hi

To Every one on the board, I wish you all a very Happy New Year and a Joyous Century. May your life be truly fulfilling in the new year and in the years to come.
May we all find Love, Life and Laughter all along.

With Best Wishes
Ravi Kiran

RK

Two Problems With MSComm In A Dll. Resolve One And I'll Be Happy..
I am writing a dll to communicate with a range of our products.
When doing this in the past, I have always gone for the MSComm control on an invisible form approach for two reasons:
1. I think it is simpler.
2. Instantiating the MSComm control in a class leads to problems with distribution of the finished dll. If the target machine already has a licensed copy of mscomm32.ocx, all is OK. If the target machine does not have a licenced copy of mscomm32.ocx, the application will not work because neither Inno or PDW seem to maintain the licence info.

So, when starting this application I went for the control on an invisible form approach.
The dll has a class called SerialPort as outlined below (for simplicity, I have cut out some code).

VB Code:
Option Explicit Public Event RxData(byRxData() As Byte)Public Event CommsError(byNumber As Byte, byErrorCode As Byte)Public Event ConnectionStatus(byNumber As Byte, byPortNumber As Byte, bState As Boolean) Public Sub SendCommand(by As Byte, byTxData() As Byte)     On Error GoTo ErrorTrap        'I do stuff here and send data to the serial port            Exit Sub    ErrorTrap:    RaiseEvent CommsError(byNumber, cNoPortOpen)    End Sub Public Sub OpenPort(byNumber As Byte, byPortNumber As Byte)     On Error GoTo ErrorTrap     'Open the port if it is not already open.    If frmComms.CommPort.PortOpen = False Then        frmComms.CommPort.CommPort = byPortNumber        frmComms.CommPort.DTREnable = False        frmComms.CommPort.EOFEnable = False        frmComms.CommPort.Handshaking = comNone        frmComms.CommPort.InBufferSize = 1024        frmComms.CommPort.InputLen = 0        frmComms.CommPort.InputMode = comInputModeText        frmComms.CommPort.NullDiscard = False        frmComms.CommPort.OutBufferSize = 512        frmComms.CommPort.RThreshold = 1        frmComms.CommPort.RTSEnable = False        frmComms.CommPort.Settings = "9600,N,8,1"        frmComms.CommPort.SThreshold = 1        frmComms.CommPort.PortOpen = True        RaiseEvent ConnectionStatus(byNumber, byPortNumber, True)    Else        RaiseEvent CommsError(byNumber, cPortAlreadyOpen)    End If     Exit Sub    ErrorTrap:    RaiseEvent CommsError(byNumber, cPortOpenFail) End Sub Public Sub ClosePort(byNumber As Byte, byPortNumber As Byte)     'Open the port if it is not already open.    If frmComms.CommPort.PortOpen = True Then        frmComms.CommPort.PortOpen = False    End If     RaiseEvent ConnectionStatus(byNumber, byPortNumber, False) End Sub


The form frmComms contains a single MSComm control and bog standard OnComm event handling code. It also contains a routine to decode the received data.
The problem is that I want the receive data decode routine to raise one of SerialPort class events so as to alert the user of that class.
I am not sure how to do this. I have tried various things with Friend Subs in the class and creating an instance of the class in the Form but cannot get it to work.
To get going with development of the rest of the system, I have created an MSComm control in the SerialPort class.

I am left with two problems, one of which I must resolve.
1. How can get a form to raise events of a class in a dll such that the user of the dll is alerted to the event?
OR
2. How can I deploy a dll using an MSComm object (not the control) and ensure that the license information is included in the package?

As always, any help would be greatly appreciated.

Copyright 2005-08 www.BigResource.com, All rights reserved