Click here to Skip to main content
15,902,842 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Hi Smile | :)

It might be handy to emit the name and types of the controls that you encounter to the debugger. Something similar to the code below would reveal the names of the components on your form that get looped;
VB.NET
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
        System.Diagnostics.Debugger.WriteLine ("Type {0}, named {1}", ctrl.GetType().FullName,  ctrl.Name)
            If Not TypeOf ctrl Is TextBox Then Continue For
            For i = 1 To j
                If ctrl.Name = "txtTJGG" & i Then
                    txtGG = ctrl

I'm guessing that the TextBox is contained inside another control. That means that you'd have to loop the Controls-collection of the Control that you've put the textbox in.
I are Troll Suspicious | :suss:

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 
AnswerRe: System.Drawing.Bitmap.save does not save image Pin
Dave Kreskowiak5-Dec-10 7:44
mveDave Kreskowiak5-Dec-10 7:44 
GeneralRe: System.Drawing.Bitmap.save does not save image Pin
pbsjr5-Dec-10 9:43
pbsjr5-Dec-10 9:43 

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.