Hello,
I want my application to be resized depending on the screen resolution.
I put all my controls in HTML tables with a percentage as width.
I tried to put the percentage on the table + cells / fields / row and it never adapt the cells to the values I set.
Here is my code:
<table cellSpacing="2" cellPadding="2" width="70%" border="1" runat="server" ID="Table1">
<tr>
<TD width="40%"><asp:label id="lbl" runat="server">Vendor Code to search for:</asp:label></TD>
<TD width="5%"><asp:textbox id="txt0" tabIndex="1" runat="server" AutoPostBack="True" MaxLength="4"></asp:textbox></TD>
<TD width="5%"><asp:textbox id="txt1" tabIndex="2" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></TD>
<TD width="5%"><asp:textbox id="txt2" tabIndex="3" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></TD>
<td width="5%"><asp:textbox id="txt3" tabIndex="4" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></td>
<td width="5%"><asp:textbox id="txt4" tabIndex="5" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></td>
<td width="5%"><asp:textbox id="txt5" tabIndex="6" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></td>
</tr>
</table>
I also tried to copy this table to a new form and have the same problem.
Is there a special attribute to set ?
Thanks for your help !
I want my application to be resized depending on the screen resolution.
I put all my controls in HTML tables with a percentage as width.
I tried to put the percentage on the table + cells / fields / row and it never adapt the cells to the values I set.
Here is my code:
<table cellSpacing="2" cellPadding="2" width="70%" border="1" runat="server" ID="Table1">
<tr>
<TD width="40%"><asp:label id="lbl" runat="server">Vendor Code to search for:</asp:label></TD>
<TD width="5%"><asp:textbox id="txt0" tabIndex="1" runat="server" AutoPostBack="True" MaxLength="4"></asp:textbox></TD>
<TD width="5%"><asp:textbox id="txt1" tabIndex="2" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></TD>
<TD width="5%"><asp:textbox id="txt2" tabIndex="3" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></TD>
<td width="5%"><asp:textbox id="txt3" tabIndex="4" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></td>
<td width="5%"><asp:textbox id="txt4" tabIndex="5" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></td>
<td width="5%"><asp:textbox id="txt5" tabIndex="6" runat="server" AutoPostBack="True" MaxLength="4" Enabled="False"></asp:textbox></td>
</tr>
</table>
I also tried to copy this table to a new form and have the same problem.
Is there a special attribute to set ?
Thanks for your help !