TransparencyKey Prevents Screen Grabbing Of The Form?
Jul 9, 2009
I use the 'TransparencyKey' feature on my form to make a 'Panel' control transparent so i can see a program thats running underneath my form. If i try and do a screen grab (Capture a picture) of my form it only grabs a image of the background of my desktop and the program below and not my form.
If i use the normal Windows 'PrtScrn' key to grab a still image it manages to capture my form and underlying programs fine. This appears to be a limitation of transparencykey because as soon as you disable/remove it the screen grab works fine on the form. how to resolve this problem as removing the 'TransparencyKey' feature is not a option as i require this for my program
see the attached image for a better description of the problem
Image on 'Left' shows the transparent window viewing the desktop and program beneath. Image on the right shows the captured image and it completely missing the form and transparent window from the shot.
[URL]
View 11 Replies
ADVERTISEMENT
Mar 31, 2009
I added an splash screen to my app. Then in the project settings I selected it to be used for the splash screen. Now my app won't close when I try to exit my app. I have 'When Last Form Closes' selected for the shutdown mode. So I'm guessing the splash screen is calling Hide() instead of Close(). I can't find a way to get access to the splash screen object so I can try callling Close().
View 6 Replies
Apr 6, 2012
I can make the background color of the form transparent by using: "Me.TransparencyKey = Me.BackColor"
"Me.BackColor" is set to default "Control", which I think uses 240;240;240 as the color.But using that color as the transparent mask color leaves gaps in controls who are also using that color.By changing the Me.BackColor to a "rare" color this problem is fixed.What problem really is, is that using the "Control" color I get the ability to ALSO interact with whatever is behind my form, which any other custom color does NOT.
Question: Why is this?
Request: I would like to use a custom color as the transparent color but KEEP the ability to interact with whatever is behind the form, how can I make it do that?
View 1 Replies
Oct 20, 2011
I have set my webBrowser a URL and I have searched for examples but they didn't work and just return a blank screen.[code]And others and I know how to get a screenshot but not a webBrowser screenshot.
View 2 Replies
Sep 2, 2011
when I added a textbox to my form, my keydown events no longer work. It seems impossible to get the blinking cursor out of the textbox so as to avoid targeting it. How do I retain keydown events when a textbox is added to the form?
View 11 Replies
May 13, 2012
So I have a list of book branches in an array called _branches. I need to write a procedure that adds branch names to branchNameListBox. Then I have to write a procedure that displays the information on the branch currently selected in the list box. The information should be displayed in sealPictureBox (branch image), cityLabel,nEmpLabel, and totalSalesLabel.This is what I have but the _branches are underlined in blue and it says the it cannot be indexed because there is no default property. what does that mean and how do I fix that?
Public Class BranchInfoForm
rivate branches() As BranchInfo = getBranches()
Private Sub BranchInfoForm_Load(ByVal sender As System.Object,
[code].....
View 2 Replies
Jan 27, 2011
I have been trying to discover how to make the contents of a form expand or retract in response to moving its borders by grabbing them with the mouse, or by use of the 'Maximise' or 'Restore Down' controls.The explanation in �Help� concerning TableLayoutPanel, Panel, Anchor and Auto size doesn�t help much, especially as it I can�t get it to work.
View 7 Replies
Sep 16, 2010
My app is a tray icon which scans the Outlook Inbox periodically. It seems, from testing in my VMWare WinXP machine, that the app stops Windows from shutting down. I press StartShutdown but nothing happens. I have to exit the app first then StartShutdown will shutdown the PC.
[Code]...
View 1 Replies
Apr 21, 2012
Is there a property setting that prevents an empty row from being displayed in a DGV? I have a DGV that is populated manually, the dataset that contains the data has 2 rows in it. The DGV contains those 2 rows of data plus an empty one. The return value of the DataAdapter Fill is also 2.
View 2 Replies
Nov 27, 2011
I want to generate a (report) file for users to download, then display a message to users to show the process completed successfully.
Dim myFile As FileInfo = New FileInfo(<filepath>)
'My function to generate a report (this can take a few minutes)
GenerateReport(myFile.FullName)
[code].....
View 9 Replies
Apr 14, 2011
I want to generate a (report) file for users to download, then display a message to users to show the process completed successfully.
Dim myFile As FileInfo = New FileInfo(<filepath>)
'My function to generate a report (this can take a few minutes)
GenerateReport(myFile.FullName)
[code]....
However, when I use create a "save as" box, it seems to stop the message appearing at all.
View 1 Replies
May 4, 2012
Having trouble with properties in a Class, demonstrated by the code below.If create a class (person) that has another class (address) as a property and set the elements of the address, the set method on the first class never gets called.It also allows the property to be updated although the set method prevents this.
Module Module1
Class PostalAddress
Property Street1 As String[code]....
View 7 Replies
Nov 18, 2009
I have a VB.NET form that takes up the whole screen. On Windows XP, the taskbar is not displayed when moving the mouse to the bottom of the screen. I have auto-hide set, and the taskbar is not locked. I tried the same thing on a Vista computer and it works fine. What am I missing on Windows XP? I need the auto-hide feature to work for my app like it does for other Windows apps.
View 1 Replies
Jun 11, 2009
Context=VS.NET 2005, windows forms
I have created a custom combo that automatically drops when the combo receives focus. When the user uses the mouse to click on another control or the Windows Form the combo list is undropped but the click on the other control is never fired. Is there a way to avoid what appears to the user as a need to double click?
View 3 Replies
Nov 16, 2009
I have written a small application perform CRUD operations on a Designations table. User search a Designation by Index and can make changes and the updates. I cannot see anything incorrect in my SQL and SQL works perfectly fine. Since i've created my Dataset using the desiner it automaticaly added the Optimistic concurrecy handling to the Dataset, therefore if an update fails it shold throw the DB conccurency exception.That's where the problem is, it doesnt throw the exception, application can retreive can update also fails to update on conccurency violation but when it happense it doesnt show the exception..... since code is long and have BLL and Presentations layers i've added a link you should be able downlaod the code + DB...
View 1 Replies
Feb 27, 2009
Creating a new database in a Windows Forms project (done according to one of the MSDN tutorials) results immediately in a "The event log is full" error.The database exists as an item in the project, but cannot be opened or configured (i.e.,it doesn't exist really). newly installed MS SQL Server Compact Edition,This is a new computer (though fully updated), and to my knowledge no other versions of SQL server are installed.I note that someone else has contributed a message about the exact same problem (according to a preview in the MSDN search results page), although for unknown reasons clicking on the item does not take me to that message.
View 1 Replies
Jun 29, 2011
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
View 11 Replies
Jun 16, 2011
It does work on some machine's but wold not start on other computers. from the code line's I see the problem is related to devex components.
View 2 Replies
May 26, 2012
I tried it every way I can think off, but nothing can stop it .
View 7 Replies
Aug 2, 2010
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.PictureBox1.Load(bm2)
[CODE]...
So I'm trying to take a screen capture of the windows form and display only a certain specified area of that screen capture in a picturebox on a different form. Kind of like this. First, take the screen capture of the form: Then get a specified area of that form through x,y coordinates or something and display it on a picturebox on a separate form.
View 1 Replies
Nov 17, 2011
I have read that VB .NET in earlier versions limited the FORM size to that of the development machine screen resolution.I am hoping that there is a way in the current VB 2010 to get around that.However in my attempts to make the form larger, it always resets itself to the screen height on my develoment machine.Is there a way to get around this and have the person be able to use a scroll bar to move down?The data I wish to show actually has two screens worth of information but the stuff in the scroll down section would be used on a limitied basis so scrolling will be useful rather than having to recreat the screen to show less data at one time.
View 2 Replies
May 30, 2012
FormA calls DialogB where user cancels DialogB which exits via ForceTermination(), see insert.Caller FormA check for DialogResult not = OK, which it isn't, and I can see this in debug as Abort(3).However, the code continues merrily along its way until I get a 'null reference' error which I'm trying to avoid via Force Termination().This is caused by the user cancelling DialogB, a selection process to get a database (SQL) instance.[code]
View 13 Replies
May 1, 2009
form1 has datagridview, when I click "add new", form2 appears(details view, allowing me to add new records into datagridview on form1). when I click "add new" again, form2 appears again, if I click x times, form2 will appear x times. How do I stop the add new button and all the functions on form1 from working until form2 is closed?
View 6 Replies
Aug 24, 2009
I've run into a little problem recently. My computer has two screens sitting side-by-side.
Here are the dimensions for my first screen: {X = 0 Y = 0 Width = 1280 Height = 1024}
Here are the dimensions for my second screen: {X = 1280 Y = 0 Width = 1280 Height = 1024}
My form saves its position on exit into the Registry. Whenever I start my application, I set its opacity to 0 in the constructor and it goes to my first screen. While its opacity is at 0, I then move it to its previous location (1280, 0) like this:
thisForm.Left = X
thisForm.Top = Y
Where X = 1028 and Y = 0.
I place a breakpoint directly in front of those assignments and when I hover over thisForm.Left, it = -4. Whenever I hover over thisForm.Top, it = -4.
Sure enough, when my form comes up, it's in my first screen.
For those interested, I've now worked around it, by doing some additional testing. What caused it: My Window State was Maximized. Solution: If before I set these positions, I change my Window State to Normal, the form moves. I can then maximize it while it's on the second screen and it remains there. why I can't move my form while it's maximized? It's more for curiosity than to find a solution, since the work-around is actually working quite well.
View 4 Replies
Aug 23, 2008
I am really having trouble getting all the images from any website and listing them in a listbox.This is the code I tried:
1
ForEach UrlImage HtmlElement WebBrowser1.Document.Images
[code].....
View 6 Replies
Jun 9, 2010
At the moment I'm developing an application (Similar to Swiftkit.net's) that will aid users when playing Runescape.My next major project on the program is to Make a highscores look-up. (If you dont know about the Runescape highscores, HERE)Now, i want to grab data from that webpage, and add it to a form on my application. The form in particular, will display a specified persons levels on that form under labels.First of all, i have NO IDEA on grabbing stuff from the web in VB. Second, i have searched far and wide for something similar, but everyone that has something similar is not very willing to part with their hard earned code.
View 10 Replies
Jun 8, 2011
I'm trying to make a program where when you click a button it will retrieve each value of certain things on a webpage. I.E; [URL] On that webpage it shows Clan,Kills,Etc. I want to make it to where a Label will Say "Kills:" And another label next to it will have the value of kills retrieved from that webpage, and each time the button is clicked the stats will update if they are changed..I think it's simple to do, but I don't know how..
View 2 Replies
Jan 7, 2009
I would like to know how to enable my programs to rip image files off the web to display them in a picture box. all i know is how to use the web browser object to load the site with the image file on it
[URL]
i would like to know how to now transfer that image from the web browser to a picture box or just save it locally
View 5 Replies
Oct 1, 2011
I need to grab an image off a webpage (captcha)
I then need it stored in a PictureBox.
View 3 Replies
Aug 2, 2011
Ok so imagine there is a forumand when my program goes to this in web browser.
View 1 Replies