Coda Posts On Reboot Badge
Posts : 181 Powerlevel : 5414 Reputation : 13 Join date : 2011-02-26 Age : 31 Location : Manchester, UK
| Subject: A little C# help please? Thu Mar 03, 2011 1:22 pm | |
| If there's anyone here who's able to program in C#, maybe you can help me out. Basically what I want to do is draw a shape onto a tabpage, and I can't get it to work. Here's my "drawSquare" method... - Code:
-
private void drawSquare() { System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red); System.Drawing.Graphics formGraphics = loginTab.CreateGraphics(); formGraphics.FillRectangle(myBrush, new Rectangle(100, 100 ,400 ,400)); myBrush.Dispose(); formGraphics.Dispose(); } What am I doing wrong? :S | |
|
Coda Posts On Reboot Badge
Posts : 181 Powerlevel : 5414 Reputation : 13 Join date : 2011-02-26 Age : 31 Location : Manchester, UK
| Subject: Re: A little C# help please? Fri Mar 04, 2011 5:58 am | |
| Fixed this, and broke my database connection and I can't figure out how to fix it, woo! | |
|
clutch Posts On Reboot Badge
Posts : 137 Powerlevel : 5373 Reputation : 17 Join date : 2011-02-26 Location : Washington state
| Subject: Re: A little C# help please? Sat Mar 05, 2011 1:24 am | |
| - Coda wrote:
- Fixed this, and broke my database connection and I can't figure out how to fix it, woo!
ohh... dude... times like this make me wish i knew computers better. | |
|
Coda Posts On Reboot Badge
Posts : 181 Powerlevel : 5414 Reputation : 13 Join date : 2011-02-26 Age : 31 Location : Manchester, UK
| Subject: Re: A little C# help please? Sat Mar 05, 2011 6:23 am | |
| - clutch wrote:
- Coda wrote:
- Fixed this, and broke my database connection and I can't figure out how to fix it, woo!
ohh... dude... times like this make me wish i knew computers better. It's all good now ;D You should learn to program, it's a really useful skill, helps you optimise your computer use. | |
|
Sponsored content
| Subject: Re: A little C# help please? | |
| |
|