472,358 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

Images and drawing stuff. How???

KC
This is a stupid question, but how do you (can you) 'draw' on a form? I just
want to highlight or enhance parts of a form with a line here, a box there,
etc. This was once possible on earlier versions of VB (I recently bought
VB.net, my last one before this was VB4).

I have my image editor toolbar, but everything is greyed out. I know (hope)
this is something simple. MS seems to have made all the little 'simple'
things in VB hard. I understand there's more power, but it's hard after
being away for a few years.

Ken
Nov 20 '05 #1
2 953
"KC" <yo*@dontneed.this> schrieb
This is a stupid question, but how do you (can you) 'draw' on a form?
I just want to highlight or enhance parts of a form with a line here,
a box there, etc. This was once possible on earlier versions of VB (I
recently bought VB.net, my last one before this was VB4).

I have my image editor toolbar, but everything is greyed out. I know
(hope) this is something simple. MS seems to have made all the little
'simple' things in VB hard. I understand there's more power, but it's
hard after being away for a few years.


Simple things have been removed. ;-)

The image editor is for editing images only. On a Form, you can only put
controls. To draw on a control (a Form is a control), override Sub OnPaint
or handle the Paint event:
Private Sub Form1_Paint(ByVal sender As Object, _
ByVal e As System.Windows.Forms.PaintEventArgs) _
Handles MyBase.Paint

e.Graphics.DrawLine(Pens.Red, 0, 0, 50, 50)

End Sub
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Hi,

Line controls.
http://www.windowsforms.com/TrackVie...26tabindex%3d3

Ken
----------------
"KC" <yo*@dontneed.this> wrote in message
news:%2********************@TK2MSFTNGP11.phx.gbl.. .
This is a stupid question, but how do you (can you) 'draw' on a form? I
just
want to highlight or enhance parts of a form with a line here, a box
there,
etc. This was once possible on earlier versions of VB (I recently bought
VB.net, my last one before this was VB4).

I have my image editor toolbar, but everything is greyed out. I know
(hope)
this is something simple. MS seems to have made all the little 'simple'
things in VB hard. I understand there's more power, but it's hard after
being away for a few years.

Ken

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
0
by: bullshark | last post by:
I have a C# application that manipulates images. The application provides the ability to pan around the images. Normally you can "grab" the image and move it around and it moves in real time with...
2
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error...
13
by: moondaddy | last post by:
Happy Holidays All! I want to load a datagrid with images and text (Image, text, image, text, etc...). The data for this datagrid will be coming from sql server and the images are stored as files...
3
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are...
14
by: EdB | last post by:
We are having an odd problem saving images. We capture customer signatures on a Palm Pilot and save them as points on a graph. We are able to reconstruct these points to display the signature,...
7
by: chad | last post by:
is it just me or does anybody else find the Image.RotateFlip method kind of slow? (I'm comparing to commercial softwares). Same for resizing. I'm using sourceImage =...
0
by: Marcus Kwok | last post by:
I have written a class (Windows Form) in Managed C++ that accepts an array of image filenames and will display them sequentially. All images will be the same size. I got it to work, but I know...
7
by: Earl | last post by:
I have an image issue that I do not understand. When I try to save a bitmap created from a picturebox image, I can save without exception so long as the bitmap was retrieved from a file and loaded...
1
by: san123456789 | last post by:
Hi, Im using a MS SQL server to store images... Im creating a windows form application using C#. I need to store and retrieve images from the database. This is my code to store images: ...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.