Click here to Skip to main content
15,914,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProblem with thread Pin
Nilesh Hapse6-Mar-07 5:11
Nilesh Hapse6-Mar-07 5:11 
AnswerRe: Problem with thread Pin
Scott Page6-Mar-07 13:35
professionalScott Page6-Mar-07 13:35 
GeneralRe: Problem with thread Pin
Nilesh Hapse7-Mar-07 22:28
Nilesh Hapse7-Mar-07 22:28 
QuestionUsing Assembly with multiple versions Pin
nitin_ion6-Mar-07 4:53
nitin_ion6-Mar-07 4:53 
AnswerRe: Using Assembly with multiple versions Pin
Parwej Ahamad6-Mar-07 7:22
professionalParwej Ahamad6-Mar-07 7:22 
GeneralRe: Using Assembly with multiple versions Pin
nitin_ion6-Mar-07 16:27
nitin_ion6-Mar-07 16:27 
QuestionControling the Button in Window Form Pin
drexler_kk6-Mar-07 4:18
drexler_kk6-Mar-07 4:18 
AnswerRe: Controling the Button in Window Form Pin
JUNEYT6-Mar-07 5:22
JUNEYT6-Mar-07 5:22 
Okay it is easy actually see the code below please. You can also change the forecolor of button by removing the remark. WTF | :WTF:

<br />
Public Class Form1<br />
    Dim OrginalColor As New Color<br />
<br />
    Public Sub New()<br />
<br />
        ' This call is required by the Windows Form Designer.<br />
        InitializeComponent()<br />
<br />
        ' Add any initialization after the InitializeComponent() call.<br />
        OrginalColor = Button1.BackColor<br />
    End Sub<br />
<br />
    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        Static ClickCount As Int32<br />
<br />
        ClickCount += 1<br />
<br />
<br />
        Select Case ClickCount <br />
<br />
               Case 1<br />
                     Msgbox ("Do 1st thing")<br />
               Case 2<br />
                     Msgbox ("Do 2nd thing")<br />
               Case 3<br />
                     Button1.BackColor = OrginalColor<br />
                     Button1.ForeColor = Color.Black<br />
                     ClickCount = 0<br />
                     Exit Sub<br />
        End Select<br />
<br />
        Randomize()<br />
<br />
        Dim NewColor1 As Int32 = CInt(Int((255 - 1 + 1) * Rnd() + 1))<br />
        Dim NewColor2 As Int32 = CInt(Int((255 - 1 + 1) * Rnd() + 1))<br />
        Dim NewColor3 As Int32 = CInt(Int((255 - 1 + 1) * Rnd() + 1))<br />
<br />
        Button1.BackColor = Color.FromArgb(NewColor1, NewColor2, NewColor3)<br />
<br />
        'You can remove remark to enable forecolor<br />
        'Button1.ForeColor = Color.FromArgb(NewColor1, NewColor2, NewColor3)<br />
<br />
<br />
    End Sub<br />
<br />
<br />
End Class<br />
<br />
<br />
<br />




What a curious mind needs to discover knowledge is noting else than a pin-hole.


GeneralRe: Controling the Button in Window Form Pin
drexler_kk6-Mar-07 18:55
drexler_kk6-Mar-07 18:55 
QuestionIntergrate program in Windows Pin
johnjsm6-Mar-07 3:32
johnjsm6-Mar-07 3:32 
AnswerRe: Intergrate program in Windows Pin
Richard Jones6-Mar-07 3:45
Richard Jones6-Mar-07 3:45 
GeneralRe: Intergrate program in Windows Pin
johnjsm6-Mar-07 3:56
johnjsm6-Mar-07 3:56 
QuestionSort a collection class? Pin
DA_Loring6-Mar-07 3:03
DA_Loring6-Mar-07 3:03 
AnswerRe: Sort a collection class? Pin
kubben6-Mar-07 3:27
kubben6-Mar-07 3:27 
GeneralRe: Sort a collection class? Pin
DA_Loring6-Mar-07 3:33
DA_Loring6-Mar-07 3:33 
QuestionHow to ping in vb.net Pin
TECABA6-Mar-07 2:51
TECABA6-Mar-07 2:51 
AnswerRe: How to ping in vb.net Pin
nlarson116-Mar-07 3:38
nlarson116-Mar-07 3:38 
GeneralRe: How to ping in vb.net Pin
TECABA6-Mar-07 3:50
TECABA6-Mar-07 3:50 
GeneralRe: How to ping in vb.net Pin
nlarson116-Mar-07 4:01
nlarson116-Mar-07 4:01 
GeneralRe: How to ping in vb.net Pin
TECABA6-Mar-07 4:16
TECABA6-Mar-07 4:16 
Questionhow to add .00 to number in datagrid Pin
Amit Sk Sharma6-Mar-07 0:53
Amit Sk Sharma6-Mar-07 0:53 
AnswerRe: how to add .00 to number in datagrid Pin
kane6-Mar-07 1:16
kane6-Mar-07 1:16 
AnswerRe: how to add .00 to number in datagrid Pin
Christian Graus6-Mar-07 1:28
protectorChristian Graus6-Mar-07 1:28 
Questionvb.net datagrid Pin
sukanyadutta6-Mar-07 0:24
sukanyadutta6-Mar-07 0:24 
AnswerRe: vb.net datagrid Pin
Amit Sk Sharma6-Mar-07 0:59
Amit Sk Sharma6-Mar-07 0:59 

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.