How would i go about making a zoom magnifier window, similar to the one in Snag it?The main form would have a picturebox with a image loaded, a second smaller form would act a as magnifying window, magnifying the image from form1 and refreshing to reflect the new location of the cursor when it is moved across form 1.
Would i need to take a screen shot of a area around the cursor then load it into the second form and refresh the screen shot every time the cursor moves or is there a procedure already to do this?
I have drawn a diagram of lines on a panel using the g.DrawLine command. I want to be able to zoom in to the diagram and define the zoom area by two cursor picks. I get the coordinates of the picks and draw a rectangle using g.DrawRectangle. This works fine but as I move the cursor around, the rectangle becomes solid black (with all the DrawRectangle commands). In VB6 I used a rectangular shape on top of my diagram but you cannot do this in VB2008. I need something like drawing in XOR mode. Somehow as I move the cursor I need to undraw the old rectangle and draw the new rectangle.
I want to make window application in which I want zoom in and zoom out functionality.I mean I want to change size of video running inside window media player.I have tried but did not suceed.
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xWindowsMediaPlayer1.URL = "C:\Documents and Settings\Node2\Desktop\video\bear.wmv"
How can I zoom in/zoom out screen display? This is to be used for people having eyesight problem. I want to control the screen resolution by percent and not to any fixed size provided in control panel/display settings.I have to control the output of the main display and zoom in/zoom out by percent, according to user's eyesight matching
I created a Zoom in and Zoom out function for my application and it works great. I would just like your opion on my code, because I am wondering if it can be done a bit neater and more effective.
ts = ToolStrip cms = ContextMenuStrip vb.net If Me.Font.Size < 30 Then
[Code]...
Me.form.font changes the font of all the controls except toolstrips, contextmenu's and menustrips.
Any idea's if this can be done any neater or how you can make menustrip etc.. use the font of the form?
Edit:This is the Zoom In version btw. The Zoom out is identical except it uses - instead of + when declaring the newFontSize.
I have the following function that should make the window always on top of other applications.
Private Declare Function SetWindowPos Lib "user32" _ (ByVal handle As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _ ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
[Code]....
The problem is that it reduces the window size so that you can only see the title bar and min/max/close buttons. Also, even that does not stay on top of other windows.
I have used this function before on a windows 7 machine (instead of xp which this one is on) and it worked fine.
i have map of a State, i need to let the user to Zoom in amd Zoom out and show some buttons on the Picture if we zoomin or zoomout the buttons also will be moved according to the location like google map how to achive this?
I am using memorystream to get and store images into sqlserver 2005 table image field. This process is working and I am able to display image in picture box. I need to be able to store PDF files into the same field and be able to display in a picture box.
Trying to debug a Windows application, in the Immediate Window, if I type the following:?UBound( I see a tooltip showing the syntax of UBound, but when I complete the statement as ?UBound(CBa) where CBa is the name of an array, I get the response: Name 'UBound' is not declared. Strangely enough, the UBound function is referenced in the code prior to the breakpoint, and works correctly. Why can't I use it in the Immediate Window? I have the same problem with the Len function, it says it's not declared.
I have a Window Form app that I would like to take a picture of the complete main window. After that, I want to be able to somehow hide the actual window, and replace it with this snapshot, at which point I want to be able to move the picture around the screen, like rotating, etc.
I'm making some Aero-style transparent forms (signature), and they work just fine. However, to get a screenshot of the area behind the form using Graphics. CopyFromScreen(), the form has to be less than 100% Opacity, so CopyFromScreen doesn't include the window in the picture. This also means that when you have more than one open, they see through each other.
we use a terminal emulator called facetwin to run our main unix based applicationswe want to attach a small document scanner and magnetic strip reader to the system this runs oncurrently we have a magnetic reader that emulates a keyboard so it sends keystrokes back to the unix app. however the new scanner does not.i can get around this by having the unix app send a special command that facetwin understands so it tells the local windows machine to run my vb application that controls the small document scannermy vb app then sendkey's back the relevant info.this is all great and works fine, yet i have a problemthere are 3copies of facetwin running at anyone time all are logged in as the same user but maybe processing diferent things.
i am trying to write a code who find a window and draw line or string on it but nothing found yet,the process can aslo be a game so did it required to use 'Direct3dx' i try something like this but not woking...
So I have this code to make a "windows taskbar". When you click on an item, it's supposed to bring that window to the front. The only problem is that's not happening. When I use Debug.WriteLine, it has the right window title, except it doesn't come to the front. What's wrong? There is no EntryPointNotFoundException or anything, it just doesn't bring the window to the front.
If TextBox1.Text has atleast one number 0 or 1 or 2 or 0 (it may have text too, with numbers) then End If Also what command is it to get window position coordinates and what winpos[x] and winpos[y] are. All I found was setwindowpos
I seem to have some finger trouble creating a new application, here is what I am trying to do: I am trying to create a new solution and under the solution an exe (console project and a set up / deployment project. I have done this in the past and cannot see to do that any more.
Steps: 1. Create a new solution, the solution show in the solution explorer (with 0 projects) 2. Using "add" I create a console application (under the solution) and it shows a module etc. So far fine. 3. At this point the solution explorer windows only shows the console project and the solution itself (that used to show on the top) is gone. Now I am not able to add another project to my solution. I close my screen and then try to open the solution again. It comes up with the console project.
I'm making a photo editor and the size of the image depends on the size of the window, like the Zoom mode in the BackgroundImageLayout property of a form. It works sometimes: when resized only a small amount, it does nothing, but when the image is resized more than that, it jumps to the right position.
vb.net Private Function GetImageRect() As Rectangle Dim r As New Rectangle() If Me.ClientSize.Width > Me.ClientSize.Height Then
I want to launch a browser session from a Windows App to load a specified file using system.diagnostics.process.start("http://www.abc.com/doc1.doc") but I'd also like to specify that there shouldn't be a toolbar etc. on the browser window. Is this possible?