Screen Blanks After 1 Min Of Processing (of Excel File) / Refresh Or Freeze Screen To Avoid Blank Screen?

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?


.net - Taking Photo Of Screen - Take A Picture Of The Entire Screen, Not Just The Focused Window?

Jul 6, 2011

Currently I have the following VB.NET code to make a screenshot of my desktop, but it only takes a picture of the active screen:

Public Function SaveScreen(ByVal theFile As String) As Boolean

The following code is how I execute the above function, if it makes any difference, which I don't think it does:


Now, I need to be able to take a picture of the entire screen, not just the focused window.

View 4 Replies View Related

Putting VB Content In The Center Of A Full Screen With Variant Screen Size?

Feb 2, 2012

Now I'm creating at app in VB (Microsoft's, Visual Basic 2010) which will be in full screen but I want to know if I can put all my content in the centre of the screen. At the moment it's at the far top, left of the screen. When the screen size varies I want it will stay in the middle for all shapes and sizes. Like :

<div style="margin: 0 auto; width: 500px;"></div>

But this is for web pages using HTML and CSS.

View 1 Replies View Related

Get Coordinates On Screen By Holding Down Mouse And Placing It Over Different Parts Of The Screen

Feb 29, 2012

I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:


View 2 Replies View Related

Screen Flickering When Updating The Entire Screen Or Moving Around Controls

Sep 6, 2009

Sometimes when updating the entire screen or moving around controls etc, there is some fairly bad screen flickering.

View 2 Replies View Related

Screen Size - Screen On My Netbook Is Only 1024x600 And Half My GUI Is Missing

Feb 8, 2011

I have created a GUI and have set my 'Form1' window to match that of my PC monitor ( 1280x1024 ). However when i move the project to work on my netbook, the screen on my netbook is only 1024x600 and half my GUI is missing. Is there any way i can adjust my settings so that my 'Form1' GUI will auto adjust and display in full on both screen when i move the project back and forth?

View 2 Replies View Related

Splash Screen That Displays For 3 Seconds Then Shows A Login Screen

Dec 20, 2009

I'm coding a splash screen in VB.Net that displays for 3 seconds then shows a login screen. But the splash shows up even when login shows and I have told the splash to hide. Here is my code:


View 3 Replies View Related

VS 2008 Draw Directly On The Screen (not On A Specific Window) Just On The Screen?

Jul 1, 2009

I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.

View 3 Replies View Related

[2005] Multi-Screen Application - Control Each Screen Separately?

Jun 23, 2009

im about to develop a small appliacation for a bet system, which needs 6 screens, each screen will be a touch screen for each client... the application will be running in one computer only just with 6 screens. my question is does anyone knows how to control each screen separately?. somethign that would allow me to output each forms in different screens would work fine.

View 2 Replies View Related

Create An Overlay Screen On A Full Screen Application?

Feb 18, 2010

I am making a program that will put a black mask over an application (like a full screened game). This black mask will fade in and out, depending on certain criteria. Is there a way I can do that with VB? It's to help me dim my monitor without having to push anything.

View 3 Replies View Related

Make A Screen Recorder (not Screen Capture) Program

Aug 20, 2010

I wanted to make a screen recorder (not screen capture) program, but I am not entirely sure how to get it started. I have seen many videos and things on how to make one, but all of these just take multiple pictures and then don't compile them into a movie file, and I don't want to take many pictures (unless that is the only way possible.) I am using Visual Basic 2010 Express and I have looked at the Windows Media Encoder, but I can't seem to figure out how to use/implement it (yes, I have downloaded and installed it.) Maybe I can use some kind of ActiveX control?

View 3 Replies View Related

Multiple Screen Management - Appear All Screens (if Any) Other Than The Primary Screen

Sep 18, 2011

In my project is a form called "Secondary". It is suppose to appear on any and all screens (if any) other than the primary screen. The following code seems pretty logical to me, but Secondary is not appearing on any screen.


View 6 Replies View Related

Screen Saver On Appears On Taskbar And Will Not Fill Whole Screen

Sep 30, 2009

How can I get my screensaver to fill the whole screen. it has in the past but, just quit working several months ago. I have Windows Vista

View 1 Replies View Related

VS 2008 Screen.GetWorkingArea And PointToScreen - Dual Screen ?

Mar 28, 2009

I have a button btnRegEx that when pressed shows a ContextMenuStrip, similar to the '>' button in the Find/Replace dialog in Visual Studio when you are using Regular Expressions. I have a ContextMenuStrip cms which I show using its Show(x,y) method.

At first I was simply setting x and y (the location of the ContextMenuStrip) to some point next to the button, but I noticed that when the button is close to the edge of the screen it goes off screen. I wanted to prevent that so I built some logic into the x-y calculation. When the ContextMenuStrip width is larger than the 'remaining space left' I simply show it more to the left. Same for its Height of course. I am using the Screen.GetWorkingArea(point) method to determine the 'remaining space left'. As I understand it, it returns the working area closest to the point you specify (to which I pass the button's location).

As long as I stay on my first monitor, it is all working perfectly fine. The problem occurs when I move the form to my second monitor. The contextmenustrip is still showing on the first monitor for some reason...

Here is the code I am using: Private Sub btnRegEx_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRegEx.Click
Dim p As Point = PointToScreen(New Point(btnRegEx.Left, btnRegEx.Top))
  Dim x, y As Integer


I have noticed that when I click the button when the form is on the second monitor, the buttons location (p) is calculated with the first monitor's top-left corner as (0,0), even though it is on the second monitor. This way, the GetWorkingArea function returns something like 1280, while the buttons x-location is something like 1700... So, how do I get the buttons coordinate relative to the actual screen it is on, rather than the entire dual monitor screens as a whole?

View 3 Replies View Related

No Screen Updates While Processing In Visual Basic?

Jul 25, 2009

I am using Visual Basic 2008 to create some databases. It reads data from textfiles and puts them in SQL databases. After the user presses the Process button I would like to give the user to get some feedback of the process simply by for example label1.text += "Processing File 2".But during the process no Screen Updates are made...only after all databases are processed and is waiting for new user response it updates my label1.text

View 4 Replies View Related

Avoid Fuzzy Printing After A Screen Capture?

Jun 21, 2011

I'm using the code below to capture and print a windows form. The problem is that it prints out very fuzzy. Is there any way to have it print more clearly?

Imports System.Drawing.Printing
Public bmp1 As Bitmap
Private WithEvents printDocument1 As New PrintDocument


View 1 Replies View Related

2005 Splash Screen On Primary Screen?

Oct 21, 2009

I am in a dual monitor environment. I have developed an application using VB.NET 2005.When I start my application, the splash screen always displays on the monitor where the mouse cursor is at, even if it is not the same monitor that the login and primary form open on.

View 3 Replies View Related

Screen Sizing - Max=stuck - Won't Get Off The Max Screen Size

Feb 11, 2011 / VisualStudio8 I have an application I've written that's been very stable. I had it set to exactly 1024x768 resolution, and to windowsstate=maximize (I think that's what it's always been).

I recently started coding to give the user the option to use the 1024x768 or to have the program detect the max size of the screen and use it.

That part works great... I'm using:

Dim MonitorWidth = Screen.PrimaryScreen.Bounds.Width
Dim MonitorHeight = Screen.PrimaryScreen.Bounds.Height
Me.Height = MonitorHeight
Me.Width = MonitorWidth

What I'm baffled by is that the application now won't get off the max screen size. It's using the max of the screen, even when I do not call the screen resizing code above. I'm trying to give the user the option of the application only taking up 1024x768 (and placed up to the top left) or maximizing the application using the full extents of the screen.

View 4 Replies View Related

VS 2008 Screen Flipping - Invert The Screen

Apr 27, 2009

Is there any way to invert the screen. For example, making upside down or having mirror effect?

View 1 Replies View Related

IDE :: 64 Bit Browser - Completely Blank Screen ?

Jan 17, 2011

Using VS2008 Express and I want to use Silverlight within a webbrowser on a 64 bit machine. I have found various posts here about targetting x86 and have followed the instructions in this thread: [URL]

Unfortunately, running the project then brings up a completely blank screen so this is causing some other problem. Any further ideas on this old problem?

I downloaded VS2010 Express but could not see any equivalent settings in that.The equivalent procedure in my commercial version of VS2005 works ok but that has significant debug issues on this machine and is not really useable.

View 1 Replies View Related

Limiting FPS To Screen Refresh?

Apr 19, 2009

I have made a game (real time strategy) and it is running rather fast on my 3 GHz quad 8800 GTX, namely, it runs around 200 FPS usually when there are like 80 units and tanks in a forest fighting.

I would like to limit the FPS. So far my limitation code is pretty buggy... it does limit, but wrongly:

Private Sub LoopGame()
Do While GameIsNotPaused
FPS += 1


Also, after I solve this weird issue, should I set the value to monitor's refresh value which is usually 60 Hz on LCDs? Or should I set it to 30 or what ?

View 4 Replies View Related

Use Of Progress Bar During Screen Refresh?

Jun 16, 2011

I have a Windows Form application that allows the user to delete several rows of textbox data at a time (i.e., using checkboxes).  It takes a few seconds for this to occur and I was thinking about using a progress bar w/in the "delete rows" subroutine.  It's also kind of "choppy" while the windows form refreshes.  I'm new to this aspect of VB (2010) and how to make the screen refresh appear more professional.  Apart from possibly using the progress bar, maybe there is also a way to dim the window until the refresh finishes?

View 5 Replies View Related

Avoid Screen Flickering When Painting Graphics On A Windows Form?

Feb 19, 2010

I'm writing a simple paint program in VB 2008 that allows the user to create rectangles using MouseDown event to anchor one corner, MouseMove to stretch (or grow) the rectangle, then MouseUp event to complete the rectangle.The last statement in the MouseDown event is Me.Invalidate() to trigger the form's paint event where all the rectangles are drawn (refreshed).

View 1 Replies View Related

GDI+: Update Or Refresh Only Certain Parts Of The Screen ?

Jan 30, 2010

I'm making a game using and GDI+. I've been encountering frame rate problems and one solution that was suggested to me was to only refresh certain parts of the screen. I was also told one way to make this happen was to use rectangle or region structures and since I already have these as hitboxes it seems like a perfect way to efficiently reduce the drop in frame rate.

The only problem is that I have no idea how this would work and so far my google searches have been fruitless. Yet again I turn to this very helpful forum, can anyone help me? By the way I've set doublebuffered to true on my form to get rid of the annoying flicker.

Questions. How do I update or refresh only certain parts of the screen?

I'm using a timer set to tick every millisecond to run everything and it refreshes the screen every 2 milliseconds simply using me.invalidate; each time it ticks things move a little bit and stuff happens that triggers other events etc. The problem is that when the framerate supposedly "drops" things start to change. "Bullets" and projectiles appear to travel many times faster and much less smoothly than they do when there a less objects moving on the screen, it's almost as if the timer runs faster... What's the reason for this? Is there a way I can change this? I remember hearing about a "stopwatch" or something that someone used in their game that was more consistent or something.

Also I'm aware that with GDI+ isn't exactly the best language to make a video game in but it's for a school project and I have no choice in the matter.

View 3 Replies View Related

Screen Refresh Speed Is Not Fast Enough?

Jul 3, 2008

I am looking for help on how to speed up VB.NET (or C#) screen refresh speed. Specifically I need to update many controls and then refresh them on the screen all at once.I am in charge of writing a .NET interface for an older legacy program. Because this needs to run on slow legacy machines I did a performance test and discovered the screen refresh speeds of VB6 is faster then .NET. In VB6 there is barely a flicker as controls change across the entire form all at once. In VB.NET you can see controls change moving across the form like a wave. I must be doing something wrong...

To do a head to head comparison I put together equivalent VB6 and VB.NET programs, each with a maximized form and 48 labels. Clicking on any label changes the background color of all the labels on the form. To really see the problem it is best to try the following code on a slower machine (1GHz etc.)

In VB6 create a project MyProject and add a form MyForm with the following properties

Caption = "Screen Refresh test VB6"
BackColor = Black
WindowState = Maximized

On that form add a label MyLabel with the following properties:

Index = 0
Caption = "Hello World"
BackColor = Cyan

In the form add the following code:


View 8 Replies View Related

[2005] Refresh The Whole Screen/desktop?

Feb 17, 2009

I need to refresh the whole screen/desktop.I am painting a rectangle and need to have it clean and not leaving marks when it is dragged around.There were a few claimed APIs that could do it. And then some others which were more specific to other languages.

View 5 Replies View Related

Design A Screen For Different Screen Resolutions - ASP.NET?

May 14, 2010

I have a webpage developed using when i run the webpage in different screen resolution i see some blankspace left in the right side corner of the screen(webpage).

want to know the solution to make the screen look fit in all screen resolutions..

View 7 Replies View Related

Print Screen Certain Dimensions Of The Screen?

May 1, 2011

if there was a way to print screen certain dimensions of the screen. Like if I were to assign a short cut(F2) in the menustrip and it was to print screen those dimensions.

View 2 Replies View Related

Application To Refresh Screen And Change Resolution?

Nov 15, 2009

i wanted to develop a application to Refresh the screen.[Simple F5 would work !!] but is it possible.I want a button to start at X:0 Y:0 then on loading the form want the button to move diagonally on the form [ on reaching end the process should repeat ]I want the application that displays current resolution.The supported resolution by monitor and then give user the choice of selecting one.

View 2 Replies View Related

Invalidating Splash Screen - Picture Box Doesn't Refresh With Image

Jun 21, 2010

I have a splash screen and want to test the loading bar. The % of loading are in 11 stages (0-100% in 10% intervals) and I have 11 different images. What i'm trying to do is set my picturebox.image = to the resource image and then wait 1 second then set picturebox.image to the next resource image. What i was doing is on the SplashScreen.Show method [Code]. What happens is that the picture box doesn't refresh with the image until the last image has been loaded from the procedure and the end of making the thread sleep completes. (this worked fine in VS2005). How can I make it load up the image, redraw the picturebox and then make the thread sleep for 1 second in VS2008.

View 4 Replies View Related

IDE :: Make Application Stick To Screen Edge When Dragged Near Screen Edge?

Dec 7, 2011

i am developing one application for which i want it to stick to the edge of the screen when dragged near screen edge.

View 2 Replies View Related

Display "Processing, Please Wait!..." Screen?

Dec 31, 2010

How do I display a "processing, please wait" screen as a modal form in .NET while allowing the program to continue processing what it is doing?I want to display the screen with a progress bar and so user know the status of the process yet have the option to cancel the process.

View 2 Replies View Related

Error When Opening On-Screen Keyboard In Windows 7 - "Could Not Start On-Screen Keyboard"?

Jan 4, 2010

oke On-Screen keyboard through my VB code. I am using windows 7 and below code to open the keyboard. Everytime when i run this code i am getting error "Could not start On-Screen keyboard".e to fix this error?

Dim proces As New Process
proces.StartInfo.UseShellExecute = False
proces.StartInfo.RedirectStandardOutput = True


View 1 Replies View Related

Loading Excel Document And Show A Login Screen Before Anything?

Nov 11, 2010

i am trying to create a password system for my excel document which allows different users to change different things but i dont know how to make it so the login screen comes up first and dosnt allow you to do anything else.

View 1 Replies View Related

Office Automation :: Find Excel Cell Screen Coordinates With .net (2008)?

Feb 12, 2010

is there a way of getting the screen coordinates of individual cells on an open Excel sheet, what I want to ultimately do is pass in a cell range say, "A5" into a function and watch the mouse cursor move slowly to that cell. I know this might seem a weird request. I already have a mouse move function but that accepts the x/y coords in pixel terms where excel using .TOP and .LEFT give an entirely different format?

View 1 Replies View Related

Loading Screen With Swf File?

Aug 7, 2009

how to make thise: Form3 to have 1 .swf file that will apear when the program starts after the .swf fineshes to show Form1 ?

View 1 Replies View Related

Output EVERYTHING From A Text File To Screen

Apr 15, 2012

I currently have a system that saves student data to a text file. I can search for individual students and have their information output to screen. How can I make my system output every student in the text file to screen?

View 3 Replies View Related

Reading From An INI File In Splash Screen?

Jan 14, 2011

I'm having some issues reading from an INI file in my Splash screen.

- I have a MainForm and a SplashScreen form
- I have an array of a structure setup in my Mainform as


as can be seen in the screenshot below I'm trying to add to this array in my splash screen but get the error below as-well I have tried running the same code in my Mainform under a function LoadSettings() but when doing this it instantly loads my Splash Screen and opens my MainForm when this is only suppose to open after 5sec

View 6 Replies View Related

Using Flash File To Open New Screen

Jun 12, 2011

I'm using flash file to open to next screen but I have no idea how to do that using the code. How do I make it to link or show the next form once the button clicked.

Private Sub PlayFlash()
FlashObj.Movie = MultimediaPath & "Ezy-Pay.swf"
[Code] .....

View 3 Replies View Related

How To Turn Screen Shots Into A Movie File

Jan 5, 2010

I made a program that makes screen shots and I want to turn the final project into a movie file.

View 2 Replies View Related

Copyrights 2005-15, All rights reserved