Copy Paste this ...
MdiClient myMDI; foreach (Control ctl in this.Controls) { try {myMDI= (MdiClient) ctl;myMDI.BackColor = this.BackColor; } catch (InvalidCastException exc) { // your code ... } }
Copy Paste this ...
MdiClient myMDI; foreach (Control ctl in this.Controls) { try {myMDI= (MdiClient) ctl;myMDI.BackColor = this.BackColor; } catch (InvalidCastException exc) { // your code ... } }
Try this:
style="height: 100vh;"
or
html, body {height: 100%;}
or
body
{
padding:0px;
margin:0px;
width:100%;
height:100%;
}
try this:
autocomplete="off"
example:
<asp:TextBox ID="TextBox1" runat="server" autocomplete="off"></asp:TextBox>
<SCRIPT language=Javascript>
function allow_num(num) {
var charCode = (num.which) ? num.which : num.keyCode;
if (charCode != 46 && charCode > 31
&& (charCode < 48 || charCode > 57))
return false;
return true;
}
</SCRIPT>
call this function:
<asp:TextBox ID="txt_num" onkeypress="returnallow_num(event)" CssClass="txt" runat="server"></asp:TextBox>
<input id="Text1"onkeypress="returntype="text" />allow_num(event)"
This will work fine...
private void ClearTextBoxes()
{
Action<Control.ControlCollection> func = null;
func = (controls) =>
{
foreach (Control control in controls)
if (control is TextBox)
(control as TextBox).Clear();
else
func(control.Controls);
};
func(Controls);
}