Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Open Image In New Window


I have made an image program in which the user is able to open up to 5 images for viewing at thumbnail size.

What I want to do now is alow the user to open a full size version of each image in a new window by double clicking whichever image they want

I'm stuck like a monkey in the muck, any ideas?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Open Image In New Window
Currently i can display images using the image tool, however the image enlarges or is shrunk to fit inside the image window.

Is it possible to click the image which then opens it up in another window in it's original size/form?

What makes it more difficult is that im using A DriveListBox, DirListBox and FileListBox to get to the image file. I tried copying the location from these into a new image placeholder inside the new window myself but to no avail.

I'm using VB6

Open Image In New Window
I'm very new to visual basic and I have a problem that some of you will possibly find very basic -

I have made an image program in which the user is able to open up to 5 images for viewing at thumbnail size.

What I want to do now is alow the user to open a full size version of each image in a new window by double clicking whichever image they want

I'm stuck like a monkey in the muck, any ideas?

Obtaining The Window Size (window.open Xxxx) Using WebBrowser
When programming in Visual Basic 6 and using the webbrowser control, does any one know how to trap the window size the link is calling for? I would like to be able to pass this information onto my form and display the form properly.

An example would be: window.open('view_pop.htm','','width=520,height=428,left=0,top=0');

How do you detect the size in window.open to size your Visual Basic form to the Width, Height, Left and Top positions?

Open A New Web Browser Form When User Clicks Open New Window Link
As the title suggests I would like to be able to open a new window of my own each time a user clicks a "Open in New Window" link on a website.
Is this possible? It of course would mean a user would have to be able to open multiple instances of the same form that are different from one another.
At the moment when a user clicks a open new window link it results of Internet Explorer getting opened over the top of my app, rather than my own form dedicated for separate windows

Also if it's not too much to ask, does anyone have any idea how to quite simply print a webpage? With nothing extra, just a YesNo box i intend to do with when the user presses Yes the currently displayed webpage will print.
Thanks for any help in advance

Get Contents Of Open IE Window By IE Window Title
I would like to be able to get the HTML content of an open IE window by the window title. How would ono go about doing this?

Thanks
GK

Keeping DOS Window Open After Using SHELL To Open It
Currently, I have made a program with an about box made in QBASIC (DOS) as an executable, and have linked it to a command button in my VB project.


Code:
Private Sub Command1_Click ()
Shell "Aboutme.exe /k", 1
End Sub

The DOS program runs correctly, but is it possible to keep the DOS command window open after the program execution? I would like to do this because all the credits are displayed after the execution of the program. And for everyone who is wondering why I don't use VB to do the the About box, it's because I can't do the animation required in VB. Also, I am using Windows XP. Thanks for anyone that can help.

About Window ::: When Open Document How To Manage It Show Which Document Open Now?
did u see windows menu in vb ? how we know what open and can add or remove it ? which command ?

How To Open New Window's Window?
when i press a button how can i open a window of windows 98 or any other version? API code?

Window / Image Sizing
More help needed with my application that mimicks the Browse facility of Paint Shop Pro.

When the images have been displayed as thumbnails, I have added functionality to allow the user to double click on an image and a new window opens, containing just an image box, and I want the image and the window to be the size of the image.

The window is always a bit smaller than the image.

This is the code I have used.

Private Sub Image1_DBLClick(Index As Integer)
Dim f As New frmpic

Load f
f.Picture1.Picture = main.image1(Index).Picture
f.Height = f.Picture1.Height
f.Width = f.Picture1.Width
f.Caption = main.Text1(Index).Text
f.Picture1.ToolTipText = g_filepath & main.Text1(Index).Text
f.Show

End Sub


Any help gratefully recieved
Ta
Neil

Capturing Image From Window
Hello,

Is there any way to get an image from a specified area (x,y,w,h) of a picture on a window, and set this image to image control.

Thanks,
Belal Marzouk

Window Image Capturing
I need to capture the client area of a window that is not the active window. The window I would like to capture is a program written in C(I dont know if that matters or not). I have tried several different methods of doing this and would like to know what anyone else thinks or has ideas about. Please email me ASAP with any ideas you have or if you know a surefire way to code this dilemma. Thank you kindly.

Brent Keller

Get URL From Open IE 6 Window
I am writing a program that opens certain webpages in a predefined order. Some of the pages require a login to gain further access.
I currently have it coded to open and close web pages based on their title. I'll have a Do/Loop with a DoEvents that will check to see when the user has entered their login information and the page changes.
However, once I started into the project I realized that some of the secure webpages don't change their window title name. This makes it difficult to close the right windows.
What I would like to do is find each open window by the known title name using FindWindow, then retrieve the current URL from the address bar so that I can use the URL to check on which window to close or leave open.
I believe I may be able to get the URL using PostMessage API, but I have no idea how the coding would look.

Thanks for any tips!

How Open A Window ...
Hello,
How can I to open a window for to ask a question ? For example a window with "Do you want to delete this file ? " and I can choose between YES or NO.

Best Regards

bonj98

Open URL In Same Window
what is the coding that can view the URL in the same window that i opened previously?

Open Ie Window
Hello,

How can i open a ie window (without adressbar, menubar, etc) from visual.
In javascript is:
window.open('index.html','','width=770,height=580,left=0, right=0, top=0, bottom=0, resizable=No, scrollbars=No,MenuBar=No,toolbar=No,titlebar=yes')

Thanks on advance

Alexandre Almeida

Open In My Window
hi, is there a way to open an exe INSIDE a picture box on my form. ive tried the shellEX thingy but it just opens the exe as normal.

also, is there something i can put in the exe or this project to make it so they can talk to each other?

Open A New Window
hey ppl. can someone tell me how to open a new window using visual basic. here is the situation:
i have a form and a button on it. when i click the button i want to display a particular website, how do i do that?
(open website in a NEW window)

thnx!

Open IE WIndow
Ok, I opened a new IE window using ShellExecute... Now, I want to fillout two forms on that web page using textboxes 1 and 2... How would this be done?
EDIT:Just so you know I already tried with a webcomponent, and what I want done doesnt work, so this needs to be done in a new window..

Open In New Window!
I am displaying the History of the various URLs the user has navigated to in a Frame on the WebBrowser control. When any of the URLs is clicked in the History Frame, a menu comes up wherein Open in New Window is one of the menu items. How do I ensure that the selected URL opens in a new browser window when the URL is right-clicked & Open in New Window is selected? I tried this but it doesn't work:
VB Code:
[color=blue]Private Sub [b]wWeb_NewWindow2(ppDisp As Object, Cancel As Boolean)[/b]    Dim frm As frmWebBrowser    Cancel = IsPopupWindow    If (Cancel = False) Then        Set frm = New frmWebBrowser        Set ppDisp = frm.wWeb.Object        frm.Show    End IfEnd SubPrivate Function [b]IsPopupWindow()[/b] As Boolean    On Error Resume Next    If (wWeb.Document.activeElement.tagName = "BODY" Or wWeb.Document.activeElement.tagName = "IFRAME") Then        IsPopupWindow = True    Else        IsPopupWindow = False    End IfEnd FunctionPrivate Sub [b]mnuHistoryNewWin_Click()[/b]    Call wWeb_NewWindow2(wWeb, False)End Sub[/color]


Thanks,

Arpan

Open.window ?
I have got the following:


Quote:





Sub AddLink(Url, Info)
dim finalstring
dim id
id = mid(url,48)
finalstring=("http://www.xxxxxxxxxxxxxx.com/postings.php?s=&threadid=" + id + "&action=deletethread")
window.open finalstring
end sub






Now this works fine, but always opens a new full-sized window with toolbar ect.

What I want:

The new window should open with a smaller size, without Toolsbar ect. and a new Window-Name.

How can I realise that ?


Thanks in advance,
MrZeropage

Open New Window From CGI
Hi,

I have an ActiveX project running in a browser and I want to make a popup window when an error occurs.
I use some javascript to open help windows in other parts of the project

Code:
Function openNew(url)
win=window.open(url,"help","height=600,width=650,location=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=no")
end function

I cant use this for my error windows though as an event needs to fire to get it going. (The errors will occur server side.)

Anyone know what I should put to open a new window?

/Andrew

Open Window
Well this could be a stupid question, but who cares.
I would like to make a kind of browse window, like you have for example in the internet explorer file menu and the option open.
I know there is a site somewhere where I could download the sample code, but I don't know which one it is anymore.
The second problem is that I don't know how to call this 'open file window' in english, so that makes searching very difficult.
So if someone knows a site where I could download this sample code or how I could search this in english, I would be gratefull.

Open In New Window
Why is that my open new window command in ie doesn't work? Did i accendentally hit disable key?

please advice thanks!

Open In A New Window
I know how to open an html with Shellexecute, but it's being opened in the current explorer window. Is there any way to force the opening of a new explorer before retrieving the html?

Seeing If Window Is Open
HELP is need, i have been trying for hours and hours on how to see if the run window is open and i cant get it to work , if any one can help me on this please do so, the thing that is hard is that the parent doesnt have a handel, or atleast i dont think it does

Open In Same Window
Im writing a small application to take the job of IE as the primary Jpeg Viewer. My problem is i don't want it to open up a new program when i click on another picture how can i do that?

Open URL In Window
Hi,
I'm new to VB so this might seem like a simple question. Someone on my site enters a URL in a form box, all i want it to do is open that URL in a new browser window.

<img src="http://img.villagephotos.com/p/2003-6/226576/form1.gif" width=432 height=81>

So far i have no command functions.


Code:

Private Sub Command1_Click()
End Sub

Private Sub Text1_Change()
End Sub



Can someone help me with this please?

Thanks.

Open In New Window
I just can seem to be able to get the URL being navigated to when openign in the new window.

I am using a tabbed webbrower in vb.net Express.

I add my handler with the code:

AddHandler wbTabExplorer.NewWindow, AddressOf wbTabExplorer_NewWindow


and my NewWindow code is:

    Private Sub wbTabExplorer_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
        Dim wb As WebBrowser = DirectCast(sender, WebBrowser)
        txtAddress.Text = wb.Url.ToString
        btnGoToAddress.PerformClick()
        e.Cancel = True
       
    End Sub

but how do i get the URL for the new window?

How To Open Ie Window In Vb
could anyone please help me out. i am somewhat new to vb and i am trying to figure out how to open a default browser window. any help would be appreciated.

Open New Window
Hi,
I'm beginner of vc and i wish to know how to create new windows. Suppose i have the following codes:

void CMdispMFCView::OnGrabStart()
{
// TODO: Add your command handler code here

/////////////////////////////////////////////////////////////////////////
// MIL: Write code that will be executed on a grab start
/////////////////////////////////////////////////////////////////////////

// If there is a grab in a view, halt the grab before starting a new one
if(((CMdispMFCApp*)AfxGetApp())-&gt;GrabIsStarted)
((CMdispMFCApp*)AfxGetApp())-&gt;GrabInViewPtr-&gt;SendMessage(WM_COMMAND, ID_GRAB_STOP, 0);

// Start a continuous grab in this view
MdigGrabContinuous(((CMdispMFCApp*)AfxGetApp())-&gt;MilDigitizer, ((CMdispMFCDoc*)GetDocument())-&gt;MilImage);

// Update the variable GrabIsStarted
((CMdispMFCApp*)AfxGetApp())-&gt;GrabIsStarted = TRUE;

// GrabInViewPtr is now a pointer to this view
((CMdispMFCApp*)AfxGetApp())-&gt;GrabInViewPtr = this;

// Document has been modified
((CMdispMFCDoc*)GetDocument())-&gt;SetModifiedFlag(TRUE);

/////////////////////////////////////////////////////////////////////////
// MIL: Write code that will be executed on a grab start
/////////////////////////////////////////////////////////////////////////

}

void CMdispMFCView::OnUpdateGrabStart(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
CView *GrabOwnerViewPtr = ((CMdispMFCApp*)AfxGetApp())-&gt;GrabInViewPtr;

pCmdUI-&gt;Enable(!(GrabOwnerViewPtr &&
(GetDocument() == GrabOwnerViewPtr-&gt;GetDocument()) &&
(((CMdispMFCApp*)AfxGetApp())-&gt;GrabIsStarted == TRUE) &&
((CMdispMFCApp*)AfxGetApp())-&gt;NumberOfDigitizer));
}

int MilGraNx1(LPVOID pParam1, LPVOID& pParam2);
int MilGraNx2(MIL_ID& MilDigitizer, MIL_ID& MilImage);
int MilGraNx3(MIL_ID& MilImage, char* & pParam);


This function is to capture realtime image. But can i know how to open a new window each time i enter this function? Thanks Alot!

Michelle

Open Dos Window
How do I open a dos window,
give two dos commands one after the other,
then close that dos window.

Thank You,
Shivakumar G.M.

Open New Window
I am trying to open a new IE window using VBScript but I want the window that is opened to be centered on the screen. How can I do this? Thanks.

Making A New Window The Size Of A Image
I would like to load an image into a new window and automaticly size the window to the size of the image. Any ideas?

Image Capture To File Or New Window
i am trying to capture an image from the webcam.
This image is then to be processed..And finally i want to see the result(ie new processed image in a window)

to do this i am using the CAPSTATUS struct, Videohdr struct etc. and the capture callback fub
ctions like capDriverConnect, capPreview, capSetCallbackOn Frame etc.

everything's working fine. I am even able to get the pixels info. from Video RAM into a local array using RtlMoveMemory. (this is the basic req. since i want to process this image ..since for my processing req. there is no predefined VB/VC++ function)
Ok, so i perform certain operations on the array elements.

PROBLEM 1:

The catch is that this is a realtime application so i dont want any dialog boxes displayed for user response(eg 'Save File As etc)

Now after processing the image, how can i see the result of the processing?
i.e. consider a simple eg : i have sharpened the contrast, OR i have changed some colors in the image. Now i want to display a window which will show me my new modified image (by using the modified values in the local array.)Is there something available , which will allow me to connect this window to the array? i cannot understand how will the pixel info in array be interpreted as an image by the window?

PROBLEM 2:
I would like to know how i can save the pixel values from the array into a bmp/dib file.But , i do NOT want the'Save File As' Dialog Box to be displayed by the program. I want that the filename be specified in my code itself and the image be saved to that file directly.

Please can someone help me as both the above questions have been bugging me for a long time.

Display Tiff Image On Window
hello i am mohan doing project in image processing , and i have to display tiff image on window please help me
mohan.

Open A New Window From A Button
Hey, ive been making a browser through VB 6..Im kinda new though...

I was wondering how i can open up Ex: an About section (frmAbout) from the browser by clicking the 'About' Tab?

Property Window Cannot Open
when i run my any program few times then i am unable to open the property window. not even by pressing f4 whereas all other windows are accessible. please help

Open Link In New Window
Hello!

Is there anybody here, who can tell me how to open an URL in the default browser, but in a new window...not in the old one (if exist). I need a simple code... I didnt find anything with google and with the search engine in the forum...

Respectfully yours

Save As/Open Window
hi! i just have the same problem with john_john so i wonder how do you actually use the common dialog box?

Save As/Open Window
Hi,

How can I made my application pop up a Open or Save As windows like in any other windows program, and retrieve the name of the file to use it in my program?

Thank you guys

John_john

Open IE In Minimized Window
Okay this has been asked alot but never solved...

i want to be able to open IE in a minimized window....

BUT, i want it to open in one window (say i click a button, it opens one IE, then i click the next, i want it to direct the first IE window to the new URL)


but ShellExecute wont work

and shell makes multiple instances of IE appear...

i dont want to end up killing Iexplore.exe every time i open a page, kinda a waste of computer resources... there has to be a better way....

Keeping A Window Open
im am just starting to learn BASIC.
after writing this program and compiling it

10 print "Table of Squares"
20 print
30 print "How many values would you like?"
40 input num
50 for i=1 to num
60 print i, i*i
70 next i
80 end

it works but shuts the dos window before I have a chance to see the results. How can I make the window stay open?

Disabling A Window While Another Is Open
hey

i was wondering how do u make it so if i open a form called 'open' from a form called 'menu', until the 'open' form is closed the 'menu' form will be disabled completely (inc clicking on it, like in programs such as notepad when you open the about dialog

thanks
Comms

Get Handel Of Last Window Open
How can I get the handel of the last window that is open by windows. e.g. I open Internet explorer then I click a button on my form and msgbox show's up with the handel of the internet explorer that I just opened, becuase it was the last program I opened.

Thanx in advance.

Open IE In Minimized Window
Hi.
Can anyone tell me how to open IE with given URL in minimized window. My code looks like this, but it opens IE and sets it to focus:

Private Declare Function ShellExecute Lib _
"shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Const SHOWMINIMIZED = 1

Private Sub Command1_Click()
iret = ShellExecute(Me.hwnd, vbNullString, _
"http://www.whatever.com/", vbNullString, _
"c:", SW_SHOWMINIMIZED)
End Sub

How Can I Open A Web-Browser Window?
Hi all!

I want to open a window with the Windows-standard-webbrowser (i.e. IE, FireFox, etc). The upcoming Browser-Window should open a specified www-adress.
I want this to do from a VB 6-MainForm, which should work on, independend from the opened browserwindow.

The browser-form, which is included in VB 6, is NOT the one i want to use. Instead, the users´ standard browser should be used!!

How can i do this in VB 6??

Many Thanks for your help!!

chris

How Can I Open Pages At Same Window
i make an automatic weblink launcher
there is 4 text box which contains links
and 5th text box contains timer between launching links
but timer doesnt work correctly
it isnt launch to other links (if the value is smaller then 1 like 0,99 its working)
and the pages open in differnet wındow
i want to open pages in same window

Quote:




Private Sub Go_B_Click()
Dim pid&
'Launch first webpage
pid = Shell("C:Program FilesInternet Exploreriexplore.exe " & Text1(0).Text)
'Fire the Timer for next pages
'base interval is 1 second, we will define how many seconds
'to wait in the timer itself
lngTimer = 0
Timer1.Interval = 1000
Timer1.Enabled = True

End Sub

Private Sub Stop_B_Click()
Timer1.Enabled = False
lngTimer = 0

End Sub

Private Sub Timer1_Timer()
lngTimer = lngTimer + 1
' We launch the 2nd page after specified interval
If lngTimer > (Text5.Text) Then
Dim pid&
pid = Shell("C:Program FilesInternet Exploreriexplore.exe " & Text2.Text)
End If
'We launch the 3rd page after one more interval
If lngTimer > 2 * (Text5.Text) Then
pid = Shell("C:Program FilesInternet Exploreriexplore.exe " & Text3.Text)
End If
'We launch the 4th page after one more interval
If lngTimer > 3 * (Text5.Text) Then
pid = Shell("C:Program FilesInternet Exploreriexplore.exe " & Text4.Text)
End If
lngTimer = 0
End Sub




help me about opening pages new wındow
and timer....

Open VB Forms In Same Window
Hi,

I was wondering if anyone knows the code to open Visual basic forms in the same window. I am using the below code but it opens form2 in a new window

Private Sub cmbPaients_Click()
Form2.Show
End Sub

Copyright © 2005-08 www.BigResource.com, All rights reserved