Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to create  object  in vb

Posted on 2003-03-15
Medium Priority
Last Modified: 2010-05-01
how to set the new obect
ex dim t as textbox
    set t1=new this i know but not fully give me idea
Question by:kathavarayan

Expert Comment

ID: 8142572
use the Dim statement first:

Dim oTbox as textbox

then, to actually create the object, use the set statement:

Set oTbox = New textbox

Then you can refer to the object using 'oTbox'

oTbox.Value = 'some text'
LVL 70

Accepted Solution

Éric Moreau earned 100 total points
ID: 8142608
If you want to add controls to your form, see http://support.microsoft.com/default.aspx?scid=kb;en-us;190670

Expert Comment

ID: 9056292
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 70

Expert Comment

by:Éric Moreau
ID: 9060486
My recommandation: accept emoreau's comment (WHalpen solution won't create a visible control!)
LVL 49

Expert Comment

ID: 9699790
Moderator, my recommended disposition is:

    Accept emoreau's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question