Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: SNMP MIB : How to use it with C# Pin
youssef28-May-04 3:58
youssef28-May-04 3:58 
GeneralDock two forms Pin
Guinness4Strength27-May-04 11:41
Guinness4Strength27-May-04 11:41 
GeneralRe: Dock two forms Pin
Heath Stewart27-May-04 12:27
protectorHeath Stewart27-May-04 12:27 
GeneralRe: Dock two forms Pin
Guinness4Strength27-May-04 19:19
Guinness4Strength27-May-04 19:19 
GeneralRe: Dock two forms Pin
Dave Kreskowiak28-May-04 1:21
mveDave Kreskowiak28-May-04 1:21 
GeneralRe: Dock two forms Pin
Guinness4Strength28-May-04 3:16
Guinness4Strength28-May-04 3:16 
GeneralRe: Dock two forms Pin
Heath Stewart30-May-04 6:06
protectorHeath Stewart30-May-04 6:06 
GeneralRe: Dock two forms Pin
Guinness4Strength1-Jun-04 6:45
Guinness4Strength1-Jun-04 6:45 
Well I've implemented the changes you have suggested and the docking form works fine. However when the form is enlarged and then the large window is moved the movement becomes very jerky. I'm wondering if the movement of both forms is too much for the single thread. So now I'm attempting to multi-thread the app. I'd like to create the main form in one thread and the docked form in a second. However I'm running into a logistical problem where the second thread that creates the Docking form goes out of scope and terminates.
The following code is where I create the second thread.
private void FavWinThread()
{
	this.ShowFavWin=true;
	frmFav = new frmFavorites(this);
        //avoid race condition
	while(!frmFav.WinReady)
		Thread.Sleep(10); //wait until form is ready to be displayed
	frmFav.Show();
        //docking form terminates here Thread out of scope ?
}

if(frmFav==null)
{
        FavThread = new Thread(new ThreadStart(FavWinThread));
	FavThread.Start();
}

I assume I'm creating the thread in the wrong place or I'm not maintaining the thread correctly ? Perhaps someone could give me a suggestion ? Any insight would be appreciated.
GeneralRe: Dock two forms Pin
Heath Stewart1-Jun-04 6:50
protectorHeath Stewart1-Jun-04 6:50 
GeneralRe: Dock two forms Pin
Guinness4Strength1-Jun-04 7:09
Guinness4Strength1-Jun-04 7:09 
GeneralRe: Dock two forms Pin
Heath Stewart1-Jun-04 8:45
protectorHeath Stewart1-Jun-04 8:45 
GeneralOn-Screen Keyboard Pin
raki100427-May-04 11:03
raki100427-May-04 11:03 
GeneralVSPackage load failure after incorporating a PLK for the vspackage. Pin
ManSus27-May-04 10:38
ManSus27-May-04 10:38 
QuestionHow do I copy a file and display progress? Pin
Tony Archer27-May-04 10:35
Tony Archer27-May-04 10:35 
AnswerRe: How do I copy a file and display progress? Pin
Guinness4Strength27-May-04 11:42
Guinness4Strength27-May-04 11:42 
AnswerRe: How do I copy a file and display progress? Pin
Dave Kreskowiak27-May-04 11:43
mveDave Kreskowiak27-May-04 11:43 
GeneralRe: How do I copy a file and display progress? Pin
Jonathan Slenders28-May-04 0:28
Jonathan Slenders28-May-04 0:28 
GeneralRe: wsdl converter Pin
mjmcinto27-May-04 10:12
mjmcinto27-May-04 10:12 
GeneralDataTable.Select and Expressions Pin
rog103927-May-04 9:18
rog103927-May-04 9:18 
GeneralRe: DataTable.Select and Expressions Pin
Heath Stewart27-May-04 10:03
protectorHeath Stewart27-May-04 10:03 
GeneralRe: DataTable.Select and Expressions Pin
rog103927-May-04 10:26
rog103927-May-04 10:26 
GeneralDataset XML Diff Pin
MrJJKoolJ27-May-04 8:42
MrJJKoolJ27-May-04 8:42 
GeneralRe: Dataset XML Diff Pin
Dave Kreskowiak27-May-04 9:50
mveDave Kreskowiak27-May-04 9:50 
GeneralInserting SQLSever rows Pin
ABean27-May-04 8:41
ABean27-May-04 8:41 
GeneralRe: Inserting SQLSever rows Pin
Heath Stewart27-May-04 10:01
protectorHeath Stewart27-May-04 10:01 

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.