Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connection String in Properties.Settings Pin
PIEBALDconsult29-Dec-12 7:51
mvePIEBALDconsult29-Dec-12 7:51 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0129-Dec-12 7:56
SledgeHammer0129-Dec-12 7:56 
GeneralRe: Connection String in Properties.Settings Pin
jschell30-Dec-12 8:33
jschell30-Dec-12 8:33 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0130-Dec-12 8:56
SledgeHammer0130-Dec-12 8:56 
GeneralRe: Connection String in Properties.Settings Pin
jschell31-Dec-12 9:00
jschell31-Dec-12 9:00 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0131-Dec-12 10:11
SledgeHammer0131-Dec-12 10:11 
GeneralRe: Connection String in Properties.Settings Pin
jschell1-Jan-13 6:58
jschell1-Jan-13 6:58 
AnswerRe: Connection String in Properties.Settings Pin
PIEBALDconsult28-Dec-12 14:32
mvePIEBALDconsult28-Dec-12 14:32 
GeneralRe: Connection String in Properties.Settings Pin
TheJudeDude28-Dec-12 15:47
TheJudeDude28-Dec-12 15:47 
Questionbasic question close and collapse methods Pin
mhd.sbt28-Dec-12 3:22
mhd.sbt28-Dec-12 3:22 
AnswerRe: basic question close and collapse methods Pin
fjdiewornncalwe28-Dec-12 3:29
professionalfjdiewornncalwe28-Dec-12 3:29 
GeneralRe: basic question close and collapse methods Pin
mhd.sbt28-Dec-12 3:42
mhd.sbt28-Dec-12 3:42 
AnswerRe: basic question close and collapse methods Pin
PIEBALDconsult28-Dec-12 3:33
mvePIEBALDconsult28-Dec-12 3:33 
Questionset the parent form size according to child form in mdi form Pin
Arun kumar Gautam28-Dec-12 1:12
Arun kumar Gautam28-Dec-12 1:12 
AnswerRe: set the parent form size according to child form in mdi form Pin
Matt U.28-Dec-12 4:16
Matt U.28-Dec-12 4:16 
AnswerRe: set the parent form size according to child form in mdi form Pin
Eddy Vluggen28-Dec-12 9:04
professionalEddy Vluggen28-Dec-12 9:04 
QuestionSelected rows in a gridview Pin
rakeshs31227-Dec-12 19:26
rakeshs31227-Dec-12 19:26 
AnswerRe: Selected rows in a gridview Pin
vanikanc28-Dec-12 6:48
vanikanc28-Dec-12 6:48 
GeneralRe: Selected rows in a gridview Pin
rakeshs31228-Dec-12 18:48
rakeshs31228-Dec-12 18:48 
AnswerRe: Selected rows in a gridview Pin
Abhinav S28-Dec-12 23:39
Abhinav S28-Dec-12 23:39 
QuestionSliding an Image on another Image Pin
Shubhanshu Pathak27-Dec-12 18:09
Shubhanshu Pathak27-Dec-12 18: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 15:13
C-P-User-327-Dec-12 15:13 
AnswerRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan27-Dec-12 21:45
mveRichard MacCutchan27-Dec-12 21:45 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 5:21
C-P-User-328-Dec-12 5:21 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 5:45
mveRichard MacCutchan28-Dec-12 5:45 

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.