Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

juliogyn

@juliogyn
About
Posts
21
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • what better way to open the form?! c# wpf
    J juliogyn

    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.

    WPF csharp wpf winforms tutorial question

  • MessageBox with textbox WPF
    J juliogyn

    I 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.

    C# csharp wpf

  • Thread Progress Bar
    J juliogyn

    I 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

    C# csharp wpf

  • DataSet parse date "dd/mm/yyyy"
    J juliogyn

    tnks forbiddenx :)

    C# question

  • DataSet parse date "dd/mm/yyyy"
    J juliogyn

    Very very tnks Marcus Kramer. Its work

    C# question

  • DataSet parse date "dd/mm/yyyy"
    J juliogyn

    I'm using WPF, the listview not contains listview.subitem.

    C# question

  • DataSet parse date "dd/mm/yyyy"
    J juliogyn

    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 ?

    C# question

  • Remove the time part in record access
    J juliogyn

    Tanks man, resolved.

    C# question

  • Remove the time part in record access
    J juliogyn

    the time-part does not remove ! :(

    C# question

  • Remove the time part in record access
    J juliogyn

    I 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.

    C# question

  • Clipboard paste formated text in Word
    J juliogyn

    I resolved problem using richtextbox.Copy and range.Paste(); :) tnks for help

    C# com question

  • Clipboard paste formated text in Word
    J juliogyn

    what you suggest, to create the word document while retaining the formatting? I have one Image componente and one Richtextbox.

    C# com question

  • Clipboard paste formated text in Word
    J juliogyn

    I'm trying copy the text in richtextbox and Image for Word document.

    C# com question

  • Clipboard paste formated text in Word
    J juliogyn

    Hi, 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 ?

    C# com question

  • Apply changes before input text (richtextbox)
    J juliogyn

    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();

    C# csharp question wpf

  • Apply changes before input text (richtextbox)
    J juliogyn

    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

    C# csharp question wpf

  • The change cursor for Slash Cursor
    J juliogyn

    i 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 ;)

    C# question

  • Autocomplete TextBox no find other words in string
    J juliogyn

    Solved the problem with "||":

    if( match.StartsWith(text_box1.ToString(),
    StringComparison.CurrentCultureIgnoreCase) || match.Contains(text_box1) )

    Tanks for all help

    C# regex question

  • Autocomplete TextBox no find other words in string
    J juliogyn

    With 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.

    C# regex question

  • Autocomplete TextBox no find other words in string
    J juliogyn

    I 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 ?

    C# regex question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups