Click here to Skip to main content
15,910,083 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Set image transparent Pin
Luc Pattyn11-Dec-10 1:03
sitebuilderLuc Pattyn11-Dec-10 1:03 
GeneralRe: Set image transparent Pin
Keith Barrow11-Dec-10 2:32
professionalKeith Barrow11-Dec-10 2:32 
GeneralRe: Set image transparent Pin
Dave Kreskowiak11-Dec-10 4:29
mveDave Kreskowiak11-Dec-10 4:29 
QuestionSet color of image transparent Pin
IouriKa10-Dec-10 10:31
IouriKa10-Dec-10 10:31 
AnswerRe: Set color of image transparent Pin
Kschuler10-Dec-10 11:25
Kschuler10-Dec-10 11:25 
GeneralRe: Set color of image transparent Pin
IouriKa10-Dec-10 13:21
IouriKa10-Dec-10 13:21 
GeneralRe: Set color of image transparent Pin
Kschuler13-Dec-10 3:18
Kschuler13-Dec-10 3:18 
Questionwhy it didn't find the control with its name?[SOLVED] Pin
sanyexian7-Dec-10 20:28
sanyexian7-Dec-10 20:28 
Hello,everyone! I tried to use Sub like below to caculate. But when the project run, the two textboxes which I wanted to get their "Text" value could not find.Could anyone give me some suggestions or help? Thank you!
Public Function TotalSub(ByVal j As Integer, ByVal diameter As String, ByVal thickness As String, ByVal material As String)
        Dim txtGG, txtYL As TextBox
        Dim b As String = ""
        Dim sum As Single = 0
        For Each ctrl As Control In frmQia.Controls
            If Not TypeOf ctrl Is TextBox Then Continue For
            For i = 1 To j
                If ctrl.Name = "txtTJGG" & i Then
                    txtGG = ctrl
                ElseIf ctrl.Name = "txtTJYL" & i Then
                    txtYL = ctrl
                End If
                b = Caculate.Weight_Sub(diameter, txtGG.Text, thickness, material, txtYL.Text)
                sum += CSng(b)
            Next
        Next
        Return sum
    End Function


(I have try to find textboxes like these code in another project with only one form, it could find them. So I don't know why it didn't work when it in a project with some formsConfused | :confused: Confused | :confused: )
AnswerRe: why it didn't find the control with its name? Pin
Luc Pattyn8-Dec-10 0:04
sitebuilderLuc Pattyn8-Dec-10 0:04 
AnswerRe: why it didn't find the control with its name? Pin
Eddy Vluggen8-Dec-10 0:35
professionalEddy Vluggen8-Dec-10 0:35 
AnswerRe: why it didn't find the control with its name? Pin
Dave Kreskowiak8-Dec-10 2:10
mveDave Kreskowiak8-Dec-10 2:10 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 5:02
sanyexian8-Dec-10 5:02 
GeneralRe: why it didn't find the control with its name? Pin
Simon_Whale8-Dec-10 5:13
Simon_Whale8-Dec-10 5:13 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 5:17
sanyexian8-Dec-10 5:17 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 15:04
sanyexian8-Dec-10 15:04 
GeneralRe: why it didn't find the control with its name? Pin
Henry Minute8-Dec-10 15:46
Henry Minute8-Dec-10 15:46 
GeneralRe: why it didn't find the control with its name? Pin
sanyexian8-Dec-10 19:36
sanyexian8-Dec-10 19:36 
Questionhello i have a question about incompatible pointer type [modified] Pin
lxlenovostar6-Dec-10 18:22
lxlenovostar6-Dec-10 18:22 
AnswerRe: hello i have a question about incompatible pointer type Pin
Luc Pattyn6-Dec-10 20:24
sitebuilderLuc Pattyn6-Dec-10 20:24 
AnswerRe: hello i have a question about incompatible pointer type Pin
_Erik_7-Dec-10 1:08
_Erik_7-Dec-10 1:08 
GeneralRe: hello i have a question about incompatible pointer type Pin
lxlenovostar7-Dec-10 4:37
lxlenovostar7-Dec-10 4:37 
QuestionFinding Field Length from DataGridView - SOLVED Pin
chrispowell123456-Dec-10 0:20
chrispowell123456-Dec-10 0:20 
AnswerRe: Finding Field Length from DataGridView Pin
Andy_L_J6-Dec-10 21:08
Andy_L_J6-Dec-10 21:08 
GeneralRe: Finding Field Length from DataGridView Pin
chrispowell123457-Dec-10 1:22
chrispowell123457-Dec-10 1:22 
QuestionProblem solved...see code Pin
pbsjr5-Dec-10 5:09
pbsjr5-Dec-10 5:09 

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.