473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

rookie C# equivalent for Java JPanel question..

I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?

Thanks in advance!

Derrick
Nov 15 '05 #1
4 5156


"Derrick" <de*********@excite.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?


Hi Derrick,

It sounds like a Control would be a good solution. Just run the VS.NET
Windows Control Library wizard and populate it with the controls you need.
That way, you can drag and drop it wherever you need. Here's a little more
information on controls:

http://samples.gotdotnet.com/quickstart/winforms/

Joe
--
http://www.csharp-station.com
Nov 15 '05 #2
What you're looking for is a "UserControl". Add a user control item to your
project, and you can add items to it just like it was a form. You can then
use this usercontrol on multiple forms (or even in multiple user controls)

"Derrick" <de*********@excite.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?

Thanks in advance!

Derrick

Nov 15 '05 #3
I think your best best is to make a User control. Then you can host the user
control on whatever forms you may want, or panels on forms.
"Derrick" <de*********@excite.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?

Thanks in advance!

Derrick

Nov 15 '05 #4
Sounds like UserControl wins, thanks guys!

"Derrick" <de*********@excite.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I want to create a form with a few text boxes, labels, etc, and then use
that form on a tab control, and re-use it as a stand alone dialog, can you
drop forms onto forms and into dialogs like you can in Java?

Thanks in advance!

Derrick

Nov 15 '05 #5

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

Similar topics

3
by: pnolan | last post by:
Hello there, I'm brand new to Java and have. I'm taking my 2nd Java class at school and I'm pretty lost at this point. The main problem I'm having right now is I cannot get my code to execute....
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
7
helpwithcode
by: helpwithcode | last post by:
Hi people, I am just learning java.I have been creating a project which involves JDBC Connectivity.I find that the statements, String string_dob=text_dob.getText(); //Converting string to...
2
by: HaifaCarina | last post by:
i have this unfinished java program and i can't figure out what is the problem.. please help... /** * @(#)Answer3.java * * * @author * @version 1.00 2008/1/17
2
by: pinkf24 | last post by:
I cannot figure out how to add the following: Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform...
1
eyeofsoul
by: eyeofsoul | last post by:
i have build the gui but i am having problem with implementing the tcp/udp. can somebody help me. i have server and client. the server can chat with the client. when i tried to to use the udp of tcp...
1
by: Akino877 | last post by:
Hello, I have a question regarding Java and Swing programming I wonder if I could ask the forum for some help. I have a JPanel that has a couple of radio buttons and an "OK/Next" button on it. ...
10
by: yeshello54 | last post by:
Hey guys i am pretty new to java swing and need some help. I am developing a simple color chooser program in swing. I have a color panel that is connected to three sliders. red green and blue. but...
2
by: yeshello54 | last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
0
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
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
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,...

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.