Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Please help me with my project work. Pin
Peter_jnr29-Nov-13 4:44
professionalPeter_jnr29-Nov-13 4:44 
GeneralRe: Please help me with my project work. Pin
Mycroft Holmes29-Nov-13 12:32
professionalMycroft Holmes29-Nov-13 12:32 
AnswerRe: Please help me with my project work. Pin
Eddy Vluggen28-Nov-13 10:08
professionalEddy Vluggen28-Nov-13 10:08 
GeneralRe: Please help me with my project work. Pin
Peter_jnr29-Nov-13 4:45
professionalPeter_jnr29-Nov-13 4:45 
QuestionRe: Please help me with my project work. Pin
Eddy Vluggen6-Dec-13 5:55
professionalEddy Vluggen6-Dec-13 5:55 
AnswerRe: Please help me with my project work. Pin
Peter_jnr16-Feb-14 11:54
professionalPeter_jnr16-Feb-14 11:54 
QuestionVB 2010 Report is Blank Pin
nyt197227-Nov-13 20:34
professionalnyt197227-Nov-13 20:34 
QuestionWhat do i need to dim the textbox name as? Pin
RedIrishMan26-Nov-13 16:21
RedIrishMan26-Nov-13 16:21 
Hello, I am fairly new at programming, but I am learning. I am making a small application for my wife so she can record her babysitting scheduled through the week. Each day has three textboxes, the start time, the end time, and result. I need to know what to dim result as so I can insert the difference of the times entered into the textbox into the third textbox.

Public Class Form1
Dim startTime As String
Dim endTime As String
'Dim result As

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim dFrom As DateTime
Dim dTo As DateTime
Dim sDateFrom As String = startTime
Dim sDateTo As String = endTime
If DateTime.TryParse(sDateFrom, dFrom) AndAlso DateTime.TryParse(sDateTo, dTo) Then
Dim TS As TimeSpan = dTo - dFrom
Dim hour As Integer = TS.Hours
Dim mins As Integer = TS.Minutes
Dim timeDiff As String = ((hour.ToString("00") & ":") + mins.ToString("00"))
'result = timeDiff
End If
End Sub

Private Sub rbM1_CheckedChanged(sender As Object, e As EventArgs) Handles rbW1.CheckedChanged, rbTh1.CheckedChanged, rbT1.CheckedChanged, rbM1.CheckedChanged, rbF1.CheckedChanged
Dim rb As RadioButton = DirectCast(sender, RadioButton)
If rb.Checked = True Then
Select Case rb.Name
Case "rbM1"
startTime = m1start.Text
endTime = m1end.Text
'result = m1result.Text
Case "rbT1"
startTime = t1start.Text
endTime = t1end.Text
'result = t1result.Text
Case "rbW1"
startTime = w1start.Text
endTime = w1end.Text
'result = w1result.Text
End Select
End If
End Sub
End Class
VB
<pre lang="vb">

AnswerRe: What do i need to dim the textbox name as? Pin
RedIrishMan26-Nov-13 16:38
RedIrishMan26-Nov-13 16:38 
AnswerRe: What do i need to dim the textbox name as? Pin
Bernhard Hiller26-Nov-13 22:39
Bernhard Hiller26-Nov-13 22:39 
QuestionScroll Bar Acts Wiered Pin
DipeshTrivedi25-Nov-13 3:28
DipeshTrivedi25-Nov-13 3:28 
AnswerRe: Scroll Bar Acts Wiered Pin
Mycroft Holmes25-Nov-13 11:29
professionalMycroft Holmes25-Nov-13 11:29 
QuestionSorting using User Session Pin
Commish1323-Nov-13 14:14
professionalCommish1323-Nov-13 14:14 
AnswerRe: Sorting using User Session Pin
Bernhard Hiller24-Nov-13 20:51
Bernhard Hiller24-Nov-13 20:51 
QuestionFunction Calling 2 Different Stored Procedures Pin
Commish1322-Nov-13 6:18
professionalCommish1322-Nov-13 6:18 
AnswerRe: Function Calling 2 Different Stored Procedures Pin
Richard MacCutchan22-Nov-13 7:06
mveRichard MacCutchan22-Nov-13 7:06 
GeneralRe: Function Calling 2 Different Stored Procedures Pin
Eddy Vluggen22-Nov-13 7:09
professionalEddy Vluggen22-Nov-13 7:09 
GeneralRe: Function Calling 2 Different Stored Procedures Pin
Richard MacCutchan22-Nov-13 7:33
mveRichard MacCutchan22-Nov-13 7:33 
AnswerRe: Function Calling 2 Different Stored Procedures Pin
Eddy Vluggen22-Nov-13 7:07
professionalEddy Vluggen22-Nov-13 7:07 
GeneralRe: Function Calling 2 Different Stored Procedures Pin
Commish1322-Nov-13 8:22
professionalCommish1322-Nov-13 8:22 
GeneralRe: Function Calling 2 Different Stored Procedures Pin
Eddy Vluggen26-Nov-13 11:28
professionalEddy Vluggen26-Nov-13 11:28 
Questionhow to display the size of the camera sensor in vb.net Pin
fitriadinurdin21-Nov-13 19:33
fitriadinurdin21-Nov-13 19:33 
QuestionRe: how to display the size of the camera sensor in vb.net Pin
Eddy Vluggen22-Nov-13 7:11
professionalEddy Vluggen22-Nov-13 7:11 
QuestionOverlapping with a Picturebox other controls having the picturebox transparent background VB .NET (update) Pin
jose mandurrino18-Nov-13 23:35
jose mandurrino18-Nov-13 23:35 
QuestionRe: Overlapping with a Picturebox other controls having the picturebox transparent background VB .NET Pin
Richard MacCutchan19-Nov-13 4:37
mveRichard MacCutchan19-Nov-13 4:37 

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.