473,743 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 995
"KC" <yo*@dontneed.t his> 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(ByV al sender As Object, _
ByVal e As System.Windows. Forms.PaintEven tArgs) _
Handles MyBase.Paint

e.Graphics.Draw Line(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.t his> wrote in message
news:%2******** ************@TK 2MSFTNGP11.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
2337
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. 1. If the images are stored in the DB then, every an image is requested, it will need to be pulled out and a temp file created and then displayed? What is the best way to do this?
0
1162
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 the mouse cursor. There is very low friction. It slides easily. My problem is that with larger images, it just turns to mud. Refreshing the image, or re-drawing a screenful take so long that trying to pan the image results in jumpy, jerky...
2
8535
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 like "gcnew is undeclared error",how to deeclare 'gcnew" and when i am using in runtime to change the size of images in imagelist in listview control in .net(forms application) by chnging one trckbar(like tb1->Value),
13
1620
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 on the server and not in sql server, however, the name and path of the images are stored with the text in sql server. I don't have a clue on how to load the images into the grid, so can someone please advise on how i can get started with this? ...
3
3088
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 displayed. Can anybody know this issue and help me to resolve this. In past i received the response saying that i should download the image first and then parse the actual response and modify the src attribute of the
14
1451
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, but when we attempt to save the file off so that we can pass it back to our customers we get an odd result. If we try to view the file using Windows Picture and Fax viewer, everything's ok. But try to view it using any other graphics program (such...
7
3124
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 = system.drawing.bitmap.fromFile(filestring) newImage = new bitmpa(sourceImage, newWidth, newHeight) newImage.save(newFileString) Anyone knows of any faster methods?
0
1479
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 something is not right because of the way I am using Application::DoEvents() (ref: http://www.codinghorror.com/blog/archives/000159.html and http://www.codinghorror.com/blog/archives/000370.html ), along with the fact that I get a crash when I try...
7
2071
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 into the picturebox. But if I load the image from the database into the picturebox and try to save (without change), I then get a null exception telling me that the encoder parameter is null. I'm speculating that the file provides the encoder...
1
2439
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: pictureBox.Image = new System.Drawing.Bitmap(this.openFileDialog.FileName);
0
8970
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9344
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9277
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6057
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4827
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3286
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2195
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.