Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
Generalrtf and streams Pin
panoskatws4-Apr-08 3:25
panoskatws4-Apr-08 3:25 
GeneralRe: rtf and streams Pin
Rick van Woudenberg4-Apr-08 3:34
Rick van Woudenberg4-Apr-08 3:34 
GeneralRe: rtf and streams Pin
panoskatws4-Apr-08 4:20
panoskatws4-Apr-08 4:20 
GeneralRe: rtf and streams Pin
Rick van Woudenberg4-Apr-08 4:53
Rick van Woudenberg4-Apr-08 4:53 
GeneralRe: rtf and streams Pin
panoskatws5-Apr-08 4:54
panoskatws5-Apr-08 4:54 
GeneralRe: rtf and streams Pin
mav.northwind4-Apr-08 23:24
mav.northwind4-Apr-08 23:24 
GeneralRe: rtf and streams Pin
panoskatws5-Apr-08 5:16
panoskatws5-Apr-08 5:16 
GeneralThreading problem Pin
Rick van Woudenberg4-Apr-08 2:53
Rick van Woudenberg4-Apr-08 2:53 
Dear all,

I've written a method which I call from a thread. The problem is that it opens the form in the method, as it is suppose to, but it closes the form immediately after it opened it. Any hints ?

here's the code :

        void ultraGrid1_ClickCellButton(object sender, CellEventArgs e)<br />
        {<br />
                Thread thread = new Thread(OpenMethod);<br />
                thread.Name = "something";<br />
                thread.Start();<br />
                //thread.Join();<br />
        }<br />
<br />
        private void OpenMethod()<br />
        {<br />
          if (_form == null)<br />
            {<br />
                _form = new NewForm();<br />
                _form.Closed += new EventHandler(_form_Closed);<br />
            }<br />
            _form.WindowState = FormWindowState.Normal; // bring it from the taskbar if necessary<br />
            _form.Show();<br />
        }


Kind regards,
GeneralRe: Threading problem Pin
leppie4-Apr-08 3:42
leppie4-Apr-08 3:42 
GeneralRe: Threading problem Pin
SeeBees4-Apr-08 16:15
SeeBees4-Apr-08 16:15 
GeneralRe: Threading problem Pin
S. Senthil Kumar5-Apr-08 13:56
S. Senthil Kumar5-Apr-08 13:56 
Questionis there a way to restrict possible values of a string param in a method Pin
Adam Harbour4-Apr-08 2:40
Adam Harbour4-Apr-08 2:40 
GeneralRe: is there a way to restrict possible values of a string param in a method Pin
Pete O'Hanlon4-Apr-08 2:50
mvePete O'Hanlon4-Apr-08 2:50 
GeneralWrong data returned! Pin
Graham_44-Apr-08 1:24
Graham_44-Apr-08 1:24 
GeneralPlugins for MS Office, Internet explorer using C# Pin
Vikas K.4-Apr-08 0:53
Vikas K.4-Apr-08 0:53 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
John_Adams4-Apr-08 1:06
John_Adams4-Apr-08 1:06 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
Vikas K.4-Apr-08 1:24
Vikas K.4-Apr-08 1:24 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
Member 38312474-Apr-08 3:27
Member 38312474-Apr-08 3:27 
QuestionHow to get Keypress event to menuStrip Pin
ASysSolvers3-Apr-08 23:48
ASysSolvers3-Apr-08 23:48 
GeneralBLOB reading and writing C# Pin
Dev Motiramani3-Apr-08 23:25
Dev Motiramani3-Apr-08 23:25 
GeneralRe: BLOB reading and writing C# Pin
Giorgi Dalakishvili3-Apr-08 23:32
mentorGiorgi Dalakishvili3-Apr-08 23:32 
GeneralRe: BLOB reading and writing C# Pin
Dev Motiramani4-Apr-08 0:06
Dev Motiramani4-Apr-08 0:06 
Generalusing C# to implement Windows Service Pin
George_George3-Apr-08 22:32
George_George3-Apr-08 22:32 
GeneralRe: using C# to implement Windows Service Pin
Giorgi Dalakishvili3-Apr-08 22:34
mentorGiorgi Dalakishvili3-Apr-08 22:34 
GeneralRe: using C# to implement Windows Service Pin
George_George3-Apr-08 23:34
George_George3-Apr-08 23:34 

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.