The Neckbeard Forum

Talk Techy To Me
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Top posters
Her_Sir
 
Coda
 
MOTOKO
 
clutch
 
HeyVanity
 
BryGuy
 
vazarax
 
Nickloves
 
Link
 
Protoid
 
Advertisements

Share | 
 

 A little C# help please?

Go down 
AuthorMessage
Coda
Posts On Reboot Badge
Posts On Reboot Badge
avatar

Posts : 181
Powerlevel : 3222
Reputation : 14
Join date : 2011-02-26
Age : 25
Location : Manchester, UK

PostSubject: 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

_________________
The Neckbeard Forum Moderator

On a mission to make TNF awesome!
Don't forget to give positive reputation to useful posts.
Back to top Go down
View user profile
Coda
Posts On Reboot Badge
Posts On Reboot Badge
avatar

Posts : 181
Powerlevel : 3222
Reputation : 14
Join date : 2011-02-26
Age : 25
Location : Manchester, UK

PostSubject: 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!

_________________
The Neckbeard Forum Moderator

On a mission to make TNF awesome!
Don't forget to give positive reputation to useful posts.
Back to top Go down
View user profile
clutch
Posts On Reboot Badge
Posts On Reboot Badge
avatar

Posts : 137
Powerlevel : 3180
Reputation : 17
Join date : 2011-02-26
Location : Washington state

PostSubject: 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.
Back to top Go down
View user profile
Coda
Posts On Reboot Badge
Posts On Reboot Badge
avatar

Posts : 181
Powerlevel : 3222
Reputation : 14
Join date : 2011-02-26
Age : 25
Location : Manchester, UK

PostSubject: 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.

_________________
The Neckbeard Forum Moderator

On a mission to make TNF awesome!
Don't forget to give positive reputation to useful posts.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: A little C# help please?   

Back to top Go down
 
A little C# help please?
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Neckbeard Forum :: General Threads :: Web Development/Coding General-
Jump to: