o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Dynamically creating a form and control in a VBscript -

I need to create a VBscript which has 1 form, and at least one control.
I want to prompt the use to change the drive letter.

So I need a form, and a Dir List Box.

However, I don't know how to add a form or control to a vbscript, since it seems to be limited to variant data types only.

I will initially do this in a VB6 program, so I can see what properties need to have default values set, then move it over to a VBScript. It's also much easier to develop and debug in VB6 than in VBScript.


Would someone who has actually done this in VBScript, please point me to an example of adding a form & control in a vbscript? Unfortunatley, It's not quite the same as working in regular VB.

thanks

 

Dynamically creating a form and control in a VBscript -
I need to create a VBscript which has 1 form, and at least one control. I want to prompt the use to change the drive letter. So I need a form, and a Dir List Box. However, I don't know how to add a form or control to a vbscript, since it seems to be limited to variant data types


Check for Control Existence -
Hi, I was wondering what sort of syntax using VBscript would I have to use to check to see if a listbox exists on an html form? I'm dynamically creating the html page and not all the listboxes may be created. Thanks in advance. JazzBass


Dynamically invisible user control -
hai i created 2 user controls with list of controls. in my page i am having dropdown to select for the user control and dynamically creating object for that user control and displaying it. When i change the selection to display another User control, i am able to hide or put that


[2005] Web User Control Not Defined -
Ok Ive been through a book (read the section on web user controls) and many many web sites and all say the same thing about creating web user controls. I have succeeded in creating and getting them to display and even load dynamically. The problem I am having is when loading a user con


Media Player Control - Kill -
I have two questions. One, is it possible to dim something as a control then later go through and dim it as a specific control, such as a textbox or label (for dynamically creating) ? Secondly, I am dynamically creating a Media Player control and using it to play a video clip. Howev


Creating new form -
Hello guys. How do I create a new form dynamically (during runtime)? Is it like creating a new control? Hehe. Thanks guys!


Dynamically load a control and dynamically add other controls to that control -
Shows how to dynamically load a control (in this case a frame) and dynamically add other controls to that container (in this case a label). This will allow you to dynamically load a complex form (if you ever need to) with multiple controls.


Dynamically creating a control -
How do I dynamically create a control during run-time in VB? For eg. a text box. Remember, I will not be placing an instance of the textbox at design time.


Creating textboxes dynamically durin runtime -
I need to provide a number of textboxes on a form. The number required is varying, and I don't know how much are needed until runtime. (may be up to 40 or so. ) I could of course put enough onto the form and hide the ones I don't need, but I think it would be better to create them dyna


[2005] Table -
I am creating the table dynamically. I want that when i create a cell of table, i want to insert check box control into that cell dynamically. How i can Insert check box control dynamically into the cell of table which is also created dynamically. Thanks Imran Ahmad Mughal


Combos on User Control - Stays Dropped Down -
I am creating an Active X control in VB The controls are being loaded dynamically and I am having a problem where the combo(s) stay dropped down - the only way this can then be reset is to minimise the form and restore it, thus repainting the dropdown portion. So far I have tried


Outlook Voting Buttons -
Can anyone tell me how to add and control voting buttons on a custom form using VBScript? What I want to do is to automatically add voting buttons to my form when it is sent but dynamically because the button options may vary. E.g. If the user selects "A" from the combo bo


Adding ActiveX dynamically -
Hi guys. I'm trying to add an activex control (.ocx) dynamically to a form, but without success. I know that i can do that by adding the control in the toolbox and the dragg it to the form but i want to ad the control at run time. I found a way for VB 6 but dose not work in VB .Net. A


Dynamically creating check boxes -
I am in need of help for creating check boxes dynamically on startup. I've looked through my VB.NET book and the only example it lists is when you choose different options and it creates them, but I need help with creating it from startup [And not through picking different options]


Creating files--using VBScript -
Can someone give me the code for creating a file using VBScript? Thanks, Spie


Dynamic VB Form Creation -
How to create a form dynamically from a VB application so that it can display database information on user-request. I also want to attach code dynamically to control events. Thanx


Invoke VBScript from VB.NET -
Hi I classic VB6 you can place the script control on a form, load VBScript into it and excecute. You can also share objects between VB6 and VBScript. I want to achieve the same thing but with VB.NET. My objective is to write a VB.NET application that will run some queries against a


Help with VBScript please (solved) -
Hi, I use a webpage in a webbrowser control of my main form. And i'd like to be able to comunicate from the VBCript on my html page to my main vbapplication. Exemple : code:-------------------------------------------------------------------------------- <head> <script


creating image -
Can you create an IMAGE dynamically in VBScript? I know it can be done in Java ( MyImage= New Image(213,36) ). Thanks.


Move control dynamically -
Hi Everyone, Is there anyway to move a ListView control dynamically through code over to the right by 1500 pixels? I am trying to resize a form and am having trouble getting this control to move over. Any help would be appreciated. Thanks.


Creating Form controls at runtime -
Hi all, Thanks in advance for ur help. Is there any way in VBScript or JavaScript to add a form control at runtime, say a hidden input field. Thanks, Pres.


Executing VBScript Functions -
Is there a way to run a client side VBScript in Internet Explorer (or the WebBrowser control) from an external application? Example: I have a Visual Basic form with a WebBrowser control on it. I want to be able to click a button on the form, and run one of the VBScripts contained


Executing VBScript Functions. -
Is there a way to run a client side VBScript in Internet Explorer (or the WebBrowser control) from an external application? Example: I have a Visual Basic form with a WebBrowser control on it. I want to be able to click a button on the form, and run one of the VBScripts contained


HtmlTable - Creating Dynamically -
I am creating an HtmlTable object dynamically at runtime and adding it to a PlaceHolder controls collection. All is well, except for the fact that I do not have a CssClass property. I need to specify this so that it picks up the style and looks like all other tables in my project. A


Dynamic controls and their event handling -
After dynamically creating a control during run time using VbControlExtender object, I can only access the events for the most recently created object in the ObjectEvent event. Though it is probably impossible I am trying to find a way to code events for every control created dynami


creating Dll in VB for VBScript Code -
My project is coded in vbscript.I would like overcome the interpretive overhead by converting part of my code(a major functionality which mainly has function calls to other VBscript functions) into a Dll using VB. Is it possible to have vbscript function calls in a Dll created in VB??


Dynamically creating controls at run-time -
How do I dynamically create a control during run-time in VB? For eg. a text box. Remember, I will not be placing an instance of the textbox at design time.


Checking TRUE/FALSE of CheckBox -
Hi, I am dynamically creating a set of checkboxes using the placeholder control. There are many other controls on the page aswell. Once that form is posted back to the page for processing, how can I dynamically check if those checkboxes where checked? I can't just go CheckBox1


Dynamically creating elements of control array **Resolved** -
Here is what I have. I have a form with a PictureBox and a vertical scroll bar. On top of the PictureBox I have a OptionButton that is set to graphical type. It is as follows. optButton(0) 'This is the only optButton control drawn on the form at runtime It is element 0


Help with a Tablecell -
Hi all, I have a dynamic table on my form and I am adding rows and cells to it at runtime. I am also dynamically creating an image. My question is, how can I take my dynamically created image and set that as the background of my tablecell?


Dynamically creating rows in listview -
Hi all, am creating an application where i have to give a provision to enter data in a list view and the entered row will be stored in database. How can i achieve this. how can i dynamically create new rows in listview. any help can be appreciated saj


YAQ: Dynamically creating and loading a control (with a twist) -
so i have a form and a class module... now, the class module accepts a Frame control as an input and hopefully the class creates say a Label control and set its parent Container as the Frame that was passed. Is this possible? and if so, how should I go about it. I've tried Cr


VBScript-What can I do with it -
I've recently learned of VBscript, and I've read a few tutorials, done a little coding... My question is: Where does VBScript become incapable of doing what VB can do? Can it do APIs? Can it use controls? (RTF, Picbox, slider...) Can it make control arrays? Userdefined objects


Posting OCX value -
Hi there! i have developed an Combobox activex control. This ocx control has a property called 'Value'. When I use this control in a web page, I am able to get the value of the OCX control in the Client side scripts(like Javascript & VBscript). But when I submit the form (usi


Creating menus Dynamically -
I need to create a menu dynamically... anyone know how to do this?


Creating Profiles with VBScript -
I am trying to automate the creating an outlook profile process through VBScript. I was wondering if there is a script to create the user's Outlook profile at logon.


handle event on dynamically created control (VB 6) -
Hello, In VB 6, I've got a form with a picture box control into which I dynamically add controls (eg textboxes, pictures, labels...) from the code. I need to find out the name of the object that was clicked on by a mouse, or at least to get coordinates of the mouse. Handling fo


How to I make an application show a form from an ocx -
Hi Everyone, I am creating my first active x control in Visual Basics 6.0. I have created a user control and a simple form with two input fields, one checkbox, one drop down list, and two command buttons(ok and cancel). I have created a function in the user control that will prompt


Dynamic generation of Button -
hi everyone i have tried generating Button control dynamically... but faced two problems: 1) if i want to add this button to any container control...then its fine( i can user control.add(objButton)...but i couldnt work out how to add it to a form and place it at desired location;


[2005] Setting Focus on undetermined Control -
I have a form in which a number of different controls are created dynamically. They are primarily TextBoxes and ComboBoxes. As I create these controls dynamically, I count them as they are created. Therefore, I set the TabIndex of each control to the corresponding count. My question is