Re: Drawing lines - another noob question
- From: davetelling <davetelling@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Sep 2006 11:14:02 -0700
Bob,
I did take a look at your webpage, and tried some of the code there, but
unfortunately, it doesn't do what I want. If I understand correctly, the
graphics object just draws within the form you already have generated. In my
forma I have a bunch of butttons, text boxes, etc. on which I don't want to
draw. The background color is red, and I want a space at the bottom that
would be the actual graphics "window". If I make a new form in my project, I
can't seem to find a way to add it to the form I already have so that I can
write to it.
I realize that I'm not paying you (or anyone else) for advice, so I can't
ask for a whole lot, but can you "embed" this graphic object into an existing
form such that it is locked into a particular position and can be written to
without worrying about anything else on the form?
Thanks,
Dave .
"Bob Powell [MVP]" wrote:
I strongly recommend the Beginners Guide to GDI+ available on my site.
followed by constant referral to the GDI+ FAQ.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"davetelling" <davetelling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:47FC52F7-932D-4F97-8EC0-51A782F3DDC6@xxxxxxxxxxxxxxxx
I am not a programmer, I'm an engineer trying to make an interface to a
product I'm designing. I have used C# to make a form that interrogates the
unit via the serial port and receives the data. I want to be able to draw
lines in a picturebox based upon certain data points I have received. I
dragged a picturebox from the toolbar onto my form, but after having gone
through the help files, looking online and trying a variety of things, I
absolutely cannot seem to draw lines on the picturebox. The sample code in
the help files seems to assume that I knwo more about the process than I
do,
as I can find nothing that says, "How to draw lines in a picturebox". I
was
able to successfully add a background image, but I'm also wondering if
this
graphic data has to accompany the application, or if it gets "embedded"
into
the actual application?
At any rate, is there a tutorial that gives some explicit instructions as
to
how to use a method (not part of the picturebox click event handler) to
write
to the picturebox. If I can't do this, then how can I easily do it? The
lines
have to be able to be easily updated when new data are read in.
- References:
- Re: Drawing lines - another noob question
- From: Bob Powell [MVP]
- Re: Drawing lines - another noob question
- Prev by Date: Re: Constants or resources
- Next by Date: remove AD profilePath
- Previous by thread: Re: Drawing lines - another noob question
- Next by thread: Visual C# 2005 Express/ XNA Game Studio Express problem
- Index(es):
Loading