?
Solved

how to create  object  in vb

Posted on 2003-03-15
6
Medium Priority
?
267 Views
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
0
Comment
Question by:kathavarayan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:WHalphen
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'
0
 
LVL 70

Accepted Solution

by:
É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
0
 

Expert Comment

by:CleanupPing
ID: 9056292
kathavarayan:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 70

Expert Comment

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

Expert Comment

by:DanRollins
ID: 9699790
Moderator, my recommended disposition is:

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

DanRollins -- EE database cleanup volunteer
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

800 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