I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information.
Here's my code:
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
Dim settings As New System.Drawing.Printing.PrinterSettings
sPrintForm.PrinterSettings = settings
settings.DefaultPageSettings.Landscape = True
How to print the whole of the page, including the areas that can't be seen? I've already tried using:
And that didn't work.
i am working on Scrollable form, when i am trying to print this form with PrintForm object its printing only the showing part not all the form this the code which am using.Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable) End Sub
I want to print the entire contents of a scrollable panel in VB 2008 express. I am an intermediate learner but still can't fathom many of the guidelines given. There is nothing to bridge the gulf between "Hello World" level and more sophisticated (but not cosmic) tasks.
I need to increase the size of my form and allow it to be scrollable vertically but I cant set my size any larger then 780 I have auto scroll set to true and from what I thought I understood I should be able to make the form longer and it would be scrollable Can someone tell me what I am doing wrong ?
im trying to make the form Dockable in the desktop on the righ side. I mean i can do this i can stick the form on the side but all other application are not seen in the full window coz my appz is still on the top and others appz under it.Size of the form is 200x1024, it is like administration stripe.So i would like to make other Winows in the system ended on the edge of my application. Is it even possible in VB?There is other way i guess to use some of the scroll(collapsible,expader) windows to the side of the desktop would do it as well but i dont know how to ?
I am an experienced programmer but mainly in 4GLs and assembly. Relatively new to VB programming, especially GUI applications. On a form I need to create an area that will be used to display *extremely* large TIFF images. typical image size would be 2000 pixels by 100,000 pixels. Typically I will NOT want to display the entire image at once, so the area will need to have scroll bars and/or other methods to scroll/pan around the image.
I have read about and tinkered with the bitmap and picturebox objects, including some threads about several different ways to implement scrollbars. However, I see that the picturebox size is limited to 32K pixels in both dimensions. I suppose that I might be able to copy various portions of the bitmap to the picturebox depending on scroll position, but that seems potentially quite slow and cumbersome. Can an expert developer who is experienced with these types of issues regarding the following:
1. Can bitmap objects be used effectively with TIFF images of the size I am working with?
2. an approach that should produce reasonable scrolling performance for these extremely large images without excessive coding effort?
3. For an image that exceeds the picturebox size when displayed at 1:1 scale, is the picturebox capable of displaying a reduced size version of such an image without lots of code, and if so, how?
4. Many (most?) graphics display objects count on all of their display data being stored in memory rather than on disk. Would that be true of a TIFF image loaded into a bitmap object and displayed via a picturebox? If so, the amount of RAM required in order to buffer the entire image in memory could be a potential problem for images of this size. Is there an advisable way to have the picturebox or other display object only load portions of the image into memory on an as needed basis, and purge them once they are no longer required? Are there any built in objects/methods/properties or is there any sample code to show how to do this?
i have created a windows form that has some labels, lines , buttons and i have enabled autoscroll property to true. i am having trouble with relocating and resizing of the controls with resizing of form and change in screen resolution.i have used a code liike dim tmpctrl as control
for each tmpctrl in me.controls tmpctrl.setbounds((tmpctrls.location.x/X)*me.width, (tmpctrls.location.y/Y)*me.height, (tmpctrls.size.width/X)*me.width,(tmpctrls.size.height/Y*me.height)) next
now as my form is a scrollable form.and the total window portion with respect to which i want to resize n relocate. m having trouble in choosing X , Y in the above code.
trying to print a Form that I created using a VB.Net console application. My console application creates an instance of a Windows Form and fills it with data. I then created an instance of the Print Form class from the Microsoft Power Pack and am trying to get the form I filled with data to print but no matter what I've tried it just prints the command console window.
Dim firstPage As New FrontPage 'Windows Form Dim pf As New PrintForm 'Print Form Power Pack firstPage.Visible = True
I have been able to do the exercise's in the first 2 chapters and half the exercise's in the third chapter of the text book (programming in visual basic 2008, Julia Case Bradley & Anita C. Millspaugh). but this one is making my head want to explode. please point me in the right direction with this.
Heres the problem. The company has instituted a bonus program to give its employees an incentive to sell more. For every dollar the store makes in a four-week period, the employees receive 2 percent of sales. The amount of bonus each employee receives is based upon the percentage of hours he or she worked during the bonus period (a total of 160 hours). The Calculate button will determine the bonus earned by this employee, and the Clear button will clear only the name, hours-worked, and bonus amount fields. A Print button allows the user to print the form. Do not allow missing or bad input data to cancel the program; instead display a message to the user.
Here's my code so far. its giving me the wrong results. i have tried many different ways,(hence the commented code) but I just dont know where im going wrong.
I have made quite a nice and tidy little game. Its based around space invaders and works quite well. however because i have finished my college project almost 2 weeks ahead of the assignments release date, my tutor has asked me to tweak my project and make it better.So far i have added a full main menu to the game and a full splash screen. I would like to add in a section for recorded high scores but have no idea how to attempt this at all.
I have a windows form with nothing more than 4 picture boxes on there and a button. How (if even possible) can I show this page in full screen mode but at the same time allow each control on the form to format and resize in proportion.The best analogy I can give to describe what I want is when thinking about PowerPoint. When you create a slide and then press the F5 button to go into slideshow mode, no matter what size monitor or resolution you use, it always fills up the screen appropriately.
I have a form with full of objects & fix in 1020 & 800 screen solution, but if I set screen solution to 800 x 640 (to see more clear other applications) then my form show mising the right & bottom parts
1. Can VB show with auto-adjustment screen (auto show the form smaller to be fit)?
2. My form somehow can be set with Horizontal & Vertical slide (or some thing similiar) so the user can see the rest?
I want to show my app form over the full screen game windows without minimizing the game window (Like a pop-up window). I have tried a few APIs (BringWindowToTop, SetWindowPosition and SetForegroundWindow). But they didn't work for me.
I had a master form which has a MDI container.When I was load the master form, I will also display another form inside the MDI container.But I was fail to maximize the child form to fix the MDI container. The image below is my problem Untitled2.jpg. I need to expand the form above to touch the MDI container border. (Full size in the MDi container)But I was fail even I was set the child form window state to Maximized