473,385 Members | 1,919 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,385 software developers and data experts.

moving controls at runtime

xs
I have a datagrid and a button. The contents of datagrid is dynamic. My
button is placed below the datagrid. If there are too many items in Datagrid
the button and datagrid will be overlapped. Is there any way to move the
button at runtime?
Nov 18 '05 #1
4 1546
You have your web form pageLayout property set to GridLayout.
Instead, change it to FlowLayout. In my opinion this should be the default
in VS.NET.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"xs" <bl***************@yahoo.com.sg> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
I have a datagrid and a button. The contents of datagrid is dynamic. My
button is placed below the datagrid. If there are too many items in Datagrid the button and datagrid will be overlapped. Is there any way to move the
button at runtime?

Nov 18 '05 #2
xs
I have tried but it doest work. The controls still overlap

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
You have your web form pageLayout property set to GridLayout.
Instead, change it to FlowLayout. In my opinion this should be the default in VS.NET.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"xs" <bl***************@yahoo.com.sg> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
I have a datagrid and a button. The contents of datagrid is dynamic. My
button is placed below the datagrid. If there are too many items in

Datagrid
the button and datagrid will be overlapped. Is there any way to move the
button at runtime?


Nov 18 '05 #3
You may need to delete them and re-add them to your form after you change to
flow layout.
In the future set your form to flowlayout in the first place then you won't
have that problem.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"xs" <bl***************@yahoo.com.sg> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
I have tried but it doest work. The controls still overlap

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
You have your web form pageLayout property set to GridLayout.
Instead, change it to FlowLayout. In my opinion this should be the

default
in VS.NET.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"xs" <bl***************@yahoo.com.sg> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
I have a datagrid and a button. The contents of datagrid is dynamic. My button is placed below the datagrid. If there are too many items in

Datagrid
the button and datagrid will be overlapped. Is there any way to move the button at runtime?



Nov 18 '05 #4
xs
It worked. Thanks a million
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
You may need to delete them and re-add them to your form after you change to flow layout.
In the future set your form to flowlayout in the first place then you won't have that problem.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"xs" <bl***************@yahoo.com.sg> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
I have tried but it doest work. The controls still overlap

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eu**************@TK2MSFTNGP12.phx.gbl...
You have your web form pageLayout property set to GridLayout.
Instead, change it to FlowLayout. In my opinion this should be the

default
in VS.NET.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"xs" <bl***************@yahoo.com.sg> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl...
> I have a datagrid and a button. The contents of datagrid is dynamic. My > button is placed below the datagrid. If there are too many items in
Datagrid
> the button and datagrid will be overlapped. Is there any way to move the > button at runtime?
>
>



Nov 18 '05 #5

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

Similar topics

3
by: Barrett | last post by:
Hello, basically I want to be able to determine the height of a panel at runtime on a webform. The only value I can squeeze out of the control properties is the height that is set at design time....
2
by: jbmeeh | last post by:
I have an application in which I need to expose runtime moving and resizing of controls. Most of the functionality that I need is exposed by the CRectTracker class in the C++ library. Are there any...
1
by: rp | last post by:
Hi, How would I create runtime tabpages with runtime controls(textBoxes,comboBox, checkedListBox), inserting,deleting, and modifing the tabpages whenever I want to in C#? Thanks in advance. rp
4
by: xs | last post by:
I have a datagrid and a button. The contents of datagrid is dynamic. My button is placed below the datagrid. If there are too many items in Datagrid the button and datagrid will be overlapped. Is...
4
by: Chuck Ritzke | last post by:
Hi, I've searched the newsgroup and other sources to understand how to handle runtime controls and see I'm not the only one who's confused, but I'm still not quite sure of the best way to handle...
3
by: eswanson | last post by:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode. I created a new site on a windows 2003 server and copied the pre-compiled...
0
by: Derek Hart | last post by:
I am wanting to move and/or resize controls at runtime. I have download and integrated this application: http://www.codeproject.com/KB/miscctrl/CSharpRectTracker.aspx It is the C# Rect...
3
by: SonOf27 | last post by:
Morning all. I was hoping somone would be able to help me with some VBA program that will allow me to move the whole Tab Control on an Access form at runtime. What I have is a form in Access 2000...
5
by: adarshyam | last post by:
Hi friends, I have an interesting problem in vb.net. And I am struggling to get a solution for this..m trying for the past 3days.. It’s to calculate moving average for the inputs given by the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.