Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Windows application is having problems in connecting to our server. Pin
kjalandoon9-Jul-08 18:37
kjalandoon9-Jul-08 18:37 
Questiondate and time manupulation (modified) Pin
Ebube8-Jul-08 20:04
Ebube8-Jul-08 20:04 
AnswerRe: date and time manupulation (modified) Pin
_Damian S_8-Jul-08 20:13
professional_Damian S_8-Jul-08 20:13 
GeneralRe: date and time manupulation (modified) Pin
Ebube9-Jul-08 1:03
Ebube9-Jul-08 1:03 
AnswerRe: date and time manupulation (modified) Pin
Mycroft Holmes8-Jul-08 20:13
professionalMycroft Holmes8-Jul-08 20:13 
GeneralRe: date and time manupulation (modified) Pin
Ebube9-Jul-08 1:18
Ebube9-Jul-08 1:18 
GeneralRe: date and time manupulation (modified) Pin
Mycroft Holmes9-Jul-08 1:27
professionalMycroft Holmes9-Jul-08 1:27 
GeneralRe: date and time manupulation (modified) Pin
Guffa9-Jul-08 11:33
Guffa9-Jul-08 11:33 
Don't call Now repeatedly. If you are unlucky (i.e. use it often enough) it will give you the wrong result, as the value may change from one call to the next.

To get the last day of the month you just add one month and subtract one day.
Dim n As DateTime = DateTime.Today
Dim first As New DateTime(n.Year, n.Month, 1)
Dim last As DateTime = first.AddMonths(1).AddDays(-1)


Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: date and time manupulation (modified) Pin
Mycroft Holmes9-Jul-08 14:51
professionalMycroft Holmes9-Jul-08 14:51 
GeneralRe: date and time manupulation (modified) Pin
Ebube9-Jul-08 19:57
Ebube9-Jul-08 19:57 
GeneralRe: date and time manupulation (modified) Pin
Guffa10-Jul-08 0:20
Guffa10-Jul-08 0:20 
QuestionVB6 Button.Value = true/false - how to do this in VB.NET Pin
AR Reddy8-Jul-08 19:32
AR Reddy8-Jul-08 19:32 
AnswerRe: VB6 Button.Value = true/false - how to do this in VB.NET Pin
paas9-Jul-08 1:15
paas9-Jul-08 1:15 
AnswerRe: VB6 Button.Value = true/false - how to do this in VB.NET Pin
jzonthemtn9-Jul-08 4:45
jzonthemtn9-Jul-08 4:45 
Questiondate and time manipulation Pin
Ebube8-Jul-08 19:21
Ebube8-Jul-08 19:21 
AnswerRe: date and time manipulation Pin
Mycroft Holmes8-Jul-08 20:15
professionalMycroft Holmes8-Jul-08 20:15 
GeneralRe: date and time manipulation Pin
Ebube9-Jul-08 0:26
Ebube9-Jul-08 0:26 
GeneralRe: date and time manipulation Pin
Ashfield9-Jul-08 1:37
Ashfield9-Jul-08 1:37 
GeneralRe: date and time manipulation Pin
Ebube9-Jul-08 5:06
Ebube9-Jul-08 5:06 
GeneralRe: date and time manipulation Pin
Ashfield9-Jul-08 10:11
Ashfield9-Jul-08 10:11 
JokeRe: date and time manipulation Pin
Mycroft Holmes9-Jul-08 14:57
professionalMycroft Holmes9-Jul-08 14:57 
Questiondraw bitmap by pixel help Pin
shee_dee868-Jul-08 14:55
shee_dee868-Jul-08 14:55 
AnswerRe: draw bitmap by pixel help Pin
Guffa8-Jul-08 14:57
Guffa8-Jul-08 14:57 
QuestionRe: draw bitmap by pixel help Pin
shee_dee868-Jul-08 16:21
shee_dee868-Jul-08 16:21 
AnswerRe: draw bitmap by pixel help Pin
Guffa8-Jul-08 17:41
Guffa8-Jul-08 17:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.