473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 982
"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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.