473,791 Members | 3,193 Online
Bytes | Software Development & Data Engineering Community
+ 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(textbo x,
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="Tool Bar" TagName="tbl"
Src="UserContro ls\MainToolBar. ascx"%>

<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Emp loyees.aspx.vb" Inherits="North wind.Employees"
smartNavigation ="True" %>
<body language="javas cript" bottomMargin="1 50"
MS_POSITIONING= "GridLayout ">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99 g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"> </TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployee sDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="button face"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:labe l
id="lblFirstNam e" runat="server" Width="72px"></asp:label></td>

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

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:labe l
id="lblLastName " runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastNa me" style="WIDTH: 469px; HEIGHT: 16px"><asp:text box
id="txtLastName " runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:labe l
id="lblBirthDat ee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:text box id="txtBirthDat e"
runat="server" Width="160px"></asp:textbox><as p:label
id="lblEmployee ID" runat="server"
Width="88px"></asp:label><asp: textbox id="txtEmployee ID"
runat="server" Width="152px"></asp:textbox></td>
</tr>
</TABLE>
</Form>

MTIA,
Grawsha
Nov 18 '05 #1
2 2832
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*********@ya hoo.com> wrote in message
news:66******** *************** ***@posting.goo gle.com...
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(textbo x,
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="Tool Bar" TagName="tbl"
Src="UserContro ls\MainToolBar. ascx"%>

<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Emp loyees.aspx.vb" Inherits="North wind.Employees"
smartNavigation ="True" %>
<body language="javas cript" bottomMargin="1 50"
MS_POSITIONING= "GridLayout ">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99 g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"> </TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployee sDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="button face"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:labe l
id="lblFirstNam e" runat="server" Width="72px"></asp:label></td>

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

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:labe l
id="lblLastName " runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastNa me" style="WIDTH: 469px; HEIGHT: 16px"><asp:text box
id="txtLastName " runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:labe l
id="lblBirthDat ee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:text box id="txtBirthDat e"
runat="server" Width="160px"></asp:textbox><as p:label
id="lblEmployee ID" runat="server"
Width="88px"></asp:label><asp: textbox id="txtEmployee ID"
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*********@ya hoo.com> wrote in message
news:66******** *************** ***@posting.goo gle.com...
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(textbo x,
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="Tool Bar" TagName="tbl"
Src="UserContro ls\MainToolBar. ascx"%>

<%@ Page Language="vb" AutoEventWireup ="false"
Codebehind="Emp loyees.aspx.vb" Inherits="North wind.Employees"
smartNavigation ="True" %>
<body language="javas cript" bottomMargin="1 50"
MS_POSITIONING= "GridLayout ">
<form dir="rtl" id="Form1" method="post" runat="server">
<TABLE id="main" cellpadding=0 cellspacing=0 border=0
bgcolor=#ccff99 g>
<tr>
<td><!this is the UserControl--->
<TooLBar:tbl id="Tbl1" runat="server"> </TooLBar:tbl>
</td>
</tr>
</table>

<!rest of document---->

<TABLE id="tblEmployee sDetails" style="Z-INDEX: 101; LEFT: 32px;
WIDTH: 616px; POSITION: absolute; TOP: 40px; HEIGHT: 88px"
cellSpacing="1" cellPadding="1" width="616" bgColor="button face"
border="0" runat="server">
<tr>
<td id="td" style="WIDTH: 123px; HEIGHT: 25px"><asp:labe l
id="lblFirstNam e" runat="server" Width="72px"></asp:label></td>

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

<TR>
<TD id="tdLasName" style="WIDTH: 123px; HEIGHT: 16px"><asp:labe l
id="lblLastName " runat="server" Width="72px"></asp:label></TD>
<TD id="tdtxtLastNa me" style="WIDTH: 469px; HEIGHT: 16px"><asp:text box
id="txtLastName " runat="server" Width="416px"></asp:textbox></TD>
</TR>
<tr>
<td id="test" style="WIDTH: 123px; HEIGHT: 30px"><asp:labe l
id="lblBirthDat ee" runat="server" Width="72px"></asp:label></td>
<td style="WIDTH: 469px; HEIGHT: 30px"><asp:text box id="txtBirthDat e"
runat="server" Width="160px"></asp:textbox><as p:label
id="lblEmployee ID" runat="server"
Width="88px"></asp:label><asp: textbox id="txtEmployee ID"
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
1040
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 control on the form all is fine, I dock it to fill and then resize the form and the last button remains anchored bottom and right. I then build the project / or run the project and all is OK. Now I changed the control to accept constituent...
0
1084
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 getting called at design time. So, I drop my UserControl on a form in another project and try to resize it, but the resize isn't getting called. I've placed a break point in the resize and it doesn't hit it. Can anybody tell me what I'm missing...
2
8314
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 showing one transparent form (form3) when ever user preseed left mouse button. 3) The form3 has one transparent user control (usercontrol2) that paints circles. That measn the circles will show on top the usercontrol1 image. 4) The form3 border style...
1
314
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 of document(textbox, labesl...etc)? Any idea/s?? Usually, what is the best way of placing UC in a webpage? In a
0
1152
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 control on the form all is fine, I dock it to fill and then resize the form and the last button remains anchored bottom and right. I then build the project / or run the project and all is OK. Now I changed the control to accept constituent...
1
1350
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 way in the usercontrol to suppress painting during the resize? Thanks
2
8934
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 added to the form, so I can resize it up and down, and not left and rigth. My usercontrol is a usercontrol project. In my main program I just drag and drop the control from the Toolbox, her the problems starts, the size of all subcontrols changes...
0
2601
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 for this control, mainly to allow some resizing of the usercontrol's child controls inside the designer. All works well so far. Now I want to add a custom snapline that aligns to the edge of one of the internal controls. Done. If I move two of...
1
3583
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 window it's placed on resizes? Jeff
4
9328
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 have not set any value to the size of the dropped control in my form, recompiling the project does not affect the new size of the user control in my form. Surprisingly if I reset the Size property of my user control in the form, the size changes...
0
9669
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
9517
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
10428
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...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10156
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
6776
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
5435
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
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.