or
public void FillDropDownList(string connString)
{
String Query = "SELECT * FROM information_schema.tables where Table_Name like 'Table%'";
using (var cn = new SqlConnection(connString))
{
cn.Open();
DataTable dt = new DataTable();
try
{
SqlCommand cmd = new SqlCommand(Query, cn);
SqlDataReader myReader = cmd.ExecuteReader();
dt.Load(myReader);
}
catch (SqlException e)
{
//TODO
}
radDropDownList1.DataSource = dt;
radDropDownList1.ValueMember = "TABLE_NAME";
radDropDownList1.DisplayMember = "TABLE_NAME";
}
}
radDropDownList1.Items.Add("Select a table...");
radDropDownList1.SelectedIndex = 0;
private void radTextBox1_TextChanged(object sender, EventArgs e)
{
radGridView1.MasterTemplate.PageSize = Int32.Parse(radTextBox1.Text);
}
if (radTextBox1.Text != "")
{
radGridView1.MasterTemplate.PageSize = Int32.Parse(radTextBox1.Text);
}
With
RadDesktopAlert1
.CaptionText =
"Caption Text"
.ContentText =
"Content Text"
.FixedSize =
New
Size(width:=200, height:=100)
.ScreenPosition = AlertScreenPosition.BottomRight
.Opacity = 0.8F
.PlaySound =
True
.SoundToPlay = Media.SystemSounds.Exclamation
.CanMove =
False
.IsPinned =
False
.ShowCloseButton =
True
.ShowOptionsButton =
False
.ShowPinButton =
False
.AutoClose =
True
.AutoCloseDelay = 5
' Seconds
.FadeAnimationFrames = 80
.FadeAnimationSpeed = 5
.FadeAnimationType = FadeAnimationType.FadeIn
Or
FadeAnimationType.FadeOut
.PopupAnimation =
True
.PopupAnimationDirection = RadDirection.Down
.PopupAnimationEasing = RadEasingType.
Default
.PopupAnimationFrames = 50
End
With
RadDesktopAlert1.Show()