473,836 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change the rowspan, columnspan property of a button control in a TableLayoutPane l at runtime

Hi All

I need to change the rowspan, columnspan properties of a control when they
are within a TableLayoutPane l (VB.net 2005)

At runtime the property is not available, but is at design time

Any ideas

Regards
Steve
Jun 12 '06 #1
2 17578
steve wrote:

At runtime the property is not available, but is at design time


Have you tried the SetColumnSpan method of the TableLayoutPane l?

Jun 12 '06 #2
Hi Steve,

Thank you for posting.

Yes, the RowSpan and ColumnSpan properties of a control are only available
at design time. To change the rowspan and columnspan of a control in a
TableLayoutPane l control at run time, you should use the SetRowSpan() and
SetColumnSpan() methods of the TableLayoutPane l class.

For example, there's a textbox in a TableLayoutPane l control. To set the
rowspan to 2 and columnspan to 2 of the textbox at run time, you should use
the following statements.

TableLayoutPane l1.SetRowSpan(T extBox1, 2)
TableLayoutPane l1.SetColumnSpa n(TextBox1, 2)

Hope this is helpful for you.
If you have any other concerns or need anything else, please don't hesitate
to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support

=============== =============== =============== =======
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
=============== =============== =============== =======

Jun 13 '06 #3

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

Similar topics

3
2211
by: Lee | last post by:
Hello, I am trying to reposition a calendar control at runtime i.e next to the approriate button which was clicked. Without the code below, the control appears in the same position but on top of all other controls. With the code, the calendar control is repositioned but it then appears underneath all other controls.
0
1891
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an input button that would allow for both text and an image on it. I am attempting to accomplish this by basing off of the asp:button control. I added a property for the image url and one to determine if the image is displayed on the left or right...
4
3344
by: WebNewsReader | last post by:
This one should be easy ;) How can I create a button control at runtime using one that is already created and adjust the properties ? Thanks in advance
0
1210
by: gnani | last post by:
I have a Button Created in .NET Windows Form. In a AsyncCallBack Procedure, I need to change the enabled property of the button to false. I tried using Reflection.PropertyInfo. The Code goes like this Dim pi As System.Reflection.PropertyInfo = btnLogin.GetType.GetProperty("Enabled") pi.SetValue(btnLogin, False, Nothing)
1
8436
by: Nathan Sokalski | last post by:
I have a Button control whose text property is "Move To Archives". Because this makes a relatively wide Button when the text is all one line, I want to put a line break between the words "Move To" and "Archives". However, if I specify the Text property as "Move To<br/>Archives" the "<br/>" simply shows up on the Button. Is there any simple way to make a Button control's Text property multi-line? (NOTE: I am writing my code using VB.NET and...
1
2486
by: Wimpie van Lingen | last post by:
Hi I've created a control that inherits from the button control. The control has one additional property called ButtonType which can be set to Ok, Cancel, New, Edit, etc. When the ButtonType property changes, the Image, Text, TextAlignment, etc. properties are changed for the control. What happens is that when I put the control on a form and I set the ButtonType property, all the fields that are changed are then highlighted as...
5
2819
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to create a class file for the user control to subclass this out. Something basic for a start, just initializing things. When I drag this custom control from the Toolbox to my form then Visual Studio just abruptly exits without warning. So I...
3
4765
by: R.A.F. | last post by:
Hi, I have a custom control in which i have a property based on CollectionBase class. like the following one : //------- XGrid.cs file --------------// public ColumnsCollection Columns {
0
2331
by: Roberto Kohler | last post by:
I created an enhanced Button Control in ASP NET 2.0 to add a delete confirmation message and to disable the button if the user does not have access. The new button control has a "ConfirmMessage" property where you can set the message you want displayed and a "SecurityKey" property to set the security key for the button. The securitykey works fine. The button is disabled if the user should not have access to it. The problem I have is...
0
9810
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9654
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10818
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10565
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10237
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6972
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5641
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.