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

Visual Basic

 
GeneralRe: Testing if a varible is null Pin
Luc Pattyn4-Feb-10 5:36
sitebuilderLuc Pattyn4-Feb-10 5:36 
GeneralRe: Testing if a varible is null Pin
DaveAuld4-Feb-10 6:14
professionalDaveAuld4-Feb-10 6:14 
GeneralRe: Testing if a varible is null Pin
Luc Pattyn4-Feb-10 6:18
sitebuilderLuc Pattyn4-Feb-10 6:18 
GeneralRe: Testing if a varible is null Pin
EliottA4-Feb-10 7:26
EliottA4-Feb-10 7:26 
AnswerRe: Testing if a varible is null Pin
RachelSo4-Feb-10 8:08
RachelSo4-Feb-10 8:08 
GeneralRe: Testing if a varible is null Pin
Thomas Krojer4-Feb-10 21:47
Thomas Krojer4-Feb-10 21:47 
QuestionHow do I update a progress bar that I create at runtime. Pin
castingflame3-Feb-10 7:16
castingflame3-Feb-10 7:16 
AnswerRe: How do I update a progress bar that I create at runtime. Pin
Luc Pattyn3-Feb-10 7:37
sitebuilderLuc Pattyn3-Feb-10 7:37 
the normal way to refer an object is by a reference, which you keep in a variable.

dim P as ProgressBar = new ProgressBar()

is what makes
P.Value = 42

possible. But "P" is NOT the name of the progress bar. It is the name of the variable that you can use to refer to the progress bar. And there is no Name property involved.

dim P as ProgressBar = new ProgressBar()
dim Q as ProgressBar = P
P.Value = 42
Q.Value = 13

uses two variables to refer to one and only one progress bar, which ends with a value of 13.
As such, the progressbar *has* no name, the variable(s) referring to it have a name.

On top of that, Controls have a Name property, which is not directly useful, however it is where Visual Designer stores the name of the variable it creates to hold the reference to that Control, so it can later on generate more code for that Control.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


AnswerRe: How do I update a progress bar that I create at runtime. Pin
William Winner4-Feb-10 7:23
William Winner4-Feb-10 7:23 
GeneralRe: How do I update a progress bar that I create at runtime. Pin
David Skelly4-Feb-10 22:34
David Skelly4-Feb-10 22:34 
QuestionSchema.Add returns Illegal characters in path. Pin
c_crookston3-Feb-10 6:16
c_crookston3-Feb-10 6:16 
AnswerRe: Schema.Add returns Illegal characters in path. Pin
c_crookston3-Feb-10 6:29
c_crookston3-Feb-10 6:29 
QuestionCan not set the name property of a timer at runtime - VB.NET Pin
castingflame3-Feb-10 2:07
castingflame3-Feb-10 2:07 
AnswerRe: Can not set the name property of a timer at runtime - VB.NET Pin
Covean3-Feb-10 2:34
Covean3-Feb-10 2:34 
AnswerRe: Can not set the name property of a timer at runtime - VB.NET Pin
Luc Pattyn3-Feb-10 2:34
sitebuilderLuc Pattyn3-Feb-10 2:34 
AnswerRe: Can not set the name property of a timer at runtime - VB.NET Pin
DaveAuld3-Feb-10 2:36
professionalDaveAuld3-Feb-10 2:36 
AnswerRe: Can not set the name property of a timer at runtime - VB.NET Pin
dan!sh 3-Feb-10 2:42
professional dan!sh 3-Feb-10 2:42 
AnswerRe: Can not set the name property of a timer at runtime - VB.NET Pin
Wayne Gaylard3-Feb-10 3:03
professionalWayne Gaylard3-Feb-10 3:03 
AnswerRe: Can not set the name property of a timer at runtime - VB.NET Pin
Dave Kreskowiak3-Feb-10 3:29
mveDave Kreskowiak3-Feb-10 3:29 
GeneralRe: Can not set the name property of a timer at runtime - VB.NET Pin
castingflame3-Feb-10 7:01
castingflame3-Feb-10 7:01 
GeneralRe: Can not set the name property of a timer at runtime - VB.NET Pin
Paul Roseby3-Feb-10 10:25
Paul Roseby3-Feb-10 10:25 
GeneralRe: Can not set the name property of a timer at runtime - VB.NET Pin
Paul Roseby3-Feb-10 10:28
Paul Roseby3-Feb-10 10:28 
QuestionListView: How to link columnheader into subitem Pin
jtpaa2-Feb-10 23:44
jtpaa2-Feb-10 23:44 
AnswerRe: ListView: How to link columnheader into subitem Pin
DaveAuld3-Feb-10 0:41
professionalDaveAuld3-Feb-10 0:41 
AnswerRe: ListView: How to link columnheader into subitem Pin
DaveAuld3-Feb-10 1:06
professionalDaveAuld3-Feb-10 1:06 

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.