473,468 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

reuse form objects like a class

is there a way to reuse form objects like you would code in a class? Say i
havea groupbox with severl things in it, and i want to display this group
box and components 5 times on the screen, is there a way to declare it and
set the parameters for each one? like box1.label1.text = asdf,
box2.label1.text = text and change the location of each box1.

thanks,
Jan 15 '06 #1
2 962
"matt" <no****@nobody.com> schrieb:
is there a way to reuse form objects like you would code in a class? Say
i havea groupbox with severl things in it, and i want to display this
group box and components 5 times on the screen, is there a way to declare
it and set the parameters for each one? like box1.label1.text = asdf,
box2.label1.text = text and change the location of each box1.


"Project" -> "Add user control...".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 15 '06 #2

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:u3***************@TK2MSFTNGP11.phx.gbl...
"matt" <no****@nobody.com> schrieb:
is there a way to reuse form objects like you would code in a class? Say
i havea groupbox with severl things in it, and i want to display this
group box and components 5 times on the screen, is there a way to declare
it and set the parameters for each one? like box1.label1.text = asdf,
box2.label1.text = text and change the location of each box1.


"Project" -> "Add user control...".

Wow, quick response and EXACTLY what i was looking for. Thanks!
Jan 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
3
by: DPfan | last post by:
What's exactly the meaning of "code reuse" in C++? Why such kind of reuse have more advantages over the counterpart in other language like in C? How is "code reuse" realized in C++? By...
3
by: Kenneth | last post by:
I want to define an enum for possible languages in my application. My enum look like this: Public Enum Languages English = 0 Portuguese = 1 End Enum How can i reuse this enum in the rest of...
3
by: Simon | last post by:
Hi all, I'm hoping that some of you clever chaps could offer me some advice on code reuse. You see, whenever I make applications, I typically only find very limited
3
by: Kevin | last post by:
Using this: http://msdn2.microsoft.com/en-us/library/3dasc8as(VS.80).aspx as an example I have a question concerning the reuse of objects. In the example 10 instances of the Fibonacci class...
1
by: Kevin | last post by:
(apologies if this is a duplicate posting, but my previous seemed to get lost in the ether...) Using this as an example: http://msdn2.microsoft.com/en-us/library/3dasc8as(VS.80).aspx I have...
6
by: Bart Simpson | last post by:
I remember reading on parashift recently, that "Composition is for code reuse, inheritance is for flexibility" see (http://www.parashift.com/c++-faq-lite/smalltalk.html#faq-30.4) This confused...
11
by: aaapaul | last post by:
We are planning a greater .NET Application-System (WindowsForms) with Visual Studio 2005. One of my problem is, how to design the objects, that they can be reused. E.g. I have a form (with...
7
by: RichB | last post by:
I am just trying to get to grips with C# and OOP, and one of the benefits would seem to be code reuse. However I am not sure where to draw the line. I have the following section of code: if...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.