or
Me.cmbReferenceWeek.ArrowButtonMinWidth = 16Me.cmbReferenceWeek.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppendMe.cmbReferenceWeek.AutoSize = FalseMe.cmbReferenceWeek.Bounds = New System.Drawing.Rectangle(0, 0, 100, 22)Me.cmbReferenceWeek.DefaultValue = NothingMe.cmbReferenceWeek.EditorElement = Me.cmbReferenceWeekMe.cmbReferenceWeek.EditorManager = NothingMe.cmbReferenceWeek.Focusable = TrueMe.cmbReferenceWeek.FormattingEnabled = TrueMe.cmbReferenceWeek.MaxValue = NothingMe.cmbReferenceWeek.MinSize = New System.Drawing.Size(140, 0)Me.cmbReferenceWeek.MinValue = NothingMe.cmbReferenceWeek.Name = "cmbReferenceWeek"Me.cmbReferenceWeek.NullTextColor = System.Drawing.SystemColors.GrayTextMe.cmbReferenceWeek.NullValue = NothingMe.cmbReferenceWeek.OwnerOffset = 0Me.cmbReferenceWeek.StretchVertically = FalseMe.cmbReferenceWeek.Text = ""Me.cmbReferenceWeek.Value = NothingHello!
If I create a simple RadForm with a single RadTextBox, this text box is selected (gets input focus and shows cursor) automatically when the form is shown. If I create a simple RadForm with a RadPageView and place the RadTextBox into the page, it is not selected automatically when the form is shown.
Even the following code does not select the text box:
protected override void OnLoad(EventArgs e) { base.OnLoad(e); radTextBox1.Focus(); radTextBox1.Select(0, 0); } The following workaround does work, but I do not think this is a way I should go:
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Application.Idle += Application_Idle; } void Application_Idle(object sender, EventArgs e) { Application.Idle -= Application_Idle; radTextBox1.Focus(); radTextBox1.Select(0, 0); } So, how should I correctly select the text box in the PageView page when the form is shown?
Thank you.
Int64) , Display column is a Text field: ddb_Broker.ValueMember = dtBrokerList.Columns[0].ColumnName;ddb_Broker.DisplayMember = dtBrokerList.Columns[1].ColumnName;ddb_Broker.DataSource = dtBrokerList.DefaultView;ddb_Broker.SelectedItem = null;ddb_Broker.SelectedValue = Convert.ToInt64(gl_dtProgram.Rows[0]["in_broker"]);ddb_Broker.SelectedValue = null ..... ? WHY ?