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

C#

 
AnswerRe: Error 170:In correct Syntax- SQL Server and C# Pin
Ian McCaul14-May-09 8:28
Ian McCaul14-May-09 8:28 
GeneralRe: Error 170:In correct Syntax- SQL Server and C# Pin
SilimSayo14-May-09 8:47
SilimSayo14-May-09 8:47 
QuestionMonitor a text file to see when it opens or closes... Pin
Engineer Joe14-May-09 7:48
Engineer Joe14-May-09 7:48 
AnswerRe: Monitor a text file to see when it opens or closes... Pin
DaveyM6914-May-09 7:59
professionalDaveyM6914-May-09 7:59 
AnswerRe: Monitor a text file to see when it opens or closes... Pin
Baeltazor14-May-09 8:04
Baeltazor14-May-09 8:04 
AnswerRe: Monitor a text file to see when it opens or closes... Pin
Engineer Joe14-May-09 8:12
Engineer Joe14-May-09 8:12 
GeneralRe: Monitor a text file to see when it opens or closes... Pin
DaveyM6914-May-09 8:25
professionalDaveyM6914-May-09 8:25 
QuestionC# Direct3D Question Pin
will kirkby14-May-09 7:30
will kirkby14-May-09 7:30 
I have a simple scene in Direct3D in c#, but i am having trouble getting it to draw objects in the right order:
Image 1
Image 2 (Wrongness)



device.Clear(ClearFlags.Target, Color.Black, 1.0f, 0);<br />
            device.BeginScene();<br />
            device.VertexFormat = CustomVertex.PositionTextured.Format;<br />
<br />
            //SET TEXTURE AND DRAW FLOOR<br />
            LoadTexturesAndMaterials("TexFloor.png");<br />
            device.SetTexture(0, texture);<br />
            device.DrawUserPrimitives(PrimitiveType.TriangleList, 8, Floor);<br />
<br />
            //DRAW A PILLAR<br />
            LoadTexturesAndMaterials("TexPillar.png");<br />
            device.SetTexture(0, texture);<br />
            device.DrawUserPrimitives(PrimitiveType.TriangleList, 16, MakePillar(new Vector3(fb, 0, 0), 4, 0.2f));<br />
            device.DrawUserPrimitives(PrimitiveType.TriangleList, 16, MakePillar(new Vector3(-fb, 0, 0), 4, 0.2f));<br />
            device.DrawUserPrimitives(PrimitiveType.TriangleList, 16, MakePillar(new Vector3(0, 0, -fb), 4, 0.2f));<br />
            <br />
            //DRAW CRYSTAL<br />
            LoadTexturesAndMaterials("TexCrystal.png");<br />
            device.SetTexture(0, texture);<br />
            device.DrawUserPrimitives(PrimitiveType.TriangleList, 32, Crystal);<br />
<br />
            device.EndScene();<br />
            device.Present();<br />
            Graphics g = this.CreateGraphics();<br />
            g.DrawString("HUD Test", this.Font, Brushes.Red, new PointF(20, 20));<br />
            this.Invalidate();<br />

AnswerRe: C# Direct3D Question Pin
Anthony Mushrow14-May-09 14:01
professionalAnthony Mushrow14-May-09 14:01 
QuestionCustom Control Pin
jammmie99914-May-09 7:11
professionaljammmie99914-May-09 7:11 
AnswerRe: Custom Control Pin
DaveyM6914-May-09 7:26
professionalDaveyM6914-May-09 7:26 
GeneralRe: Custom Control Pin
jammmie99914-May-09 8:37
professionaljammmie99914-May-09 8:37 
Questiondatagrid add column Pin
michaelgr114-May-09 6:42
michaelgr114-May-09 6:42 
QuestionProblem to workflow Pin
hdv21214-May-09 6:29
hdv21214-May-09 6:29 
AnswerRe: Problem to workflow Pin
DaveyM6914-May-09 9:06
professionalDaveyM6914-May-09 9:06 
GeneralRe: Problem to workflow Pin
hdv21214-May-09 9:37
hdv21214-May-09 9:37 
QuestionTab to previous control not working. Pin
lastdays14-May-09 6:22
lastdays14-May-09 6:22 
QuestionUserControls [modified] Pin
densher14-May-09 5:51
densher14-May-09 5:51 
QuestionRe: UserControls Pin
Eddy Vluggen14-May-09 6:22
professionalEddy Vluggen14-May-09 6:22 
AnswerRe: UserControls Pin
densher14-May-09 7:19
densher14-May-09 7:19 
NewsRe: UserControls Pin
Eddy Vluggen14-May-09 8:15
professionalEddy Vluggen14-May-09 8:15 
GeneralRe: UserControls Pin
densher14-May-09 8:35
densher14-May-09 8:35 
QuestionSend a struct to external DLL Pin
Ronenb14-May-09 5:47
Ronenb14-May-09 5:47 
AnswerRe: Send a struct to external DLL Pin
DaveyM6914-May-09 7:32
professionalDaveyM6914-May-09 7:32 
GeneralRe: Send a struct to external DLL Pin
Luc Pattyn14-May-09 8:17
sitebuilderLuc Pattyn14-May-09 8:17 

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.