I have a main window that contains buttons to open forms (other windows) for registration. How to open these windows forms inside the main window, the main window active mantento?! I tried with child, but on the menu bar of the windows icon appears for each open form.
juliogyn
Posts
-
what better way to open the form?! c# wpf -
MessageBox with textbox WPFI created a window with a field to set the name that the file will be saved. And with the code below I run inside the MainWindow.
var dialog = new windowFileName();
if (dialog.ShowDialog() == true) { MessageBox.Show(dialog.strFileName\_str); }
But I'm not getting check if the field is empty. I tried:
if (dialog.ShowDialog() == false)
{MessageBox.Show("Please, enter the name file");
dialog.txtFileName.Focus();
}But the dialog close and does not work.
-
Thread Progress BarI have this code:
public void mtdProgressbar() {
prgsBar.IsIndeterminate = false; prgsBar.Orientation = Orientation.Horizontal; prgsBar.Minimum = 0; prgsBar.Maximum = short.MaxValue; prgsBar.Value = 0; double value = 0; prgsBar.Visibility = Visibility; UpdateProgressBarDelegate updatePbDelegate = new UpdateProgressBarDelegate(prgsBar.SetValue); do { value += 1; Dispatcher.Invoke(updatePbDelegate, System.Windows.Threading.DispatcherPriority.Background,new object\[\] { ProgressBar.ValueProperty, value }); } while (prgsBar.Value != prgsBar.Maximum); prgsBar.Visibility = Visibility.Hidden; }
But i can not create the Thread do fill progressbar, do not work. The code:
.
.
.
else{
System.Threading.Thread trd = new System.Threading.Thread(new System.Threading.ThreadStart(this.mtdProgressbar));
trd.IsBackground = true;
trd.Start();
mtdTest(); //this method contains only loop for,represents an operation that requires the progressbar
}I'm using C# and Wpf
-
DataSet parse date "dd/mm/yyyy"tnks forbiddenx :)
-
DataSet parse date "dd/mm/yyyy"Very very tnks Marcus Kramer. Its work
-
DataSet parse date "dd/mm/yyyy"I'm using WPF, the listview not contains listview.subitem.
-
DataSet parse date "dd/mm/yyyy"I'm using dataset for get values the table on access. The field date_ is shown in listview on format mm/dd/yyyy, but i need format dd/mm/yyyy. I load values in listview with the code: listview_.DataContext = _dataSet; I tried:
string strDate = _dataset.Table["table"].Rows[0]["field_date"].ToString();
_dateset.Tables["table"].Rows[0]["field_date"] = DateTime.ParseExact(strDate, "dd/MM/yyyy", CultureInfo.CurrentCulture);
But not work. What can i do ?
-
Remove the time part in record accessTanks man, resolved.
-
Remove the time part in record accessthe time-part does not remove ! :(
-
Remove the time part in record accessI am selecting the date field in the table contained in the access, but registration is with the time part. 21/08/2013 00:00:00 How can i do, for remove 00:00:00 parts ?! I tried:
textnox_1.text = String.Format("{0:MM/dd/yyyy}",field);
But not resolved.
-
Clipboard paste formated text in WordI resolved problem using richtextbox.Copy and range.Paste(); :) tnks for help
-
Clipboard paste formated text in Wordwhat you suggest, to create the word document while retaining the formatting? I have one Image componente and one Richtextbox.
-
Clipboard paste formated text in WordI'm trying copy the text in richtextbox and Image for Word document.
-
Clipboard paste formated text in WordHi, i managed to paste the text in word document, but the text loses text formatting (bold, italic, center justify). I followed this article: http://www.neodynamic.com/ND/FaqsTipsTricks.aspx?tabid=66&prodid=3&sid=36[^] What should i do ?
-
Apply changes before input text (richtextbox)Then, remember Word when press "I" for the Italic the cursor change and the text to. In my case i need input text and after select all text e press "I" for changes. But i want to work as the Word. Now i use ApplyPropertyValue();
-
Apply changes before input text (richtextbox)Hi, i'm making text editor in c# with wpf. The editor apply changes (bold, italic, fontsize) only text selected for user. how can I make the change occurs before typing the text in editor ?! Tnks
-
The change cursor for Slash Cursori have richtextbox and button for change text in italic. Now i'm trying change the cursor for "slash" ascii code 47. How can i do it ? In the class Cursor not contain this type. tnks ;)
-
Autocomplete TextBox no find other words in stringSolved the problem with "||":
if( match.StartsWith(text_box1.ToString(),
StringComparison.CurrentCultureIgnoreCase) || match.Contains(text_box1) )Tanks for all help
-
Autocomplete TextBox no find other words in stringWith Contains, when find "follow" is show the complete string. But i try with "the fol" no show more, and "the Follow", example, to not show.
-
Autocomplete TextBox no find other words in stringI have this code for autocomplete:
foreach(string match in myList){
if( !string.IsNullOrEmpty(text_box1) ){if( match.StartsWith(text_box1.ToString(),
StringComparison.CurrentCultureIgnoreCase) ){MessageBox.Show(match); }
}
}
In String "The follow me", case find "the", the string is show me. But case find "follow" or "Follow", is not show. I'm tried with Contains but not solved. What can i do ?