The Neckbeard Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The Neckbeard Forum

Talk Techy To Me
 
HomeSearchLatest imagesRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Top posters
Her_Sir
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
Coda
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
MOTOKO
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
clutch
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
HeyVanity
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
BryGuy
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
vazarax
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
Nickloves
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
Link
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
Protoid
A little C# help please? Vote_lcapA little C# help please? Voting_barA little C# help please? Vote_rcap 
Advertisements

 

 A little C# help please?

Go down 
2 posters
AuthorMessage
Coda
Posts On Reboot Badge
Posts On Reboot Badge
Coda


Posts : 181
Powerlevel : 5414
Reputation : 13
Join date : 2011-02-26
Age : 31
Location : Manchester, UK

A little C# help please? Empty
PostSubject: A little C# help please?   A little C# help please? Icon_minitimeThu 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
Back to top Go down
Coda
Posts On Reboot Badge
Posts On Reboot Badge
Coda


Posts : 181
Powerlevel : 5414
Reputation : 13
Join date : 2011-02-26
Age : 31
Location : Manchester, UK

A little C# help please? Empty
PostSubject: Re: A little C# help please?   A little C# help please? Icon_minitimeFri Mar 04, 2011 5:58 am

Fixed this, and broke my database connection and I can't figure out how to fix it, woo!
Back to top Go down
clutch
Posts On Reboot Badge
Posts On Reboot Badge
clutch


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

A little C# help please? Empty
PostSubject: Re: A little C# help please?   A little C# help please? Icon_minitimeSat 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
Coda
Posts On Reboot Badge
Posts On Reboot Badge
Coda


Posts : 181
Powerlevel : 5414
Reputation : 13
Join date : 2011-02-26
Age : 31
Location : Manchester, UK

A little C# help please? Empty
PostSubject: Re: A little C# help please?   A little C# help please? Icon_minitimeSat 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.
Back to top Go down
Sponsored content





A little C# help please? Empty
PostSubject: Re: A little C# help please?   A little C# help please? Icon_minitime

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: