VB 6.0 - Image Different Forms Appear Visible?

Asked By Mercedes Blanch
03-Feb-12 02:12 AM
I have my main form with several images that will be displayed based on the image selected by the user on another form.  Therefore, user is in Form2, selects and image, clicks a command and goes to main form passing that image to the main form.  
On my main form the user is able to move the images around (right, left, up...etc) This last thing already taken care of although it makes a splash light when the image is moving... If anyone can make this splash light out will be much appreciated, not sure why it happens.  Now, next problem is that the user needs to be able to remove an image from the main form if he/she wants it.  My first question is how to remove an image when is selected? I was going to make a "Remove" command to make this image "Visible = False" however this can get messy since user might want to change his mind and add it again.  Then, if I make it back to Visible =True when the image gets selected again, the image will be displayed and located at the last place user placed it and I want it to always be dispalyed for the first time on the same place.  How can I do this?  
Plus if the user decides to have many images on the main form do I have to make them all "Visible = False" as first time? Im so confused!!! Please help!!!    
  D Company replied to Mercedes Blanch
04-Feb-12 09:38 AM
Hello friend,

Couple of things you have asked, lets try one by one.

1)first of all, create the object of image form in to the main form where you display all the images
2)second than on selected images you can prompt for the user to change his choice using message box.
3)try to make false the visible property of all the images initially
4)use stretch property and make it true for image control to avoid splash screen.
5)fetch x and y indexes of image when user move it from initial position and save somewhere, so that next time if u want to place at the same place u can assign those positions again

Here are few good examples are given .

http://www.vb6.us/tutorials/understanding-forms-vb6-tutorial



Regrards
D

Create New Account
help
remove image tags in string .NET Framework I have a HTML string that I want to remove all the <IMG . . . . . . . > tags from. . . any regex's out there for this? I basically just want to remove all the images from the HTML. . thanks! VB.NET Discussions Regex (1) Ignore (1) SingleLine (1) Expresso (1) Wagner (1) Seth (1) Rowe URL:http: / / dotnet.mvps.org / > V B <URL:http: / / dotnet.mvps.org / dotnet / faqs / > keywords: remove, image, tags, in, string description: I have a HTML string that I want to remove all the IMG . . . . . . . tags from. . . any regex's out there for this I basically just
VB to set image setting Visio Hi. Is it possible to create a routine to import a image from the dialog, that will: change the dimensions (x pos, y pos, image width, image height) Set layer. Dim UndoScopeID1 As Long UndoScopeID1 = Application.BeginUndoScope("Size & Position 2-D") Application Shapes (1) VisShp.CellsSRC (1) Application.BeginUndoScope (1) Application.EndUndoScope (1) Excel (1) VBA (1) VB (1) Some quick lessons on Visio macro recorded VBA 1) Remove any line referring to UndoScope* 2) Replace Application.ActiveWindow.Page.Shapes.ItemFromID(12) with a to a specific layer i.e. layer named 'plan' rather than a number ? Thanks, keywords: VB, to, set, image, setting description: Hi. Is it possible to create a routine to import
members of r value references and copy constructors C++ / VB Are members of r value references also considered r values? In particulate, consider this Image class. typedef unsigned char Byte; typedef std::vector<Byte> ImageVec; struct Image { Image(): m_width(0), m_height(0) {} Image(Byte* img_data, size_t width, size_t height): m_data(img_data, img_data + width * height * 3), m_width(width), m_height height) { } Image(Image&& img): m_data(img.m_data), m_width(img.m_width), m_height(img.m_height){ img.m_width = 0; img.m_height = 0; } Image& operator = (Image&& img) { if (this ! = &img) { m_data = img.m_data; m_width = img.m_width; m_height = img.m_height
VB 2005 equivalent of VB 6 PictureBox.Point, VB 2005 general confusion. .NET Framework I am trying to get a pixel value from a picture box in VB 2005. I know how to do it in VB 6: clr& = Picture1.Point(x, y) I can't figure out how to do it in 2005. Even the VB 6 import wizard in VB 2005 can't seem to figure it out. The documentation says this: the M:System does that have to do with my picture box? I noticed my PictureBox has an "Image" property, but that does not have a GetPixel member either, and in general I'm
Clipboard reduces the resolution of the copied image C++ / VB Hi, I apologize if this is the wrong forum to post this question. I am advise me if this is not the right forum. Now my question. I have an Image being copied over to Clipboard using Windows SetClipBoardData(UINT nFormat, HANDLE hMem) call. The original Image has a resolution of 300 DPI. But, the Image being copied over to the Clipboard has 86 DPI only. Incidentally, this matches my monitor screen resolution as well. I am saving the Image as a BITMAP ( by passing in CF_BITMAP as the I set the "nFormat" as CF_TIFF document." Can anyone please let me know how I would be able to keep the image resolution when copying over to the clipboard? Or am I doing anything wrong? Thanks in advance VC MFC Discussions Image (1) Resolution (1) BITMAP (1) MVP (1) CreateCompatibleBitmap (1) SetClipBoardData (1) NFormat (1) SoftCircuits (1