473,511 Members | 16,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Textbox Class for Toolbox

15 New Member
Hi

I am starting a project and am wanting to create a custom Toolbox class.

It is a simple textbox with the background colour set to grey.

I am not sure how to create that class and upload it to the Toolbox.

I would like to use this class on all my forms but have the ability to change the background colour to another colour if it is needed. I would like to drop this custom textbox from the toolbox. If I make a change to the toolbox class it is inherited through the project.

Any help is appreciated as I am relatively new to C#.

Thanks
Feb 21 '10 #1
3 2418
alexis4
113 New Member
Hi elmbrook!

Google search containing your keywords + msdn could be proved very usefull!
Within a few seconds, I found 2 links which cover your question:

http://msdn.microsoft.com/en-us/libr...07(VS.80).aspx
http://msdn.microsoft.com/en-us/libr...6x(VS.80).aspx

They both are walkthroughs, so a few hours are enough to get a complete picture of the solution you are asking.
Feb 21 '10 #2
elmbrook
15 New Member
Thanks Alexis

That is a great start.

I am following this article http://msdn.microsoft.com/en-us/libr...6x(VS.80).aspx

I have created a Windows Forms Control Library with the button in it.

However, when I get to the second part of the article when I try to add the control it does not show up in my project reference.

5. Click the tab labeled Projects. Your ValueButtonLib project will be listed under Project Name. Double-click the project to add the reference to the test project.

If it is not in my project reference, how can I add it?

Thanks
Feb 22 '10 #3
tlhintoq
3,525 Recognized Expert Specialist
However, when I get to the second part of the article when I try to add the control it does not show up in my project reference.
Hit F5 to run your application one time. Then close it. Its a weird behavior of VS.


[thread=881136]The same thing is mentioned in this tutorial.[/THREAD
Feb 22 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2103
by: Jonas L | last post by:
Hi, I need to create a textbox which acts as a normal textbox but with the following extra requirements: 1) In-focus color, when the textbox gets focus the backcolor property of the textbox...
5
21466
by: Brian Robbins | last post by:
In standard C/C++ SDK, MFC, or VCL if I wanted to make a TextBox (CEditBox, TEditBox, etc.) only except numbers I have dozens of ways to handle it. But none of those methods are working in...
12
5767
by: Phill | last post by:
I'd like to have textboxes that only allow certain types of data. Like only integers, decimals, etc. Is it better to subclass TextBox for each type or to create only one new TextBox class that...
3
2057
by: Casper | last post by:
Hi .Net experts, I am trying to build a user control of textbox and would like to add a public method to the object like public void CheckOptions(string str) { // codes here }
1
962
by: Rob Panosh | last post by:
Hello, I am trying to bind a text box with my derived class (listed below) using the designer. I want to be able to add this class to my toolbox, drop onto a form, and from the designer click...
12
1430
by: Peter | last post by:
I'm looking to create multiple textboxs that change to a light blue on focus. What is the most efficient way to do this? -Peter
4
3240
by: Antuane | last post by:
i'm trying to create a custom textbox class, by simply creating a new class & inheriting from the textbox class. But i don't have a UI of this class. I.e., how can i set up the default text, color...
3
4657
by: Yoavo | last post by:
Hi, I have a dialog with 2 TextBox controls. I want to add some functionality to one of the them. I created a class MyTextBox which inherits from TextBox. How can I connect one of the TextBox...
2
2561
by: markgordon_007 | last post by:
This should be so simple but I can not figure it out hopefully some one can point me in the right direction... Visual Studio 2008 and c# and winforms .... I'm trying to create a textbox class...
1
6293
by: JFKJr | last post by:
Hello everyone, the following Access VBA code opens an excel file and creates textboxes in a given range of cells dynamically. The code attaches "MouseUP" and "Exit" events to the textboxes (using...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.