?
Solved

Return default value of a UserControl for ex. Text1.Text = Text1

Posted on 2003-02-21
6
Medium Priority
?
299 Views
Last Modified: 2013-12-25
Hello,

How to return the default value of a UserControl for example like in TextBox Text1 value is equal to Text1.Text

I have my own TextBox UserControl and wanted it to get me its Text value whenever I Call it without .Text

Regards,
Hesham
0
Comment
Question by:tocos
[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
  • 3
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
JMoon5FTM earned 200 total points
ID: 7995787
You have to open the dreadful "Procedure Attributes" dialog, select the Text property, open the advanced controls, and set the procedure ID to "(Default)".
0
 

Expert Comment

by:COMPILER
ID: 7998500
Hesham,

what advantage does you own textbox usercontrol have over the one in visual basic.

COMPILER.
0
 

Author Comment

by:tocos
ID: 8000382
JMoon5FTM: Thank you .. It worked just fine for me.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:tocos
ID: 8000403
Hi COMPILER,

my Textbox accept skining with options like filtering to accept only numeric entries ..
and lots more.

Hesham
0
 

Expert Comment

by:COMPILER
ID: 8000605
hesham,

could i get to know you better? i agree with your textbox and would like to know more about it.

how do you mean skinning?

COMPILER.
0
 

Author Comment

by:tocos
ID: 8000656
I have build a huge project .. consisting of graphical Form skin (Like winamp), TextBox, CheckBox, DatePicker, and a TabControl .. all of those control .. have the same feels and colors and tons of advanced features over the standard controls.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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 Month10 days, 1 hour left to enroll

762 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