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

Visual Basic

 
GeneralRe: using vb to create a custom email attachment Pin
Member 986550818-Mar-13 13:57
Member 986550818-Mar-13 13:57 
AnswerRe: using vb to create a custom email attachment Pin
Eddy Vluggen19-Mar-13 1:27
professionalEddy Vluggen19-Mar-13 1:27 
GeneralRe: using vb to create a custom email attachment Pin
Member 986550819-Mar-13 4:32
Member 986550819-Mar-13 4:32 
GeneralRe: using vb to create a custom email attachment Pin
Eddy Vluggen19-Mar-13 10:14
professionalEddy Vluggen19-Mar-13 10:14 
QuestionCalculate date between two date? Pin
Akbarblack18-Mar-13 4:31
Akbarblack18-Mar-13 4:31 
QuestionRe: Calculate date between two date? Pin
GuyThiebaut18-Mar-13 5:24
professionalGuyThiebaut18-Mar-13 5:24 
AnswerRe: Calculate date between two date? Pin
dusty_dex18-Mar-13 5:24
dusty_dex18-Mar-13 5:24 
AnswerRe: Calculate date between two date? Pin
Bert Mitton18-Mar-13 5:38
professionalBert Mitton18-Mar-13 5:38 
Not the most elegant solution I've ever come up with, but off the cuff this should do it...

VB
Dim dt1 As DateTime = "1/1/2013 9:00 AM"
Dim dt2 As DateTime = "1/2/2013 12:00 PM"

Dim days As Integer = 0

days += (dt2 - dt1).Days

If dt1.Hour < 12 Then
    days += 1
End If

If dt2.Hour >= 12 Then
    days += 1
End If

GeneralRe: Calculate date between two date? Pin
Akbarblack23-Mar-13 6:42
Akbarblack23-Mar-13 6:42 
QuestionStoring booleans in a byte Pin
Jörgen Andersson14-Mar-13 2:30
professionalJörgen Andersson14-Mar-13 2:30 
AnswerRe: Storing booleans in a byte Pin
Peter_in_278014-Mar-13 11:39
professionalPeter_in_278014-Mar-13 11:39 
GeneralRe: Storing booleans in a byte Pin
Jörgen Andersson14-Mar-13 12:30
professionalJörgen Andersson14-Mar-13 12:30 
Questiondirect x Pin
Member 989693213-Mar-13 21:21
Member 989693213-Mar-13 21:21 
AnswerRe: direct x Pin
Richard MacCutchan13-Mar-13 22:46
mveRichard MacCutchan13-Mar-13 22:46 
GeneralRe: direct x Pin
Blikkies14-Mar-13 0:30
professionalBlikkies14-Mar-13 0:30 
GeneralRe: direct x Pin
Richard MacCutchan14-Mar-13 0:35
mveRichard MacCutchan14-Mar-13 0:35 
GeneralRe: direct x Pin
Dave Kreskowiak14-Mar-13 1:31
mveDave Kreskowiak14-Mar-13 1:31 
QuestionMultiple Column combobox and list box Pin
JohnGreen459513-Mar-13 6:26
JohnGreen459513-Mar-13 6:26 
AnswerRe: Multiple Column combobox and list box Pin
Richard MacCutchan13-Mar-13 7:35
mveRichard MacCutchan13-Mar-13 7:35 
GeneralRe: Multiple Column combobox and list box Pin
JohnGreen459514-Mar-13 6:58
JohnGreen459514-Mar-13 6:58 
GeneralRe: Multiple Column combobox and list box Pin
Richard MacCutchan14-Mar-13 7:24
mveRichard MacCutchan14-Mar-13 7:24 
Questioncrystal report with vb.net and sql server database Pin
tonifirnandes12-Mar-13 20:29
tonifirnandes12-Mar-13 20:29 
AnswerRe: crystal report with vb.net and sql server database Pin
Dave Kreskowiak13-Mar-13 1:13
mveDave Kreskowiak13-Mar-13 1:13 
QuestionHow to disable keyboard input, but keep USB-scanner input in a textbox? Pin
Martijnn12-Mar-13 3:55
Martijnn12-Mar-13 3:55 
AnswerRe: How to disable keyboard input, but keep USB-scanner input in a textbox? Pin
David Mujica12-Mar-13 4:46
David Mujica12-Mar-13 4:46 

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.