Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 25th, 2007, 01:10 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SOS~

´òÈÅÁË~ÎÒÏëÇë½ÌÒ»¸öÎÊÌâ:
ÔÚ<<VB.NETÈëÞ­µä>>Ò»ÊéÖÐ,µÚÊ ¶þÕµÄÄÇƪ<ÖÆͼ¼¼Êõ>,ÓÐÒ»¶ δúÂëÊÇÕâÑùµÄ:
Public Class GraphicsCircle
        Inherits GraphicsItem

        Public Overrides Sub Draw(ByVal graphics As _
        System.Drawing.Graphics)

            'creat a new pen...
            Dim brush As New SolidBrush(Me.Color)

            'draw the circle
            graphics.FillEllipse(brush, MeRectangle)
        End Sub
    End Class
ÎÒ°´ÕÕÊéÉÏ˵µÄÊäÈë½øÈ¥µÄÊ ±ºò,VB³öÏÖÕâÑùµÄ´íÎóÌáʾ:
1.sub¡°Draw¡±²»ÄÜÉùÃ÷Ϊ¡°Overrides ¡±£¬ÒòΪËü²»ÖØд»ù class ÖÐµÄ sub¡£
2.¡°Color¡±²»ÊÇ¡°WroxPaint.GraphicsCircl e.GraphicsCircle¡±µÄ³ÉÔ±¡£
3.Ãû³Æ¡°MeRectangle¡±Î´ÉùÃ÷¡£
ÇëÎÊÔõô½â¾ö~~ллÁË



Reply With Quote
  #2 (permalink)  
Old January 2nd, 2008, 06:27 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

SOS is not much of a topic, and this forum is primarily English-language.
Though your routine is legible, the text surrounding it is not.

Try to pick a topic that explains the... well, the topic. Like "Cannot draw circle on form face."

That way, those who know something about that will be drawn to your post.
Reply With Quote
  #3 (permalink)  
Old March 25th, 2008, 10:37 PM
Registered User
 
Join Date: Mar 2008
Location: , , Hong Kong.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Fall,

I think I can help to to translate:

You follow the code example of a book and found the sample codes show error / warning messages.

If it is a Wrox box, I suggest you could visit the "Books" area of this forum to search for the book you are reading.

BTW, I expected that there are more codes required for your codes to work properly. There may be more in the sample.

Eins Tsang
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SOS!I am a student from China!Who can help me? rose1975_ren XML 0 November 3rd, 2004 08:21 PM
Please Help me!(SOS) zhangmin XML 1 March 12th, 2004 05:18 PM
SOS:.dll file couldn't be loaded! LuckyChanceMore BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 3rd, 2004 02:37 PM



All times are GMT -4. The time now is 03:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.