Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
QuestionDifferent Controls Pin
half-life7-Oct-07 7:10
half-life7-Oct-07 7:10 
AnswerRe: Different Controls Pin
Pete O'Hanlon7-Oct-07 10:02
mvePete O'Hanlon7-Oct-07 10:02 
AnswerRe: Different Controls Pin
Matthew Cuba7-Oct-07 10:07
Matthew Cuba7-Oct-07 10:07 
Questionhow to upload image to the database? Pin
LyndonJohn7-Oct-07 6:03
LyndonJohn7-Oct-07 6:03 
AnswerRe: how to upload image to the database? Pin
Justin Perez7-Oct-07 6:34
Justin Perez7-Oct-07 6:34 
AnswerRe: how to upload image to the database? Pin
Pete O'Hanlon7-Oct-07 10:32
mvePete O'Hanlon7-Oct-07 10:32 
AnswerRe: how to upload image to the database? Pin
Mandaar Kulkarni7-Oct-07 20:13
Mandaar Kulkarni7-Oct-07 20:13 
QuestionGraphics in C# how do i write a software base gaphic out of this: Pin
MMaines20057-Oct-07 4:50
MMaines20057-Oct-07 4:50 
I found a way to write my game in c#, but it using 3d graphics. XP and voodoo3 don't agree with each other. So i need to know how to change this so i can use software or change it to full screen when it opens:

namespace WindowsGame1
{
class Engine : Microsoft.Xna.Framework.Game
{
Microsoft.Xna.Framework.GraphicsDeviceManager Graphics;
Microsoft.Xna.Framework.Content.ContentManager Content;
Microsoft.Xna.Framework.Graphics.Texture2D mytext;
Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch;
Microsoft.Xna.Framework.Vector2 Spritepos;
public Engine()
{
this.Graphics = new Microsoft.Xna.Framework.GraphicsDeviceManager(this);
this.Content = new Microsoft.Xna.Framework.Content.ContentManager(this.Services);
}

protected override void Initialize()
{
this.Spritepos = new Microsoft.Xna.Framework.Vector2(100f, 50f);
base.Initialize();
}

protected override void LoadGraphicsContent(bool loadAllContent)
{
if (loadAllContent)
{
this.mytext = this.Content.Load<microsoft.xna.framework.graphics.texture2d>(@"new\text\Mike1");
this.SpriteBatch = new Microsoft.Xna.Framework.Graphics.SpriteBatch(this.Graphics.GraphicsDevice);
}
}

protected override void UnloadGraphicsContent(bool unloadAllContent)
{
if (unloadAllContent)
{
this.Content.Unload();
}
}

protected override void Update(Microsoft.Xna.Framework.GameTime gameTime)
{
base.Update(gameTime);
}

protected override void Draw(Microsoft.Xna.Framework.GameTime gameTime)
{
this.Graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics.Color.Black);
this.SpriteBatch.Begin(Microsoft.Xna.Framework.Graphics.SpriteBlendMode.AlphaBlend);
this.SpriteBatch.Draw(this.mytext, this.Spritepos, Microsoft.Xna.Framework.Graphics.Color.White);
this.SpriteBatch.End();

base.Draw(gameTime);
}
}
}




Michael
(Up and coming Game programmer)
EST

AnswerRe: Graphics in C# how do i write a software base gaphic out of this: Pin
Pete O'Hanlon7-Oct-07 10:13
mvePete O'Hanlon7-Oct-07 10:13 
QuestionData Grid View Row Header Pin
half-life7-Oct-07 2:06
half-life7-Oct-07 2:06 
AnswerRe: Data Grid View Row Header Pin
Matthew Cuba7-Oct-07 7:01
Matthew Cuba7-Oct-07 7:01 
GeneralRe: Data Grid View Row Header Pin
half-life7-Oct-07 7:05
half-life7-Oct-07 7:05 
QuestionBest way to search in a List<List Pin
Ajko7-Oct-07 1:09
Ajko7-Oct-07 1:09 
AnswerRe: Best way to search in a List Pin
Ajko7-Oct-07 1:10
Ajko7-Oct-07 1:10 
GeneralRe: Best way to search in a List Pin
User 66587-Oct-07 5:21
User 66587-Oct-07 5:21 
AnswerRe: Best way to search in a List<List Pin
Guffa7-Oct-07 5:21
Guffa7-Oct-07 5:21 
QuestionMicrosoft Visual C# 2008 Express Pin
Nokoff7-Oct-07 0:28
Nokoff7-Oct-07 0:28 
AnswerRe: Microsoft Visual C# 2008 Express Pin
Dave Sexton7-Oct-07 0:58
Dave Sexton7-Oct-07 0:58 
GeneralRe: Microsoft Visual C# 2008 Express Pin
Nokoff8-Oct-07 2:30
Nokoff8-Oct-07 2:30 
AnswerRe: Microsoft Visual C# 2008 Express Pin
ESTAN7-Oct-07 11:29
ESTAN7-Oct-07 11:29 
QuestionDatagridView Pin
half-life7-Oct-07 0:11
half-life7-Oct-07 0:11 
AnswerRe: DatagridView Pin
Dave Sexton7-Oct-07 1:00
Dave Sexton7-Oct-07 1:00 
QuestionDataSet & MenuStrip Pin
half-life7-Oct-07 0:00
half-life7-Oct-07 0:00 
AnswerRe: DataSet & MenuStrip Pin
Dave Sexton7-Oct-07 1:03
Dave Sexton7-Oct-07 1:03 
GeneralRe: DataSet & MenuStrip Pin
half-life7-Oct-07 1:04
half-life7-Oct-07 1:04 

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.