Click here to Skip to main content
15,911,646 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionhow to paint on panel or on image in webpage with vb.net 2005 ????? Pin
jamalhamou28-Oct-09 0:53
jamalhamou28-Oct-09 0:53 
AnswerRe: how to paint on panel or on image in webpage with vb.net 2005 ????? Pin
Not Active28-Oct-09 0:58
mentorNot Active28-Oct-09 0:58 
AnswerRe: how to paint on panel or on image in webpage with vb.net 2005 ????? Pin
Ashfield28-Oct-09 2:35
Ashfield28-Oct-09 2:35 
AnswerRe: how to paint on panel or on image in webpage with vb.net 2005 ????? Pin
Pete O'Hanlon28-Oct-09 2:58
mvePete O'Hanlon28-Oct-09 2:58 
QuestionHow to select multiple objects using mouse? C# .Net Pin
Zar Ni27-Oct-09 21:05
Zar Ni27-Oct-09 21:05 
AnswerRe: How to select multiple objects using mouse? C# .Net Pin
Richard MacCutchan27-Oct-09 22:11
mveRichard MacCutchan27-Oct-09 22:11 
AnswerRe: How to select multiple objects using mouse? C# .Net Pin
freakyit27-Oct-09 22:20
freakyit27-Oct-09 22:20 
QuestionCalling WPF pages in VC++ Pin
kDevloper27-Oct-09 18:37
kDevloper27-Oct-09 18:37 
Hi,

I am working on an application, which calls a WPF page in MFC exe and loads it too, but the backgound for the WPF is coming black.
here is code snippet
Declaration
using namespace System;
using namespace System::Windows;
using namespace System::Windows::Controls;
using namespace System::Windows::Media;

ref class Globals
{
public:
static System::Windows::Interop::HwndSource^ gHwndSource;
static WpfApplication1::Window1^ gwcContainer;
};
i have added in oninitdialog,

System::Windows::Interop::HwndSourceParameters^ sourceParams = gcnew System::Windows::Interop::HwndSourceParameters("MyWindowName");
sourceParams->PositionX = 20;
sourceParams->PositionY = 30;
sourceParams->ParentWindow = System::IntPtr(this->GetSafeHwnd());
sourceParams->WindowStyle = WS_VISIBLE | WS_CHILD;
System::Windows::Interop::HwndSource^ source = gcnew System::Windows::Interop::HwndSource(*sourceParams);

source->SizeToContent = System::Windows::SizeToContent::WidthAndHeight;

Globals::gwcContainer = gcnew WpfApplication1::Window1();

FrameworkElement^ myPage = Globals::gwcContainer;
source->RootVisual = myPage;

I dont want the black color around.

Any help is highly appriciated.

Thanks&Regards,
KDevloper
Questionvb.net handles clause requires a withevents variable Pin
User 540919027-Oct-09 11:12
User 540919027-Oct-09 11:12 
QuestionCLR Profiler - too many objects??? Pin
Member 332970027-Oct-09 8:12
Member 332970027-Oct-09 8:12 
AnswerRe: CLR Profiler - too many objects??? Pin
Member 332970027-Oct-09 22:54
Member 332970027-Oct-09 22:54 
QuestionGDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) [modified] Pin
rudozkv_new27-Oct-09 8:11
rudozkv_new27-Oct-09 8:11 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
Henry Minute27-Oct-09 10:51
Henry Minute27-Oct-09 10:51 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new27-Oct-09 22:36
rudozkv_new27-Oct-09 22:36 
AnswerRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit27-Oct-09 21:35
freakyit27-Oct-09 21:35 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new27-Oct-09 22:35
rudozkv_new27-Oct-09 22:35 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit27-Oct-09 23:01
freakyit27-Oct-09 23:01 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new27-Oct-09 23:18
rudozkv_new27-Oct-09 23:18 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit27-Oct-09 23:34
freakyit27-Oct-09 23:34 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new28-Oct-09 3:16
rudozkv_new28-Oct-09 3:16 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit29-Oct-09 1:13
freakyit29-Oct-09 1:13 
AnswerRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new28-Oct-09 23:09
rudozkv_new28-Oct-09 23:09 
Questionc#.net Pin
Amit Spadez26-Oct-09 23:38
professionalAmit Spadez26-Oct-09 23:38 
AnswerRe: c#.net Pin
Shameel26-Oct-09 23:59
professionalShameel26-Oct-09 23:59 
GeneralRe: c#.net Pin
Amit Spadez27-Oct-09 0:03
professionalAmit Spadez27-Oct-09 0:03 

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.