Click here to Skip to main content
16,005,169 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDetect Windows XP SP2 firewall. Pin
japel6-Jan-07 12:39
japel6-Jan-07 12:39 
AnswerRe: Detect Windows XP SP2 firewall. Pin
Ed.Poore7-Jan-07 6:20
Ed.Poore7-Jan-07 6:20 
Questionuse sub in module Pin
SilentBob1016-Jan-07 10:13
SilentBob1016-Jan-07 10:13 
AnswerRe: use sub in module Pin
Christian Graus6-Jan-07 10:51
protectorChristian Graus6-Jan-07 10:51 
GeneralRe: use sub in module Pin
SilentBob1016-Jan-07 11:02
SilentBob1016-Jan-07 11:02 
GeneralRe: use sub in module Pin
Christian Graus6-Jan-07 11:09
protectorChristian Graus6-Jan-07 11:09 
GeneralRe: use sub in module Pin
SilentBob1016-Jan-07 11:19
SilentBob1016-Jan-07 11:19 
GeneralRe: use sub in module Pin
SilentBob1016-Jan-07 11:50
SilentBob1016-Jan-07 11:50 
This is what I love about programming. I thinker a bit and voila, I got it :->.
Changed it back again, but added a single line. Can you find it?

Public Sub ConnStatusIcon(ByVal ConnState As String)<br />
<br />
        Dim RedIcon As New Icon(Application.StartupPath & "\Icons\RedLight.ico")<br />
        Dim YellowIcon As New Icon(Application.StartupPath & "\Icons\YellowLight.ico")<br />
        Dim GreenIcon As New Icon(Application.StartupPath & "\Icons\GreenLight.ico")<br />
<br />
        Dim frmNewMain As New frmMain<br />
        frmNewMain = frmMain.ActiveForm<br />
<br />
        Select Case ConnState<br />
            Case "Open"<br />
                frmNewMain.statIcon.Icon = RedIcon<br />
<br />
            Case "Closed"<br />
                frmNewMain.statIcon.Icon = GreenIcon<br />
            Case Else<br />
                frmNewMain.statIcon.Icon = YellowIcon<br />
        End Select<br />
<br />
    End Sub


I know, I know, still a long way to go, but for now it will do Poke tongue | ;-P
GeneralRe: use sub in module Pin
Christian Graus6-Jan-07 12:17
protectorChristian Graus6-Jan-07 12:17 
QuestionUsing Button in GridView Pin
kaliem6-Jan-07 9:02
kaliem6-Jan-07 9:02 
AnswerRe: Using Button in GridView Pin
kaliem6-Jan-07 9:09
kaliem6-Jan-07 9:09 
Questionneed help in exporting a report using crystal reports in Visual studio 2005 (vb.net) Pin
horizon16-Jan-07 7:10
horizon16-Jan-07 7:10 
Questionfont in message box Pin
charchabil036-Jan-07 2:01
charchabil036-Jan-07 2:01 
AnswerRe: font in message box Pin
MatrixCoder6-Jan-07 6:23
MatrixCoder6-Jan-07 6:23 
AnswerRe: font in message box Pin
Thomas Stockwell6-Jan-07 8:19
professionalThomas Stockwell6-Jan-07 8:19 
AnswerRe: font in message box Pin
Paul Conrad6-Jan-07 13:11
professionalPaul Conrad6-Jan-07 13:11 
GeneralRe: font in message box Pin
charchabil0326-Jan-07 7:23
charchabil0326-Jan-07 7:23 
QuestionFrom String to Type Pin
Curse4Life6-Jan-07 1:53
Curse4Life6-Jan-07 1:53 
AnswerRe: From String to Type Pin
Colin Angus Mackay6-Jan-07 3:09
Colin Angus Mackay6-Jan-07 3:09 
GeneralRe: From String to Type Pin
Curse4Life6-Jan-07 7:43
Curse4Life6-Jan-07 7:43 
GeneralRe: From String to Type Pin
Colin Angus Mackay6-Jan-07 7:52
Colin Angus Mackay6-Jan-07 7:52 
GeneralRe: From String to Type Pin
Curse4Life6-Jan-07 9:11
Curse4Life6-Jan-07 9:11 
GeneralRe: From String to Type Pin
Colin Angus Mackay6-Jan-07 13:59
Colin Angus Mackay6-Jan-07 13:59 
QuestionAxMsFlexGrid Pin
K edar V6-Jan-07 1:26
K edar V6-Jan-07 1:26 
QuestionCall win32 function from vb.net Pin
shabyb6-Jan-07 0:42
shabyb6-Jan-07 0:42 

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.