Function DoubleBufferedx(ByVal dgv As DataGridView, ByVal setting As Boolean)
Dim dgvType As Type = dgv.GetType()
Dim pi As System.Reflection.PropertyInfo = dgvType.GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic)
pi.SetValue(dgv, setting, Nothing)
Return True
End Function
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim params As CreateParams = MyBase.CreateParams
params.ExStyle = params.ExStyle Or &H2000000
Return params
End Get
End Property
var http = new XMLHttpRequest("Microsoft.XMLHTTP");
var url_='http://example.com/';
function connect(){
http.onreadystatechange = function(){
if (http.readyState==4){
if (http.status==200){
//Do Something.
}else{
//Connect Failed.
}
}
}
http.open("GET",url_,true);
http.send();
}