Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
GeneralRe: tree view issues Pin
Anonymous14-Jul-05 6:00
Anonymous14-Jul-05 6:00 
GeneralCombo box bind to object ... need help Pin
kakarato13-Jul-05 16:37
kakarato13-Jul-05 16:37 
GeneralRe: Combo box bind to object ... need help Pin
Christian Graus13-Jul-05 16:57
protectorChristian Graus13-Jul-05 16:57 
GeneralRe: Combo box bind to object ... need help Pin
kakarato13-Jul-05 20:39
kakarato13-Jul-05 20:39 
GeneralRe: Combo box bind to object ... need help Pin
J4amieC13-Jul-05 21:56
J4amieC13-Jul-05 21:56 
GeneralRe: Combo box bind to object ... need help Pin
kakarato13-Jul-05 22:14
kakarato13-Jul-05 22:14 
Questionhow can I access, windows forms properites by other thread than the form Pin
machocr13-Jul-05 11:18
machocr13-Jul-05 11:18 
AnswerRe: how can I access, windows forms properites by other thread than the form Pin
Sau Fan Lee13-Jul-05 13:13
Sau Fan Lee13-Jul-05 13:13 
You need to ask the main form thread to access the control for you.
For example, to add a text entry into MyListView, do something like the following:-
C#
public class MyForm : System.Windows.Forms.Form {
    private System.Windows.Forms.ListView MyListView;
 
    ...
 
    [STAThread]
    static void Main() {
        // IMPORTANT: MyForm instance needs to be run from Application.Run().
        Application.Run (new MyForm());
    }
 
    private void AddItem (string text) {
        MyListView.Items.Add (text);
    }
 
    // For use inside AddItemFromAnotherThread() method.
    private delegate void AddItemHandler (string text);
 
    // Use this method for your separate thread.
    private void AddItemFromAnotherThread (string text) {
        AddItemHandler method = new AddItemHandler (AddItem);
        object[] args = new object[] {text};
        this.Invoke (method, args);
    }
}



> whoami
The system is unable to identify you when you don't even know your name!
GeneralRe: how can I access, windows forms properites by other thread than the form Pin
machocr14-Jul-05 4:25
machocr14-Jul-05 4:25 
GeneralMemory problem Pin
AnonymousTwo13-Jul-05 9:21
AnonymousTwo13-Jul-05 9:21 
GeneralRe: Memory problem Pin
Dave Kreskowiak13-Jul-05 9:42
mveDave Kreskowiak13-Jul-05 9:42 
GeneralGET Image Constructor Pin
Expert Coming13-Jul-05 9:12
Expert Coming13-Jul-05 9:12 
GeneralRe: GET Image Constructor Pin
Judah Gabriel Himango13-Jul-05 9:18
sponsorJudah Gabriel Himango13-Jul-05 9:18 
GeneralRe: GET Image Constructor Pin
Expert Coming13-Jul-05 18:25
Expert Coming13-Jul-05 18:25 
GeneralRe: GET Image Constructor Pin
Judah Gabriel Himango14-Jul-05 5:03
sponsorJudah Gabriel Himango14-Jul-05 5:03 
GeneralText can't be fully displayed on a button Pin
sparks_lu13-Jul-05 8:52
sparks_lu13-Jul-05 8:52 
GeneralCOM+ & .NEt parameters by reference Pin
raforaez13-Jul-05 8:06
raforaez13-Jul-05 8:06 
GeneralRe: COM+ & .NEt parameters by reference Pin
Judah Gabriel Himango13-Jul-05 9:11
sponsorJudah Gabriel Himango13-Jul-05 9:11 
GeneralRe: COM+ & .NEt parameters by reference Pin
raforaez13-Jul-05 9:28
raforaez13-Jul-05 9:28 
GeneralDataGrid: lock row height, paint icons in BoolColumn Pin
SebbaP13-Jul-05 7:30
SebbaP13-Jul-05 7:30 
GeneralScroll panel from caret Pin
mr_seus13-Jul-05 6:31
mr_seus13-Jul-05 6:31 
GeneralRe: Scroll panel from caret Pin
Judah Gabriel Himango13-Jul-05 9:14
sponsorJudah Gabriel Himango13-Jul-05 9:14 
GeneralRe: Scroll panel from caret Pin
mr_seus13-Jul-05 13:40
mr_seus13-Jul-05 13:40 
QuestionHow to create a shortcut Pin
kevin_smoke13-Jul-05 5:43
kevin_smoke13-Jul-05 5:43 
AnswerRe: How to create a shortcut Pin
Judah Gabriel Himango13-Jul-05 7:46
sponsorJudah Gabriel Himango13-Jul-05 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.