Click here to Skip to main content
15,906,463 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: doubt in VB.Net "split" method Pin
Mycroft Holmes24-Feb-08 20:41
professionalMycroft Holmes24-Feb-08 20:41 
Generalvb.net Pin
Member 125837324-Feb-08 13:50
Member 125837324-Feb-08 13:50 
GeneralRe: vb.net Pin
Dave Kreskowiak25-Feb-08 10:39
mveDave Kreskowiak25-Feb-08 10:39 
QuestionHow do you get environment params assigned to a user who's not logged in? Pin
rasarx24-Feb-08 11:05
rasarx24-Feb-08 11:05 
AnswerRe: How do you get environment params assigned to a user who's not logged in? Pin
Mycroft Holmes24-Feb-08 20:03
professionalMycroft Holmes24-Feb-08 20:03 
Generalobject linked Collection Pin
Eli Nurman24-Feb-08 9:07
Eli Nurman24-Feb-08 9:07 
GeneralRe: object linked Collection Pin
Mycroft Holmes24-Feb-08 20:06
professionalMycroft Holmes24-Feb-08 20:06 
QuestionCalculations on Input Form Pin
IvanIT24-Feb-08 4:57
IvanIT24-Feb-08 4:57 
Hey guys (and gals),
I am trying to perform some basic calculations on a frmTimeAllocation that I am designing. As the users input the % of time spent among 4 projects, I would like the unused % time to be recorded in a lablel on the from. Below is the code I am using, but so far its not working for me - the % remains at 100%. Any suggestion on where I should go from here? TIA.

Private Sub updTime1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles updTime1.ValueChanged, updTime2.ValueChanged
Dim TimeWorked As String
Dim Time1 As Single
Dim Time2 As Single
Dim Time3 As Single
Dim Time4 As Single
Dim Rest As Single

TimeWorked = 100 / 100

'unallocated time across projects
Rest = TimeWorked - Time1 - Time2 - Time3 - Time4

If Rest > 0 Then
'Me.lblMessage.Text = Rest.ToString("c") & " still unallocated time"
Me.lblMessage.Text = FormatPercent(Rest, TriState.True) & " still unallocated time"
Else
Me.lblMessage.Text = ""

End If

End Sub
GeneralRe: Calculations on Input Form Pin
Luc Pattyn24-Feb-08 5:06
sitebuilderLuc Pattyn24-Feb-08 5:06 
QuestionRe: Calculations on Input Form Pin
IvanIT24-Feb-08 5:12
IvanIT24-Feb-08 5:12 
GeneralRe: Calculations on Input Form Pin
Luc Pattyn24-Feb-08 5:28
sitebuilderLuc Pattyn24-Feb-08 5:28 
GeneralRe: Calculations on Input Form Pin
IvanIT24-Feb-08 7:39
IvanIT24-Feb-08 7:39 
GeneralRe: Calculations on Input Form Pin
Luc Pattyn24-Feb-08 7:52
sitebuilderLuc Pattyn24-Feb-08 7:52 
GeneralRe: Calculations on Input Form Pin
Mycroft Holmes24-Feb-08 20:13
professionalMycroft Holmes24-Feb-08 20:13 
GeneralRe: Calculations on Input Form Pin
Luc Pattyn25-Feb-08 2:07
sitebuilderLuc Pattyn25-Feb-08 2:07 
GeneralChoosing a Default Date in a Date Time Picker Pin
AAGTHosting23-Feb-08 14:17
AAGTHosting23-Feb-08 14:17 
GeneralRe: Choosing a Default Date in a Date Time Picker Pin
Christian Graus23-Feb-08 14:32
protectorChristian Graus23-Feb-08 14:32 
GeneralRe: Choosing a Default Date in a Date Time Picker Pin
darkelv23-Feb-08 18:26
darkelv23-Feb-08 18:26 
General"Snap" to other forms with UpdateLayeredWindow and WndProc Pin
winmedia23-Feb-08 9:29
winmedia23-Feb-08 9:29 
Questionsimulated table Pin
Aaliyaa23-Feb-08 5:52
Aaliyaa23-Feb-08 5:52 
GeneralRe: simulated table Pin
Christian Graus23-Feb-08 10:51
protectorChristian Graus23-Feb-08 10:51 
GeneralArray Pin
Dave McCool23-Feb-08 5:27
Dave McCool23-Feb-08 5:27 
GeneralRe: Array Pin
User 27100923-Feb-08 10:20
User 27100923-Feb-08 10:20 
GeneralRe: Array Pin
Dave McCool18-Apr-08 3:41
Dave McCool18-Apr-08 3:41 
GeneralPlaying stream by windows media player com object Pin
Areff23-Feb-08 2:13
Areff23-Feb-08 2:13 

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.