Click here to Skip to main content
12,246,601 members (53,574 online)
   

C#

 
AnswerRe: Connection String in Properties.Settings Pin
PIEBALDconsult28-Dec-12 15:32
memberPIEBALDconsult28-Dec-12 15:32 
GeneralRe: Connection String in Properties.Settings Pin
TheJudeDude28-Dec-12 16:47
memberTheJudeDude28-Dec-12 16:47 
Questionbasic question close and collapse methods Pin
mehdi.sabet28-Dec-12 4:22
groupmehdi.sabet28-Dec-12 4:22 
AnswerRe: basic question close and collapse methods Pin
Marcus Kramer28-Dec-12 4:29
memberMarcus Kramer28-Dec-12 4:29 
GeneralRe: basic question close and collapse methods Pin
mehdi.sabet28-Dec-12 4:42
groupmehdi.sabet28-Dec-12 4:42 
AnswerRe: basic question close and collapse methods Pin
PIEBALDconsult28-Dec-12 4:33
memberPIEBALDconsult28-Dec-12 4:33 
Questionset the parent form size according to child form in mdi form Pin
Arun kumar Gautam28-Dec-12 2:12
memberArun kumar Gautam28-Dec-12 2:12 
AnswerRe: set the parent form size according to child form in mdi form Pin
Matt U.28-Dec-12 5:16
memberMatt U.28-Dec-12 5:16 
AnswerRe: set the parent form size according to child form in mdi form Pin
Eddy Vluggen28-Dec-12 10:04
memberEddy Vluggen28-Dec-12 10:04 
QuestionSelected rows in a gridview Pin
rakeshs31227-Dec-12 20:26
memberrakeshs31227-Dec-12 20:26 
AnswerRe: Selected rows in a gridview Pin
vanikanc28-Dec-12 7:48
membervanikanc28-Dec-12 7:48 
GeneralRe: Selected rows in a gridview Pin
rakeshs31228-Dec-12 19:48
memberrakeshs31228-Dec-12 19:48 
AnswerRe: Selected rows in a gridview Pin
Abhinav S29-Dec-12 0:39
mvpAbhinav S29-Dec-12 0:39 
QuestionSliding an Image on another Image Pin
Shubhanshu Pathak27-Dec-12 19:09
memberShubhanshu Pathak27-Dec-12 19:09 
Dear Group,

I am new to DirectX and I am stuck in one basic scenario. So my requirement is -
I am having C# Windows Form. Now on top of that form I have to Slide one Image on top of another Image. Both Images are passed to my this translating class.
I used the concept of Sprite after going through the online Samples. But the problem is when the Sprite is moving the background is set to the color which is provided in the Device.Clear() method. I didn't find any way by which I can overcome this. There is no way to set the background image of the Device too.

I also tried using the concept of Microsoft.DirectX.DirectDraw.Surface too. PFB the code which I tried -

// Code Snippet Begin
SurfaceDescription description = new SurfaceDescription();

description.SurfaceCaps.PrimarySurface = true;
description.SurfaceCaps.Flip = true;
description.SurfaceCaps.Complex = true;
description.BackBufferCount = 1;

m_PrimarySurface = new Surface(description, m_Device);
description.Clear();
description.SurfaceCaps.BackBuffer = true;
m_SecondarySurface = m_PrimarySurface.GetAttachedSurface(description.SurfaceCaps);

description.Clear();
description.SurfaceCaps.OffScreenPlain = true;

m_ImageSurfaceurface = new Surface("MyImage.jpg", description, m_Device);
// Code Snippet End

But here the line -

m_ImageSurfaceurface = new Surface("MyImage.jpg", description, m_Device);

is giving build error without any explanation why.

So I am in a stuck state. Please Help...

Note - I have DirectX 9.0 SDK installed.

Thanks in advance...
Shubhanshu .
QuestionSerial Port Won't Send While Receiving Pin
C-P-User-327-Dec-12 16:13
memberC-P-User-327-Dec-12 16:13 
AnswerRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan27-Dec-12 22:45
mvpRichard MacCutchan27-Dec-12 22:45 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 6:21
memberC-P-User-328-Dec-12 6:21 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 6:45
mvpRichard MacCutchan28-Dec-12 6:45 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 6:59
memberC-P-User-328-Dec-12 6:59 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 7:40
mvpRichard MacCutchan28-Dec-12 7:40 
AnswerRe: Serial Port Won't Send While Receiving Pin
GrooverFromHolland28-Dec-12 8:04
memberGrooverFromHolland28-Dec-12 8:04 
AnswerRe: Serial Port Won't Send While Receiving Pin
jschell28-Dec-12 10:53
memberjschell28-Dec-12 10:53 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-331-Dec-12 11:54
memberC-P-User-331-Dec-12 11:54 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-31-Jan-13 14:35
memberC-P-User-31-Jan-13 14:35 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-31-Jan-13 14:36
memberC-P-User-31-Jan-13 14:36 
GeneralRe: Serial Port Won't Send While Receiving Pin
GrooverFromHolland2-Jan-13 0:41
memberGrooverFromHolland2-Jan-13 0:41 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-32-Jan-13 5:25
memberC-P-User-32-Jan-13 5:25 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-37-Jan-13 10:21
memberC-P-User-37-Jan-13 10:21 
QuestionQuestion about split Pin
S Douglas27-Dec-12 7:32
memberS Douglas27-Dec-12 7:32 
AnswerRe: Question about split Pin
PIEBALDconsult27-Dec-12 8:20
memberPIEBALDconsult27-Dec-12 8:20 
GeneralRe: Question about split Pin
S Douglas27-Dec-12 9:04
memberS Douglas27-Dec-12 9:04 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 11:38
memberSledgeHammer0127-Dec-12 11:38 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 12:03
memberPIEBALDconsult27-Dec-12 12:03 
GeneralRe: Question about split Pin
S Douglas27-Dec-12 12:29
memberS Douglas27-Dec-12 12:29 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 14:34
memberSledgeHammer0127-Dec-12 14:34 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 14:59
memberPIEBALDconsult27-Dec-12 14:59 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 15:29
memberSledgeHammer0127-Dec-12 15:29 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 16:10
memberPIEBALDconsult27-Dec-12 16:10 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 17:14
memberPIEBALDconsult27-Dec-12 17:14 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 18:24
memberSledgeHammer0127-Dec-12 18:24 
GeneralRe: Question about split Pin
April Fans27-Dec-12 15:14
memberApril Fans27-Dec-12 15:14 
QuestionDebugging C# application using WinDbg 6.12.0002.633 Pin
Sharath C V27-Dec-12 1:20
memberSharath C V27-Dec-12 1:20 
QuestionHOW TO ADD LINK TAG IN CODE OF ASPX.CS PAGE ALONG WITH TAB TEXT TO OPEN LINK. Pin
saurabh pintu goel26-Dec-12 20:51
membersaurabh pintu goel26-Dec-12 20:51 
AnswerRe: HOW TO ADD LINK TAG IN CODE OF ASPX.CS PAGE ALONG WITH TAB TEXT TO OPEN LINK. Pin
OriginalGriff27-Dec-12 5:12
mvpOriginalGriff27-Dec-12 5:12 
Questionhow to add link tag with text in aspx.cs page Pin
saurabh pintu goel26-Dec-12 20:44
membersaurabh pintu goel26-Dec-12 20:44 
Question.net web application Pin
vr99999999926-Dec-12 19:28
membervr99999999926-Dec-12 19:28 
AnswerRe: .net web application Pin
Dave Kreskowiak27-Dec-12 2:33
mvpDave Kreskowiak27-Dec-12 2:33 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 3:18
membervr99999999927-Dec-12 3:18 
GeneralRe: .net web application Pin
Dave Kreskowiak27-Dec-12 3:21
mvpDave Kreskowiak27-Dec-12 3:21 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 19:21
membervr99999999927-Dec-12 19:21 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 2 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid