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

Home Posts Topics Members FAQ

Is there a default layout manager to allow user to choose layout at runtime?

2 New Member
Need to display a set of images in a form. The layout should be user selectable similar to MS WORD 2007+ - Table Insert funcionality. The user should be able to choose the rows and columns during runtime. Is there a default layout manager to support this functionality? If not, would appreciate a few pointers on how this could be achieved.

Thanks,

John
Feb 5 '11 #1
4 1817
HaLo2FrEeEk
404 Contributor
I think what you're looking for is the TableLayoutPanel, if you're working in WinForms. I don't know what you'd use in WPF, probably a Grid.
Feb 5 '11 #2
S John Philip
2 New Member
Thanks, the FlowLayoutPanel serves my requirement well. A related question: If you have noticed, in Word 2007, Insert Table allows the user to choose rows/columns from a grid of small boxes rather than type in values for rows/columns. How can i achieve the same functionality?
Feb 7 '11 #3
HaLo2FrEeEk
404 Contributor
I'm not sure what you mean, I don't use Microsoft Word. Could you perhaps take a screenshot of that particular feature in Word and attach it to your post?
Feb 7 '11 #4
GaryTexmo
1,501 Recognized Expert Top Contributor
I think I know what you're talking about. There's no built in control for that, you'll have to design one yourself. Fortunately, it shouldn't be terribly difficult.

Look into creating a UserControl. You can handle drawing in the Paint Event and you can use the mouse events to handle the input.

Hmmm, or you could just check this out :)

http://www.codeproject.com/KB/miscct...eselector.aspx
Feb 7 '11 #5

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

Similar topics

0
by: Merlin_1102 | last post by:
I have read previous posts on the gridbaglayout and none seem to answer my questions (sorry if any of these have been aske dI really did search and found one large thread which took me an hour to...
0
by: Andrew Fedoniouk | last post by:
Announce: Lightweight HTML forms layout manager and browser component. http://HtmLayout.com Latest version of HtmLayoutSDK contains sources of wrapper for .NET (C#) Andrew Fedoniouk....
4
by: Kerry Sanders | last post by:
I was playing around with a new Windows form yesterday. I wanted to drop two panels on the form. The first would be set Dock=Top. The second would be set Dock=Fill. So, I dropped the first...
18
by: chimalus | last post by:
I am using a table with no column widths specified, letting the table layout manager do its thing for figuring out the column widths, and this works just fine. Now I want to make the table...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
2
by: amitpathak | last post by:
HI Can anybody Explain me the GridBagLayout() manager in detail.I mean How to use it.What are the differents constraints like gridx,gridy etc and how to implement them in program.
3
by: Sam | last post by:
I have been assigned to build an web application that allows admin staffs to configure the looks and feels of various parts of a loan application. For instance, one can set some parameters in a...
1
by: cozsmin | last post by:
hello, my program is a simple banking application, i need it for my resumee, but i have a little problem i got stuck trying to maek some TextField -s visible , it seems that setting the layout (...
3
by: nehamaru | last post by:
which layout manager honours the preferd component size ? i am confuing it is border or flow layout ?
2
by: Peted | last post by:
Can anyone suggest a best practice approach to building a dynamic winforms UI. Just as an example somehting like a billing application where you enter a customer billing data and the billing...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.