Click here to Skip to main content
15,905,614 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Difference b/w VB.NET & C# Pin
CPallini10-Jan-07 11:51
mveCPallini10-Jan-07 11:51 
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 
Does this mean I have to create a hole new form, in a seperate class, and use that as my main MDI form?
Back to chapter 5 it is then Laugh | :laugh:
Translating from English to Dutch doesn't make it any easier either Poke tongue | ;-P

--edit--
Turned it in to a function Poke tongue | ;-P
 Public Function ConnStatusIcon(ByVal ConnState As String)<br />
<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 />
<br />
        Select Case ConnState<br />
            Case "Open"<br />
                Return RedIcon<br />
<br />
            Case "Closed"<br />
                Return GreenIcon<br />
            Case Else<br />
                Return YellowIcon<br />
        End Select<br />
        'frmNewMain.statIcon.Parent.Text = "Blablabla"<br />
<br />
    End Function


Using statIcon.Icon = ConnStatusIcon(dbConn.State.ToString) where-ever needed.
It's just an excercise, I'll study the rest later.;)
GeneralRe: use sub in module Pin
SilentBob1016-Jan-07 11:50
SilentBob1016-Jan-07 11:50 
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 

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.