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

C#

 
GeneralStored Procedure in RDLC reports Pin
salman_syed_018-Jan-08 19:03
salman_syed_018-Jan-08 19:03 
GeneralRe: Stored Procedure in RDLC reports Pin
Paul Conrad26-Jan-08 6:53
professionalPaul Conrad26-Jan-08 6:53 
GeneralRe: Stored Procedure in RDLC reports Pin
miktom9-Feb-10 4:01
miktom9-Feb-10 4:01 
GeneralSub query issue... Pin
Krishna Varadharajan8-Jan-08 18:58
Krishna Varadharajan8-Jan-08 18:58 
GeneralRe: Sub query issue... Pin
Paul Conrad26-Jan-08 6:53
professionalPaul Conrad26-Jan-08 6:53 
GeneralSub query issue... Pin
Krishna Varadharajan8-Jan-08 18:39
Krishna Varadharajan8-Jan-08 18:39 
GeneralRe: Sub query issue... Pin
Paul Conrad26-Jan-08 6:54
professionalPaul Conrad26-Jan-08 6:54 
QuestionHow to set the Form of a C# assembly as a child to COM Compatible Forms? Pin
ss4318-Jan-08 18:25
ss4318-Jan-08 18:25 
Hi all,

I'm new to .NET environment. I wrote an assembly in C#. This will take the Handle of the form from the client application and sets the form of this assembly as child to the Client application form.

When i send the parent handle from the .NET client the form in the assembly appears as child form. But when i send the parent handle from the COM comaptible language(VB6 or VC++) forms,it doesn't appear as child instead it appears outside of the form.

My code is

<u>In MyAssembly.dll</u>

public bool Create(long hwndParent)
{
ChildForm f = new ChildForm(); // object for the Form present in the Assembly
f.TopLevel = false;
f.Parent = Form.FromHandle((IntPtr)hwndParent);

f.Show();
return true;
}

<u>From VC++ Client</u>

{
IFramePtr pChildFrame; //Object for the Assembly

HRESULT hr = pChildFrame.CreateInstance(__uuidof(CFrame));

if(FAILED(hr))
{
AfxMessageBox(_T("Failed"));
}
pChildFrame-&gt;Create((long)this-&gt;m_hWnd);
}

Can any one please help me

Thanks in advance
AnswerRe: How to set the Form of a C# assembly as a child to COM Compatible Forms? Pin
Paul Conrad26-Jan-08 6:54
professionalPaul Conrad26-Jan-08 6:54 
GeneralSharePoint WebService Help Pin
md Nazeem8-Jan-08 18:21
md Nazeem8-Jan-08 18:21 
GeneralNeed C# sample , practical questions using control structures... Pin
MS Lee8-Jan-08 18:01
MS Lee8-Jan-08 18:01 
GeneralRe: Need C# sample , practical questions using control structures... Pin
Christian Graus8-Jan-08 18:35
protectorChristian Graus8-Jan-08 18:35 
GeneralRe: Need C# sample , practical questions using control structures... Pin
MS Lee8-Jan-08 19:15
MS Lee8-Jan-08 19:15 
GeneralRe: Need C# sample , practical questions using control structures... Pin
Christian Graus8-Jan-08 19:18
protectorChristian Graus8-Jan-08 19:18 
GeneralRe: Need C# sample , practical questions using control structures... Pin
MS Lee8-Jan-08 21:56
MS Lee8-Jan-08 21:56 
GeneralRe: Need C# sample , practical questions using control structures... Pin
Vasudevan Deepak Kumar8-Jan-08 22:13
Vasudevan Deepak Kumar8-Jan-08 22:13 
Generalto apply styles for grid control Pin
chithra.r8-Jan-08 17:52
chithra.r8-Jan-08 17:52 
QuestionLoadTypeLib() not working for C# Class Library dll Pin
Member 42194198-Jan-08 17:36
Member 42194198-Jan-08 17:36 
GeneralUsing User-Defined controls Pin
Member 7816108-Jan-08 16:50
Member 7816108-Jan-08 16:50 
GeneralRe: Using User-Defined controls Pin
Christian Graus8-Jan-08 18:35
protectorChristian Graus8-Jan-08 18:35 
GeneralRe: Using User-Defined controls Pin
Member 7816108-Jan-08 18:50
Member 7816108-Jan-08 18:50 
QuestionSQL Database pictures in datagridview Pin
Jacob Dixon8-Jan-08 15:45
Jacob Dixon8-Jan-08 15:45 
GeneralRe: SQL Database pictures in datagridview Pin
cola19738-Jan-08 20:48
cola19738-Jan-08 20:48 
GeneralRe: SQL Database pictures in datagridview Pin
cola19738-Jan-08 20:50
cola19738-Jan-08 20:50 
GeneralTextBox get focus always Pin
jason_mf8-Jan-08 14:46
jason_mf8-Jan-08 14: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.