Click here to Skip to main content
15,915,764 members
Home / Discussions / Visual Basic
   

Visual Basic

 
JokeRe: Interactive graphic - Visual Basic 2005 Pin
CPallini18-Aug-08 22:02
mveCPallini18-Aug-08 22:02 
GeneralRe: Interactive graphic - Visual Basic 2005 Pin
brajoez19-Aug-08 8:35
brajoez19-Aug-08 8:35 
GeneralRe: Interactive graphic - Visual Basic 2005 Pin
CPallini19-Aug-08 20:57
mveCPallini19-Aug-08 20:57 
GeneralRe: Interactive graphic - Visual Basic 2005 Pin
brajoez20-Aug-08 7:24
brajoez20-Aug-08 7:24 
GeneralRe: Interactive graphic - Visual Basic 2005 Pin
CPallini20-Aug-08 21:09
mveCPallini20-Aug-08 21:09 
QuestionVb6 - Adding a module to my project at runtime Pin
setedivento18-Aug-08 9:30
setedivento18-Aug-08 9:30 
AnswerRe: Vb6 - Adding a module to my project at runtime Pin
nlarson1118-Aug-08 10:04
nlarson1118-Aug-08 10:04 
GeneralRe: Vb6 - Adding a module to my project at runtime [modified] Pin
setedivento18-Aug-08 20:16
setedivento18-Aug-08 20:16 
that's exactly what i want to avoid.
let's say the matter is a bit more complicated in fact.
first of all, i have explained myself at least very badly. if i'd just like to add to the form a control which type i don't know (for it must be entered by the user) then i'd only need to write code like the following (never mind the new control's events-management with event handlers, for now -- like you said the controls will be dead on the form):

<br />
Dim x As Object<br />
Set x = Me.Controls.Add(textbox.text, "Button1")<br />
x.Visible = True<br />
,

leaving to the user the responsibility to fill textbox.text with the correct object-identifier string -- in this case textbox.text should be "Vb.CommandButton"

but the fact is i want a function (called SetObjectProperty) to set, of a specified object, a property i don't know. To be more clear, the arguments of the function must be:
SetObjectProperty(Control as string, Property as string, Value as variant).
let's suppose the user doesn't worry about passing the Control argument to the function (he only wants new command buttons to be created on the form): but the user wants to set a property for that object! he wants the property indicated in the Property argument to be changed, for the new command button, to Value. so, let's also suppose, to simplify things, he enters in a textbox1 a string representing the property of the command button he intends to change, while in a textbox2 a string representing the new value of that property: well to handle this i can't have code such as for example
<br />
<br />
Dim x As CommandButton<br />
Set x = Me.Controls.Add("Vb.CommandButton", "Button1")<br />
x.(textbox1.text)= textbox2.text  '<-- that's wrong<br />
<br />

i can't do unless i add some code to the project at runtime (it is the only way i can imagine; if other exist to access a property of a control, please tell me)
and since i am writing an activex dll, writing a pair of property get/let procedures (for each property of each new control i let te user create on the form) would be frustrating, and moreover would sensibly reduce code-processing speed and efficiency.

modified on Tuesday, August 19, 2008 2:23 AM

GeneralRe: Vb6 - Adding a module to my project at runtime Pin
setedivento19-Aug-08 21:28
setedivento19-Aug-08 21:28 
QuestionXML Related in VB? Pin
ddspliting18-Aug-08 7:25
ddspliting18-Aug-08 7:25 
AnswerRe: XML Related in VB? Pin
jzonthemtn18-Aug-08 9:15
jzonthemtn18-Aug-08 9:15 
AnswerRe: XML Related in VB? Pin
Christian Graus18-Aug-08 11:52
protectorChristian Graus18-Aug-08 11:52 
JokeRe: XML Related in VB? Pin
Mycroft Holmes18-Aug-08 14:10
professionalMycroft Holmes18-Aug-08 14:10 
GeneralRe: XML Related in VB? Pin
Christian Graus18-Aug-08 14:25
protectorChristian Graus18-Aug-08 14:25 
GeneralRe: XML Related in VB? Pin
brajoez18-Aug-08 14:33
brajoez18-Aug-08 14:33 
GeneralRe: XML Related in VB? Pin
Jon_Boy19-Aug-08 1:59
Jon_Boy19-Aug-08 1:59 
QuestionHow to handle Listview mouse events? Pin
Chaitanya kumar CVSS18-Aug-08 7:12
Chaitanya kumar CVSS18-Aug-08 7:12 
AnswerRe: How to handle Listview mouse events? Pin
brajoez18-Aug-08 14:43
brajoez18-Aug-08 14:43 
GeneralRe: How to handle Listview mouse events? Pin
Chaitanya kumar CVSS19-Aug-08 1:47
Chaitanya kumar CVSS19-Aug-08 1:47 
QuestionMasked TextBox Direction Pin
emadmilan18-Aug-08 7:00
emadmilan18-Aug-08 7:00 
AnswerRe: Masked TextBox Direction Pin
Jon_Boy18-Aug-08 7:13
Jon_Boy18-Aug-08 7:13 
GeneralRe: Masked TextBox Direction Pin
emadmilan18-Aug-08 9:18
emadmilan18-Aug-08 9:18 
GeneralRe: Masked TextBox Direction Pin
Jon_Boy19-Aug-08 1:47
Jon_Boy19-Aug-08 1:47 
QuestionOdd problem - macros are not working at all... Pin
Jon_Boy18-Aug-08 5:55
Jon_Boy18-Aug-08 5:55 
AnswerRe: Odd problem - macros are not working at all... Pin
Jon_Boy19-Aug-08 3:32
Jon_Boy19-Aug-08 3:32 

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.