Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is it possible to share Session Variables across multiple threads? Pin
Christian Graus7-Jan-07 9:30
protectorChristian Graus7-Jan-07 9:30 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
travich7-Jan-07 9:34
travich7-Jan-07 9:34 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Christian Graus7-Jan-07 9:38
protectorChristian Graus7-Jan-07 9:38 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Guffa7-Jan-07 12:04
Guffa7-Jan-07 12:04 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Christian Graus7-Jan-07 12:12
protectorChristian Graus7-Jan-07 12:12 
GeneralRe: Is it possible to share Session Variables across multiple threads? Pin
Guffa7-Jan-07 12:47
Guffa7-Jan-07 12:47 
AnswerRe: Is it possible to share Session Variables across multiple threads? Pin
Guffa7-Jan-07 12:02
Guffa7-Jan-07 12:02 
QuestionMFC to C#, form changing Pin
muharrem7-Jan-07 9:07
muharrem7-Jan-07 9:07 
I am ,lets say, newcomer from MFC to C#.
With MFC using SDI model, I can switch from one view to another like follow

BOOL CMainFrame::ReplaceView(CRuntimeClass * pNewViewClass)
{
CView* pOldActiveView = GetActiveView();

CCreateContext context;
context.m_pNewViewClass = pNewViewClass;
context.m_pCurrentDoc = GetActiveDocument();
CView* pNewView = STATIC_DOWNCAST(CView,CreateView(&context));

if (pNewView != NULL)
{
pNewView->ShowWindow (SW_SHOW);
pNewView->OnInitialUpdate();
SetActiveView(pNewView);
pOldActiveView->ShowWindow (SW_HIDE);
// DestroyWindow calls PostNcDestroy which then deletes the
// pOldActiveView object.
pOldActiveView->DestroyWindow();
RecalcLayout();
}

return TRUE;
}

Questions :
1. Can I do similiar things to switch my forms ?
2. Or can you suggest another approach ?
3. And please sample project?

Thanks
AnswerRe: MFC to C#, form changing [modified] Pin
Mircea Puiu7-Jan-07 20:50
Mircea Puiu7-Jan-07 20:50 
QuestionTextBox problem Pin
CodeItWell7-Jan-07 8:34
CodeItWell7-Jan-07 8:34 
AnswerRe: TextBox problem Pin
Ed.Poore7-Jan-07 8:36
Ed.Poore7-Jan-07 8:36 
AnswerRe: TextBox problem Pin
tgrt7-Jan-07 15:46
tgrt7-Jan-07 15:46 
AnswerRe: TextBox problem Pin
Tyler457-Jan-07 18:23
Tyler457-Jan-07 18:23 
GeneralRe: TextBox problem Pin
Martin#7-Jan-07 19:51
Martin#7-Jan-07 19:51 
GeneralRe: TextBox problem Pin
CodeItWell8-Jan-07 0:52
CodeItWell8-Jan-07 0:52 
GeneralRe: TextBox problem Pin
Martin#8-Jan-07 1:08
Martin#8-Jan-07 1:08 
GeneralRe: TextBox problem Pin
Martin#8-Jan-07 1:10
Martin#8-Jan-07 1:10 
QuestionO/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
cebyrjoe27-Jan-07 7:36
cebyrjoe27-Jan-07 7:36 
AnswerRe: O/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
WillemM7-Jan-07 7:39
WillemM7-Jan-07 7:39 
GeneralRe: O/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
Larantz7-Jan-07 10:36
Larantz7-Jan-07 10:36 
AnswerRe: O/R mapper LLBLGen Pro or do you know better alternative in .NET? Pin
Pete O'Hanlon7-Jan-07 9:28
mvePete O'Hanlon7-Jan-07 9:28 
QuestionSquare root Pin
CodeItWell7-Jan-07 7:18
CodeItWell7-Jan-07 7:18 
AnswerRe: Square root Pin
Vega027-Jan-07 7:23
Vega027-Jan-07 7:23 
AnswerRe: Square root Pin
Larantz7-Jan-07 10:47
Larantz7-Jan-07 10:47 
QuestionCOMMMMMMMMMMM Port?????????????? Pin
sajid.salim.khan7-Jan-07 6:06
sajid.salim.khan7-Jan-07 6:06 

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.