Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory Usage from Task Manager Pin
Richard MacCutchan29-Nov-13 22:30
mveRichard MacCutchan29-Nov-13 22:30 
GeneralRe: Memory Usage from Task Manager Pin
Dave Kreskowiak25-Nov-13 2:12
mveDave Kreskowiak25-Nov-13 2:12 
GeneralRe: Memory Usage from Task Manager Pin
devvvy29-Nov-13 16:16
devvvy29-Nov-13 16:16 
GeneralRe: Memory Usage from Task Manager Pin
Dave Kreskowiak29-Nov-13 16:21
mveDave Kreskowiak29-Nov-13 16:21 
GeneralRe: Memory Usage from Task Manager Pin
devvvy29-Nov-13 19:27
devvvy29-Nov-13 19:27 
GeneralRe: Memory Usage from Task Manager Pin
Dave Kreskowiak30-Nov-13 3:10
mveDave Kreskowiak30-Nov-13 3:10 
GeneralRe: Memory Usage from Task Manager Pin
Dave Kreskowiak30-Nov-13 3:14
mveDave Kreskowiak30-Nov-13 3:14 
QuestionThreading Winforms and WPF Pin
dolfBerg24-Nov-13 8:56
dolfBerg24-Nov-13 8:56 
Good day

I a use a plugin interface to load a screen from a dll module. I created a thread to load a User Control from a separate dll. The user control form the plugin dll uses WPF to display some charts as a dashboard. When I use a normal WinForm user control it works fine but with the WPF user control I get a thread access error. Is there a way to allow access to the thread of a WPF form?

Here is my thread code that gets the uc from the dll

public void constructStartScreen()
        {
            ucSystemStartScreen _ucSystemStartScreen = new ucSystemStartScreen();
            foreach (PluginInterface Plugin in TPlugins.PluginList)
            {
                // Uses selected plug in 
                if (Plugin.getSystemTag() == TPlugins.theSelectedPlugin)
                {
                    ucBaseUserControl theStartScreen = new ucBaseUserControl();
                    theStartScreen = Plugin.getStartScreen();
                    
                    if (theStartScreen != null)
                    {
                        theStartScreen.Dock = DockStyle.Fill;
                        theStartScreen.UserCurrentInfo.SetUserInfo(TUserInfo.UserID);
                        theStartScreen.UserCurrentInfo.IsLogedOn = TUserInfo.IsLogedOn;
                        theStartScreen.UserCurrentInfo.Connection = TUserInfo.Connection;
                        theStartScreen.theSystemDBTag = Plugin.getSystemDBTag();

                        //  theDock.SendConroleToMainTabRequest += new SendConroleToMainTabHandler(SendConroleToMainTabHandler);
                        _ucSystemStartScreen.setStartScreen(theStartScreen);
                        _ucSystemStartScreen.Dock = DockStyle.Fill;
                        DataTable RecentList = _MenuSystemDAO.getRecentList(TUserInfo.UserID);
                        _ucSystemStartScreen.loadRecentList(RecentList);
                        _ucSystemStartScreen.CanClose = true;
                        _ucSystemStartScreen.UserCurrentInfo.SetUserInfo(TUserInfo.UserID);
                        _ucSystemStartScreen.UserCurrentInfo.IsLogedOn = TUserInfo.IsLogedOn;
                        _ucSystemStartScreen.UserCurrentInfo.Connection = TUserInfo.Connection;
                        _ucSystemStartScreen.theSystemDBTag = Plugin.getSystemDBTag();

                        addStartScreen(_ucSystemStartScreen);

                    }
                    break;
                }
            }
        }


The code in the DLL

public ucBaseUserControl getStartScreen()
{
    ucHRStartScreen _ucHRStartScreen = new ucHRStartScreen();
    return _ucHRStartScreen;
   // return null;
}


The
ucHRStartScreen
has a elementhost control that loads the WPF screens.
AnswerRe: Threading Winforms and WPF Pin
Dave Kreskowiak24-Nov-13 10:18
mveDave Kreskowiak24-Nov-13 10:18 
QuestionCapturing POST data via .NET 2.0 WebBrowser control Pin
anandraj4124-Nov-13 1:33
anandraj4124-Nov-13 1:33 
AnswerRe: Capturing POST data via .NET 2.0 WebBrowser control Pin
Richard MacCutchan24-Nov-13 2:39
mveRichard MacCutchan24-Nov-13 2:39 
AnswerRe: Capturing POST data via .NET 2.0 WebBrowser control Pin
Dave Kreskowiak24-Nov-13 4:16
mveDave Kreskowiak24-Nov-13 4:16 
QuestionSort an Existing XML File Pin
ASPnoob23-Nov-13 20:46
ASPnoob23-Nov-13 20:46 
AnswerRe: Sort an Existing XML File Pin
Richard MacCutchan23-Nov-13 21:39
mveRichard MacCutchan23-Nov-13 21:39 
QuestionJavaScript functions calling C# functions and Viceversa Pin
Don Guy23-Nov-13 4:30
Don Guy23-Nov-13 4:30 
AnswerRe: JavaScript functions calling C# functions and Viceversa Pin
Dave Kreskowiak23-Nov-13 4:54
mveDave Kreskowiak23-Nov-13 4:54 
GeneralRe: JavaScript functions calling C# functions and Viceversa Pin
Don Guy23-Nov-13 5:55
Don Guy23-Nov-13 5:55 
GeneralRe: JavaScript functions calling C# functions and Viceversa Pin
Dave Kreskowiak23-Nov-13 7:13
mveDave Kreskowiak23-Nov-13 7:13 
AnswerRe: JavaScript functions calling C# functions and Viceversa Pin
jschell23-Nov-13 11:08
jschell23-Nov-13 11:08 
AnswerRe: JavaScript functions calling C# functions and Viceversa Pin
Elaine0023-Nov-13 22:17
Elaine0023-Nov-13 22:17 
GeneralRe: JavaScript functions calling C# functions and Viceversa Pin
Dave Kreskowiak25-Nov-13 2:23
mveDave Kreskowiak25-Nov-13 2:23 
QuestionTap not working Pin
Member 1037988622-Nov-13 8:57
Member 1037988622-Nov-13 8:57 
AnswerRe: Tap not working Pin
TnTinMn23-Nov-13 11:31
TnTinMn23-Nov-13 11:31 
Questionhelp on shooping cart detect <Profile> at config Pin
MichaelCheong8922-Nov-13 1:35
MichaelCheong8922-Nov-13 1:35 
AnswerRe: help on shooping cart detect <Profile> at config Pin
Dave Kreskowiak22-Nov-13 1:40
mveDave Kreskowiak22-Nov-13 1:40 

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.