473,467 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

UserControl does not resize in form?

al
Greetings,

I included a UserControl (UC)on webpage. It works fine except when I
change document direction to 'rtl', UC doesn't resize with the rest of
document. It just disappears behinde rest of document(textbox,
labesl...etc)?

Any idea/s??

Usually, what is the best way of placing UC in a webpage? In a
separte table or just with the rest of document in one main table and
nest it in a cell??
code:

<%@Register TagPrefix="ToolBar" TagName="tbl"
Src="UserControls\MainToolBar.ascx"%>

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Employees.aspx.vb" Inherits="Northwind.Employees"
smartNavigation="True" %>
<body language="javascript" bottomMargin="150"
MS_POSITIONING="GridLayout">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"></TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployeesDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="buttonface"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:label
id="lblFirstName" runat="server" Width="72px"></asp:label></td>

<td id="Country" style="WIDTH: 48px; HEIGHT: 25px"
colSpan="1"><asp:textbox id="txtFirstName" runat="server"
Width="416px"></asp:textbox></td>
</tr>

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:label
id="lblLastName" runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastName" style="WIDTH: 469px; HEIGHT: 16px"><asp:textbox
id="txtLastName" runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:label
id="lblBirthDatee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:textbox id="txtBirthDate"
runat="server" Width="160px"></asp:textbox><asp:label
id="lblEmployeeID" runat="server"
Width="88px"></asp:label><asp:textbox id="txtEmployeeID"
runat="server" Width="152px"></asp:textbox></td>
</tr>
</TABLE>
</Form>

MTIA,
Grawsha
Nov 18 '05 #1
2 2812
either will work but personally I often use a seperate table tag embeded
within a master table. This allows me a slightly more configurable approach.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings,

I included a UserControl (UC)on webpage. It works fine except when I
change document direction to 'rtl', UC doesn't resize with the rest of
document. It just disappears behinde rest of document(textbox,
labesl...etc)?

Any idea/s??

Usually, what is the best way of placing UC in a webpage? In a
separte table or just with the rest of document in one main table and
nest it in a cell??
code:

<%@Register TagPrefix="ToolBar" TagName="tbl"
Src="UserControls\MainToolBar.ascx"%>

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Employees.aspx.vb" Inherits="Northwind.Employees"
smartNavigation="True" %>
<body language="javascript" bottomMargin="150"
MS_POSITIONING="GridLayout">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"></TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployeesDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="buttonface"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:label
id="lblFirstName" runat="server" Width="72px"></asp:label></td>

<td id="Country" style="WIDTH: 48px; HEIGHT: 25px"
colSpan="1"><asp:textbox id="txtFirstName" runat="server"
Width="416px"></asp:textbox></td>
</tr>

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:label
id="lblLastName" runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastName" style="WIDTH: 469px; HEIGHT: 16px"><asp:textbox
id="txtLastName" runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:label
id="lblBirthDatee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:textbox id="txtBirthDate"
runat="server" Width="160px"></asp:textbox><asp:label
id="lblEmployeeID" runat="server"
Width="88px"></asp:label><asp:textbox id="txtEmployeeID"
runat="server" Width="152px"></asp:textbox></td>
</tr>
</TABLE>
</Form>

MTIA,
Grawsha

Nov 18 '05 #2
either will work but personally I often use a seperate table tag embeded
within a master table. This allows me a slightly more configurable approach.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"al" <gr*********@yahoo.com> wrote in message
news:66**************************@posting.google.c om...
Greetings,

I included a UserControl (UC)on webpage. It works fine except when I
change document direction to 'rtl', UC doesn't resize with the rest of
document. It just disappears behinde rest of document(textbox,
labesl...etc)?

Any idea/s??

Usually, what is the best way of placing UC in a webpage? In a
separte table or just with the rest of document in one main table and
nest it in a cell??
code:

<%@Register TagPrefix="ToolBar" TagName="tbl"
Src="UserControls\MainToolBar.ascx"%>

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Employees.aspx.vb" Inherits="Northwind.Employees"
smartNavigation="True" %>
<body language="javascript" bottomMargin="150"
MS_POSITIONING="GridLayout">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"></TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployeesDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="buttonface"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:label
id="lblFirstName" runat="server" Width="72px"></asp:label></td>

<td id="Country" style="WIDTH: 48px; HEIGHT: 25px"
colSpan="1"><asp:textbox id="txtFirstName" runat="server"
Width="416px"></asp:textbox></td>
</tr>

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:label
id="lblLastName" runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastName" style="WIDTH: 469px; HEIGHT: 16px"><asp:textbox
id="txtLastName" runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:label
id="lblBirthDatee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:textbox id="txtBirthDate"
runat="server" Width="160px"></asp:textbox><asp:label
id="lblEmployeeID" runat="server"
Width="88px"></asp:label><asp:textbox id="txtEmployeeID"
runat="server" Width="152px"></asp:textbox></td>
</tr>
</TABLE>
</Form>

MTIA,
Grawsha

Nov 18 '05 #3

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

Similar topics

0
by: karlodb | last post by:
Hi all, I've been struggling with some strange VB behaviour for the last two days. I have created a usercontrol and placed two buttons in it. One is anchored bottom and right. When place the...
0
by: Steve Long | last post by:
Hello, I'm trying to write my first UserControl in C#. It's pretty simple so far, just the design surface and two treeview controls. The problem is that the resize event of the UserControl isn't...
2
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am...
1
by: al | last post by:
Greetings, I included a UserControl (UC)on webpage. It works fine except when I change document direction to 'rtl', UC doesn't resize with the rest of document. It just disappears behinde rest...
0
by: karlodb | last post by:
Hi all, I've been struggling with some strange VB behaviour for the last two days. I have created a usercontrol and placed two buttons in it. One is anchored bottom and right. When place the...
1
by: **Developer** | last post by:
I'm geting a lot of flashing while resizing a form containing one of my usercontrols that is docked fill. This doesn't alway happen, depends on what is visible on the control. Is there some...
2
by: Rene Sørensen | last post by:
In VS 2005 I'm trying to create a usercontrol, but I have some problems with it right now I can't figure out how to fix. The size of my usercontrol is "Size 574; 619" I have anchored all controls...
0
by: Joe | last post by:
Anyone have any experience using custom snaplines? I have a usercontrol that acts as a container for several child controls. I wrote an inherited ControlDesigner to handle some custom actions...
1
by: Jeff | last post by:
..NET 2.0 I've added a custom UserControl onto a form. When I resize the form the UserControl doesn't resize. What property do I need to set on the UserControl so it automatically resizes if the...
4
by: Hamed | last post by:
Hello I have a UserControl sized to 100; 200 When I drop it in my form the initial size is 100;200 (as I prefer). Then I decided to change the size of my UserControl to 200;200 but although I...
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
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...
1
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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?

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.