J
JerryWEC
I have created a UserControl to be position any place on the web page. I
added a Style Attribute to the each of the three constituent controls:
style="Z-INDEX: 102; LEFT: 0px; POSITION: absolute; TOP: 0px"
style="Z-INDEX: 100; LEFT: 0px; POSITION: absolute; TOP: 22px"
style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 120px"
The three controls contain within the UserControl are two buttons and a
Textbox. I added the required Style Property Get/Set so that each instance
of the UserControl can be reposition as needed on the web page(s). I added
one instance to each of five web pages and each have a different name/id
(ErrorBox1, ErrorBox2, etc...).
I Dim each ErrorBox (UserControl) within the Page Class for each page like:
Protected ErrorBox5 As ErrorBox
I can reposition the instance controls (ErrorBox5) as needed if I have
Document pageLayout set to GridLayout. However, if I have the containing
page's Document pageLayout set to FlowLayout I can't get the control to move
down the page as my DataGrid above it expands with data (data Grows). The
UserControl just seat's in a fixed location and does not float (or Flow).
Q1] How can I get this control to work in both GridLayout and FlowLayout?
Do I need two UserControls?
Q2] How do I get the UserControl to Flow/Float in pageLayout set to
FlowLayout?
Q3] Is there a way to make this UserControl resize for each instance? Do I
need a Resize Property for the UserControl and set the width and height
properties for each constituent control? Like in WinForms?
I really appreciate all help!!!
JerryM
added a Style Attribute to the each of the three constituent controls:
style="Z-INDEX: 102; LEFT: 0px; POSITION: absolute; TOP: 0px"
style="Z-INDEX: 100; LEFT: 0px; POSITION: absolute; TOP: 22px"
style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 120px"
The three controls contain within the UserControl are two buttons and a
Textbox. I added the required Style Property Get/Set so that each instance
of the UserControl can be reposition as needed on the web page(s). I added
one instance to each of five web pages and each have a different name/id
(ErrorBox1, ErrorBox2, etc...).
I Dim each ErrorBox (UserControl) within the Page Class for each page like:
Protected ErrorBox5 As ErrorBox
I can reposition the instance controls (ErrorBox5) as needed if I have
Document pageLayout set to GridLayout. However, if I have the containing
page's Document pageLayout set to FlowLayout I can't get the control to move
down the page as my DataGrid above it expands with data (data Grows). The
UserControl just seat's in a fixed location and does not float (or Flow).
Q1] How can I get this control to work in both GridLayout and FlowLayout?
Do I need two UserControls?
Q2] How do I get the UserControl to Flow/Float in pageLayout set to
FlowLayout?
Q3] Is there a way to make this UserControl resize for each instance? Do I
need a Resize Property for the UserControl and set the width and height
properties for each constituent control? Like in WinForms?
I really appreciate all help!!!
JerryM