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
L

LeandroABorges

@LeandroABorges
About
Posts
12
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Default build mode
    L LeandroABorges

    Hi everyone, i´m using VS2005 an i like to configure it to use "Release" as the default build mode, like this, when i open VS2005 the build mode is always setted as "Release", independently the project that i open. Thanks everyone!

    ----- LeandroAB

    Visual Studio announcement

  • Properties of RichTextBox at Runtime
    L LeandroABorges

    In the end of your code:

    AddHandler rtf01.SelectionChanged, AddressOf RichTextBox_SelectionChanged

    And then create this method:

    Private Sub RichTextBox_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    sender.DeselectAll()
    End Sub

    That´s it??

    ----- LeandroAB

    Visual Basic question help

  • Problem with Apache 2.0. and Subversion
    L LeandroABorges

    Probably this modules is in the bin folder of the Subversion. You have to copy them to: C:\Program Files\Apache Group\Apache2\modules And then restart apache.

    Web Development help apache sysadmin question

  • Capturing event...
    L LeandroABorges

    Hi there I don´t know exactly if you want this, but you can capture the event of the class with 2 ways: First: The declaration of the class is not in a function, it´s a global var. You can declare it like that: Private WithEvents Client as ClientClass And then you can set the handler of the event in a function, like that: Private sub OnClientLogin (sender as object, e as eventArgs) handles Client.Login Or you can set hte handler in the code: Private sub SetClientEvents() ..... addHandler Client.Login, addressof OnClientLogin ..... end sub Second: If you have a class declared in the method, you can use addhandler Private sub AddClient() ... dim Client as ClientClass ... addhandler Client.Login, addressof OnClientLogin ... end sub -------------- I think that is it what you want.

    ----- LeandroAB

    Visual Basic question

  • How to close a window when Esc is pressed
    L LeandroABorges

    Hi Ragu, Firsy you have to change this property on form KeyPreview = true You can change this on the form properties in designer or in the form load method:

    private void Form1\_Load(object sender, EventArgs e)
    {
      this.KeyPreview = true;
    }
    

    And then, you only have to do this:

    private void Form1\_KeyDown(object sender, KeyEventArgs e)
    {
      if (e.KeyCode == Keys.Escape)
        this.Close();
    }
    

    That´s it?

    ----- LeandroAB

    Windows Forms tutorial

  • images in a list
    L LeandroABorges

    I couldn´t undertand perfectly what re you trying to do, but i can suggest the listview component. You can show the files into it like the windows explorer, setting icons and all.

    ----- LeandroAB

    Windows Forms help

  • How to position cursor at some position in RichTextBox
    L LeandroABorges

    Hi Andrus, I got 2 options:

      richTextBox1.SelectionStart = 50;
      richTextBox1.SelectionLength = 0;
    
      richTextBox1.Select(60, 0);
    

    The second property/attribute that I´ve set 0 is the length of the selection, if you want to select some text, you can send the length of the selection, but if you don´t want to select, send 0 and then the cursor was positioned in the index.

    ----- LeandroAB

    C# csharp winforms tools help tutorial

  • Thread Minimize Application
    L LeandroABorges

    Dave, Thanks for your help, i´ve decided to do somethink more simple, i´m almost out of time. I´ve disabled all the form (frm.enabled = false) and make some "Loading" label visible. Thanks for your time.

    ----- LeandroAB

    Visual Basic help

  • Thread Minimize Application
    L LeandroABorges

    But how can i show the loading form, in many different process types without making a form for each process thread? If i show the form in the thread, the process will stop, because it´s a dialog. If i show the form where i call the thread, the problema is the same. How i can tell the form that the process has finished and it can close?

    ----- LeandroAB

    Visual Basic help

  • Thread Minimize Application
    L LeandroABorges

    Let me try to explain more detailed my problem. I have a very long process, and I don´t want to lock the screen without a message. So I did a loading form, that has only one label: "Loading..." When i start the process, the form was displayed, and when the process ends, i have to close the form. Thats the reason that i habve to use a thread, because i have to continue with my process in background. The frmBlank is only used to stay between the application and the loading form, without its the problem continues ocurring. When i kill the thread, the forms closes automaticaly, but i´ve tried to close mannualy the form in the thread, and the problems continues ocurring. I show the form as a dialog, to block the user access to the system during the process. Thanks for your time.

    ----- LeandroAB

    Visual Basic help

  • Thread Minimize Application
    L LeandroABorges

    Hi everyone, I´m programming an application win forms and in some parts of my application I have a strong processing module, and I´ve decided do make a loading screen. So, i´ve done it:

      Private Sub ShowLoading()
        Dim frmBlank As New frmBlank
        frmBlank.Cursor = Cursors.WaitCursor
        frmBlank.Show()
        Dim frmLoading As New frmLoading
        frmLoading.ShowDialog()
      End Sub
    
      Private Sub StartLoadingThread()
        thread = New Threading.Thread(AddressOf ShowLoading)
        thread.Start()
      End Sub
    
      Private Sub StopLoadingThread()
        thread.Abort()
      End Sub
    

    But, the problems appear, when i abort the thread, the loading form closes, as it have to close, but the whole application minimizes. I´m using the form in a Class Library, and it start maximized. THe whole think works as it have to work perfectly, but the problem is the application minimize. Thanks everyone!

    ----- LeandroAB

    Visual Basic help

  • [Message Deleted]
    L LeandroABorges

    [Message Deleted]

    IT & Infrastructure
  • Login

  • Don't have an account? Register

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