Click here to Skip to main content
15,899,026 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problems Calling A Function Pin
nlarson1116-Oct-08 7:56
nlarson1116-Oct-08 7:56 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 8:01
Phantom71516-Oct-08 8:01 
GeneralRe: Problems Calling A Function Pin
nlarson1116-Oct-08 8:05
nlarson1116-Oct-08 8:05 
AnswerRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 8:28
Caio Kinzel Filho16-Oct-08 8:28 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 8:44
Phantom71516-Oct-08 8:44 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:01
Caio Kinzel Filho16-Oct-08 9:01 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 9:04
Phantom71516-Oct-08 9:04 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:15
Caio Kinzel Filho16-Oct-08 9:15 
I did this:
MsgBox(getlabel(DayOfWeek.Sunday, 1))
MsgBox(getlabel(getCurrentDayOfWeek("su"), 1))


with your function and (for shortness..):

Function getlabel(ByVal day As DayOfWeek, ByVal calendarRow As Integer) As String
    Select Case day  'Get a label name
        Case DayOfWeek.Sunday
            Select Case calendarRow
                Case 1
                    Return "Sunday"
            End Select
        Case DayOfWeek.Monday
            Select Case calendarRow
                Case 1
                    Return "Monday"
            End Select
        Case DayOfWeek.Tuesday
            Select Case calendarRow
                Case 1
                    Return "Tuesday"
            End Select
    End Select
End Function


And it works...other than that...i think you will have to post your entire code...

Intelligence is almost useless for those who have nothing else!

Email: caiokf@gmail.com

GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho16-Oct-08 9:17
Caio Kinzel Filho16-Oct-08 9:17 
GeneralRe: Problems Calling A Function Pin
Phantom71516-Oct-08 9:37
Phantom71516-Oct-08 9:37 
GeneralRe: Problems Calling A Function Pin
Caio Kinzel Filho17-Oct-08 6:55
Caio Kinzel Filho17-Oct-08 6:55 
QuestionThreading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 5:56
Jim Buckley Barrett16-Oct-08 5:56 
QuestionRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 6:21
Jim Buckley Barrett16-Oct-08 6:21 
AnswerRe: Threading Problem in VB.NET Pin
Steven J Jowett16-Oct-08 6:29
Steven J Jowett16-Oct-08 6:29 
QuestionRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 6:51
Jim Buckley Barrett16-Oct-08 6:51 
AnswerRe: Threading Problem in VB.NET Pin
Dave Kreskowiak16-Oct-08 6:55
mveDave Kreskowiak16-Oct-08 6:55 
GeneralRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 7:00
Jim Buckley Barrett16-Oct-08 7:00 
GeneralRe: Threading Problem in VB.NET Pin
Dave Kreskowiak16-Oct-08 7:13
mveDave Kreskowiak16-Oct-08 7:13 
GeneralRe: Threading Problem in VB.NET Pin
Paul Conrad16-Oct-08 7:46
professionalPaul Conrad16-Oct-08 7:46 
QuestionOpration has timed out... Pin
rohitkpurohit16-Oct-08 4:15
rohitkpurohit16-Oct-08 4:15 
AnswerRe: Opration has timed out... Pin
Dave Kreskowiak16-Oct-08 6:49
mveDave Kreskowiak16-Oct-08 6:49 
QuestionClosing an application after it was opened with System.Diagnostics.Process.Start Pin
farmer16-Oct-08 2:58
farmer16-Oct-08 2:58 
AnswerRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
d_camillo16-Oct-08 3:13
d_camillo16-Oct-08 3:13 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
farmer16-Oct-08 4:52
farmer16-Oct-08 4:52 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Dave Kreskowiak16-Oct-08 6:41
mveDave Kreskowiak16-Oct-08 6: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.