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

Visual Basic

 
QuestionInteractive graphic - Visual Basic 2005 [modified] Pin
brajoez18-Aug-08 14:14
brajoez18-Aug-08 14:14 
AnswerRe: Interactive graphic - Visual Basic 2005 Pin
Christian Graus18-Aug-08 18:54
protectorChristian Graus18-Aug-08 18:54 
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 
Hi everybody.
Can anyone please help? i have the following problem:
as per title, i need to add a code module to the active vb project at runtime, like i know and i have experimented is possible from the Vbe object in vba.
Please see this article to understand what i mean:

http://www.cpearson.com/excel/vbe.aspx

So, to come to the point, i have added a reference to 'microsoft visual basic 6.0 extensibility' in my project references, then i have added this testing code to a form:

Private Sub Form_Click()<br />
Set x = VBIDE.VBE<br />
s = x.ActiveVBProject.Name<br />
End Sub


but it throws an error at runtime ('method or data member not found').
i think the reason for this error is that the VbIDE.Vbe object only refers to the vba IDE (the one you see built in msoffice applications), not the vb6 IDE i am working in. i need to first get a reference to my project, to be able to add a code module to it at runtime!
i have also tried to set a reference to 'microsoft development environment 6.0' in my project, to use DTE.projects property, but still no luck.
can anyone help? it's driving me mad...
thank you very much in advance

ps: why do i want that feature to work? because i need to add a control to a form without any previous knowledge of what type of control it will be. E.g. (roughly describing the situation) i have a textbox and a command button on the form and must add to the form the type of control the user enters in the textbox text.
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 
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 

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.