Click here to Skip to main content
15,440,771 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: combine two datatable Pin
Richard Deeming3-Jan-22 23:54
mveRichard Deeming3-Jan-22 23:54 
GeneralRe: combine two datatable Pin
Member 143292665-Jan-22 15:16
MemberMember 143292665-Jan-22 15:16 
AnswerRe: combine two datatable Pin
Raphael Adeniji7-May-22 5:09
MemberRaphael Adeniji7-May-22 5:09 
QuestionFind the 4th Tue of the Month when the Year changes Pin
Choroid30-Dec-21 8:41
MemberChoroid30-Dec-21 8:41 
AnswerRe: Find the 4th Tue of the Month when the Year changes Pin
Gerry Schmitz30-Dec-21 9:37
mveGerry Schmitz30-Dec-21 9:37 
GeneralRe: Find the 4th Tue of the Month when the Year changes Pin
Choroid30-Dec-21 10:30
MemberChoroid30-Dec-21 10:30 
AnswerRe: Find the 4th Tue of the Month when the Year changes Pin
Thava Rajan31-Dec-21 14:13
professionalThava Rajan31-Dec-21 14:13 
GeneralRe: Find the 4th Tue of the Month when the Year changes Pin
Choroid1-Jan-22 2:18
MemberChoroid1-Jan-22 2:18 
After consideration I have rewritten the Functions with just this one.
Still testing but I believe it will correct the issue when the year changes.

Function FourthTueOfNextMonth(dt As Date) As Date
    ' Start with the First Day of the Month, from the date passed in.
    ' Add one Month to that to get the first Day of the NEXT month.
    Dim currDate As Date = (New Date(dt.Year, dt.Month, 1)).AddMonths(1)
    'Dim currDate As Date = (New Date(2022, 1, 1)).AddMonths(1)
    'LINE ABOVE for testing set it to todays DATE
    ' Find the First Tuesday of the Month
    While currDate.DayOfWeek <> DayOfWeek.Tuesday
        currDate = currDate.AddDays(1)
    End While
    ' Add three more Weeks to jump to Fourth Tuesday
    Return currDate.AddDays(21)

End Function

QuestionI need help. how do i code it??? Pin
Member 1548021627-Dec-21 15:33
MemberMember 1548021627-Dec-21 15:33 
AnswerRe: I need help. how do i code it??? Pin
Richard MacCutchan27-Dec-21 21:46
mveRichard MacCutchan27-Dec-21 21:46 
QuestionHow to display actual values on a chart using the Mouse_Move event. Pin
zomalaja25-Dec-21 13:10
Memberzomalaja25-Dec-21 13:10 
QuestionHow to BitConverter.GetBytes() return 2 digits only Pin
EngrImad3-Dec-21 23:39
MemberEngrImad3-Dec-21 23:39 
GeneralRe: How to BitConverter.GetBytes() return 2 digits only Pin
Richard MacCutchan4-Dec-21 0:18
mveRichard MacCutchan4-Dec-21 0:18 
AnswerRe: How to BitConverter.GetBytes() return 2 digits only Pin
EngrImad4-Dec-21 1:54
MemberEngrImad4-Dec-21 1:54 
AnswerRe: How to BitConverter.GetBytes() return 2 digits only Pin
Dave Kreskowiak4-Dec-21 3:43
mveDave Kreskowiak4-Dec-21 3:43 
Questionerror 50003 in vb6 in win 10 Pin
Member 110192491-Dec-21 0:10
MemberMember 110192491-Dec-21 0:10 
AnswerRe: error 50003 in vb6 in win 10 Pin
jsc421-Dec-21 0:26
professionaljsc421-Dec-21 0:26 
AnswerRe: error 50003 in vb6 in win 10 Pin
Richard Deeming1-Dec-21 1:08
mveRichard Deeming1-Dec-21 1:08 
QuestionHi How can i print listview with database im using phpmyadmin xampp Pin
Kyooshi29-Nov-21 19:54
MemberKyooshi29-Nov-21 19:54 
AnswerRe: Hi How can i print listview with database im using phpmyadmin xampp Pin
Richard Deeming29-Nov-21 21:47
mveRichard Deeming29-Nov-21 21:47 
AnswerRe: Hi How can i print listview with database im using phpmyadmin xampp Pin
Richard MacCutchan29-Nov-21 21:56
mveRichard MacCutchan29-Nov-21 21:56 
Questionface identification and recognition with visual Basic 2010 Pin
Member 1535104216-Nov-21 23:20
MemberMember 1535104216-Nov-21 23:20 
AnswerRe: face identification and recognition with visual Basic 2010 Pin
Richard MacCutchan16-Nov-21 23:27
mveRichard MacCutchan16-Nov-21 23:27 
AnswerRe: face identification and recognition with visual Basic 2010 Pin
CHill6024-Nov-21 0:32
mveCHill6024-Nov-21 0:32 
QuestionHOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
WAHID ASSOCIATES8-Nov-21 9:09
MemberWAHID ASSOCIATES8-Nov-21 9:09 

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.