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




How To Refresh Screen Or....


I need to remove trace-line that stayed after form moved (scrolling using do until and loop)...I think screen refresh should do it....




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Refresh The Screen?
Ive got a program that makes a neat little flame follow my mouse around the desktop, but i dont know how to refresh the screen to get ride of the last flame, so instead of 1 flame following my mouse, i have 100 flames all over the screen until i right click->refresh. is there a way to refresh the screen each frame?

Refresh Screen
I have a form that shows information about a Service Order. The form has an SSTab control. Each tab has supplemental info about the Order. Some tabs have MSFLexGrids. When I add an item to a grid, if I have another app running (like Word), the other app appears and moves the VB app to the back.

Everything works okay (the data is added, the grid is updated), it is just very annoying to have the app disappear and another app show up. Of course, if it's the only app running, it retains focus and everything looks fine. Does anyone have any experience with this? Thanks!

Screen Refresh
My MDI app sits in a sub for 5 minutes or so tranferring data over the serial port. I have a progress bar the shows that its running.

My problem is: I switch to another application in windows on the task bar, and then when I switch back to my app the screen doesn't update until the sub is done.

Is there some sort of event I can look for and some kind of refresh?

Screen Refresh
Hi to all, I have this question.


How I can to forces the screen to refresh.

I have a program that draw an image into the screen (hWnd = 0) and works fine, but when I try to resotre the screen I can't do it.

I currently used UpdateWindow, MoveWindow, SaveDC, RestoreDC, SendMessage, and also read about accelerators, but I can't do it.

Thanks !!!

Refresh Screen
Anyone know how i can force windows to refresh the screen? I have a timetable display program but whenever a window gets moved or changed while the timetable is displayed the changes to the screen are painted over when the timetable disapears and i want to be able to make windows redraw everything. Also, how would i detect if the mouse button is currently down. Im not using a form cos i dont want any mouse or keyboard input but dont want my routine to trigger if the mouse is down.

Refresh A Screen From Another Pc?
I have an access database that contains tasks/jobs.

On one pc in an office (office1), my vb app allows a guy to create tasks. These go to the database that is on another pc in another office.

In office2, the tasks are displayed (by reading from the database).


How can I refresh the screen, to display new tasks?
i.e. If the guy in office 1 creates a task, how can this be displayed on the pc in office2, immediatley after the task has been entered into the database?

Thanks

How Do I Refresh The Screen
i need to write some code that will do the same as clicking on the desktop and pressing F5

refresh the screen.

how can i do that ?

How To Refresh The Screen
I having the system which run in LAN envinoment.
The problem i face inow s when 1 of the PC update the database, i want the other PC automatic refresh the screen to get the latest information.

that prgram are in done in VB 6, os any idea from ur guys how to solve this?

thanks in advance

Ivan

Refresh Access Screen
Hi,

In Access, I have developed a screen for a user to add /update/delete data.

The user first enters data on the screen, then clicks the add button to add the data. After adding data, the Add button is supposed to be disabled because the user cannot add the same data twice. I have this routine, Refresh_Screen which includes the statement CmdAdd.Enabled = false. However, whenever CmdAdd_Click calls this routine to disable the add button, I get an error because "you cant disable a control while it has focus."
Is there any way that I can transfer control from CmdAdd_Click to Refresh_Screen, so I won't get this error?

Thanks,
Z

Vb6 Screen Refresh Rate
Hi! I have a question about screen refresh rate. The important thing is that my app, designed for 640x480, re-sets not only their original screen resolution, but especially their frequency upon exiting. After much research, I finally got the 640x480 part and back working fine. Refresh rate is still a problem.

As an example, my own screen is set to 75 Hertz. When I run my app it goes into 640x480 as I want. Freq goes to 60, which I think is adapter default. On exit it had been going back to the proper res, but not the orig hertz - still 60. I learned in my searches to use the following:

b= ChangeDisplaySettings (Null, 0)

The b is a Global Long - I THINK its being used here as an object. Not sure why the code doesn't just Call ChangeDisplay, etc.
Anyway, it is said to be a quick way to restore the whole original screen settings, using that Null, 0 argument. It worked! Got back to 75 or where ever it was origianlly set. And then...compile time, no problem. Then I run the compiled program, it goes to 640x480 fine, hit exit and:

error '91'
Object variable or With block variable not set???

The actual sub code is thus:

i = 0
Do
a = EnumDisplaySettings(0&, i, DevM)
i = i + 1
Loop Until (a = False)

DevM.dmFields = DM_PELSWIDTH Or DM_PELSHEIGHT

DevM.dmPelsWidth = HResOrig
DevM.dmPelsHeight = VResOrig

'b = ChangeDisplaySettings(DevM, 0)
b = ChangeDisplaySettings(Null, 0)

Note the remark. The original code had the (DevM, 0) which worked - even compiled - but did not reset the frequency. I replaced with (Null, 0) and its fine in the IDE, but not as compiled exe!

I found on the web that this problem is usually associated with references objects, etc., within other apps, which I don't think I'm doing. I'm using Windows XP Professional Version 5.1.2600 SP2 Build 2600. Tried Set, re-dimming b, etc., no go. What am I missing?

Not sure if there's something in XP the program is not seeing? Why the error only when compiled? Any advice is indeed appreciated!

Help With Screen Refresh Rate
Hi All

I have an app which changes the resolution of a monitor upon start-up. This works very well. I have a problem where the refresh rate is causing a few problems. Users are complaining.

Does anyone know how to change the refresh rate with Visual Basic 6?

Many Thanks

BB

Screen Refresh Is Delayed
When performing very time or memory consuming operations such as reading a large array of data into memory, some parts of the screen that were covered by, say, a "Open File" common dialog are not refreshed until the operation is over, which of course is specially ugly when you run a slow computer.
Is there any trick to overcome this feature?

How Do I Do A Quick Refresh Of The Screen?
I want to refresh the screen because I'm blitting and image to the screen and I want it to disappear but I want it to be a quick refresh because it is gonna be done every 3 seconds. I tried other ways but they take too long.. anyone can help me?

DataGrid1 Screen Refresh
My datagrid is being messed up by other windows programs appearing on top of my datagrid. This especially happens when I drag the other program off the datagrid.
How do I make sure the datagrid is always refreshed?
Thanks

Screen Refresh - RichTextBox
I have a RichTextBox populated with a .rtf file in a form. The requirement is to highlight the next word that is in blue color (acutally, any color that is not black) when the user press F2 key.

To implement this functionality, I used UpTo function to jump to next available <space> ,' vbCR, vbLF etc., and select the first letter of the word and check the color. The problem here is that when I select the first letter of a word to check the color it highlights the letter which I want to avoid.

I want to stop screen updating (refresh) and do this searching process and then redraw the screen.

I was looking for a method which is mimilar to "Application.ScreenUpdating" method in VBA.

If you know the solution or workaround to address this requirement or to solve the screen update problem, please respond as soon as possible.

Appreciate your help.

Vasu

How To Refresh Screen While Batch Is Running?
Using a form to launch a batch process in DTS. The screen freezes, while this is running.

How do I refresh the screen?

Thank You!

edit: Doevents doesn't seem to work in this case.

Labels On Screen Flash Upon Refresh
Hello! Does anyone know how to fix my problem? I have a text box which shows the number of records as they are extracted. I am doing a form refresh after each increment and this causes the labels on the screen to flash. Ideas? Thank you in advance!

Screen Refresh Issue With Custom OCX
I have a Custom combo control that auto-populates with data retrieved from a stored Procedure. The problem is is that as the control loads it's data the parent form is flickering (more a fade in). I assume this is as my combo is running through its population tasks as the form is loading. How do I get around this? Is there some way of utilising lockWindowUpdate API?  Any help would be greatly appreciated.

Thanks

Population takes place here -

Private Sub UserControl_Show()

If Ambient.UserMode Then

   ----Populate recordset then add to combo list


Webbrowser & Screen Refresh (found Workaround)
Hi, I am using the webbrowser control to display a webpage.
A Java script causes a new form and control to be created, and it resizes them waaay to small.
I have tried to resize the form and webbrowser control after webbrowser_documentcomplete() fires, but it has no effect. However, I made a button to increase the width. I press it, and all my resizing and repositioning takes effect, as if changing the width also caused some other refresh of the screen to take place. Any ideas?

Thanks!

Write Contacts To Outlook. Problems With Screen Refresh
I am creating an application where I am writing a list of custom contacts into my outlook contacts folder.


dim oApp As Outlook.Application = New Outlook.Application
dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")
dim cContacts = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
dim oNewContact = cContacts.Items.Add(Outlook.OlItemType.olContactItem)

oNewContact.FirstName = valRow.Item(2) 'FirstName
oNewContact.LastName = valRow.Item(3) 'LastName
oNewContact.MailingAddress = valRow.Item(4) + valRow.Item(5) 'Mailing address
oNewContact.Save()

The problem I am experiencing is when I go to the contact folder in outlook I notice all my items have not been written in. I begin deleting items to start again and the items missing from before begin to appear.

I believe that the contact items are written to a point then the rest become "Hidden". Is there a way for me to refresh my contact folder after I've written to it so that it will display all my items?

ps.I've also noticed after further experimentation that when i go into the folder and save a new item the folder is refreshed and all of my items are not visible. I really would like to use this refresh feature in my code to display all my items. Thanks.

Thank you.



Edited by - MidVber on 11/12/2004 8:29:18 AM

Please, How To Refresh The Entire Screen(desktop And Opened Windows)
I'm sure this is not difficult... i've seen it a number of times, for example when you click apply in the folder settings, or when an app refreshes the icon cache...

thanks.

Kinda Noobish Question But.. How Do I Stick Fps To The Screen Refresh Rate?
umm when i worked in full screen with DirectX 8 (2D graphics) it waited for the screen to end its refresh before presenting on the screen. but now im working in windowed mode and it doesnt wait, and i fear it can make it flicker.

so how do i force it to wait?
(added my init sub if it needed)

thanks

Cannot Refresh Data Using Crystal Viewer Refresh Method
I am using crystal report 8.5 and Visual Basic 6.0

I get an error for this code.

crviewer1.refresh

error :

Method 'Refresh' of object 'IcrystalReportViewer' Failed


thank you ....

regards pragash...

MSFlexGrid Refresh Causes My Comboboxes To Refresh???
What in the heck is happening?? On a form I have 2 combo boxes, the first for suppliers and the second for contacts. The contacts is filled from the database after the supplier is chosen. On my Flexgrid, I have several pop-up forms/controls. When I open them (For instance the DateTimePicker) and select the date from my pop-up control, my screen flickers and my contact is blank again. The supplier stays like it was. I can't exactly paste the code for this, since I am at about 5,000 lines and counting on this Application.

Screen.Width / Screen.TwipsPerPixelX, Screen.Height ..
VB Code:
SetWindowPos Me.hWnd, HWND_TOPMOST, Screen.Width / Screen.TwipsPerPixelX, Screen.Height / Screen.TwipsPerPixelY, formx.Width, formx.Height, SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE


Hello

I cant undestand the meaning of the fowlloing code. it make me some confussion. please explain what it tells.


VB Code:
Screen.Width / Screen.TwipsPerPixelX, Screen.Height / Screen.TwipsPerPixelY

Get Screen Resolution Without Screen.width Or Screen.height
these 2 ways really look in accurate. when the user changes the resolution of his desktop it wont detect it.. while i check it every second.. this makes my window not appear in the most left down corner (of screen or in the center) , also at a resolution of 1600x1200 the window is allready not located exactly in the left down corner but also out of the screen :S any other way to get the resolution?

Center All Forms In Screen - No Matter What Resolution Or Size Of Screen?
Hi all,

I would like my app to appear dead centre on the screen, no matter what size of screen or resolution.

Thanks

Screen Size Problem - How Do You Accomdate Multiple Screen Settin Gs?
Porting my applications from one machine to another sometimes results in the
app covering the entire screen - sometimes control features are hidden, or
close to hidden, at the bottom. I understand that different screen settings
are affecting the size of my app - what I don't understand is how to modify
my app to accommodate varying screen settings. Any suggestions?

Thanks

Finding Windows Version, Screen Resolution & Screen Size
Hi there

Just a quickie!

Is there anyway I can find out what version an operating system, screen resolution and screen size, a certain computer has got during run time??? If so, whats the code???

Thanx in advance

Dock Form To Screen, Reserve Screen Space
Dear all,

I've searched and searched all over the Internet. I've posted messages in newsgroups and only gotten responses that basically tell me how to do the opposite of what I want while also suggesting that I should want to do it their way instead of mine.

This is what I want:

I want my application to "dock" to the top of the screen. It should become reserved space so that all other windows, when maximized, will only reach the bottom of my application.

I do NOT want it to "auto-hide"
I do NOT want the user to be able to "move" or "relocate" it to a different side of the screen.
I do NOT want the user to be able to "undock" it

Every sample or answer I can find is a way to do it with all the things I said I DON'T want, and all the code I have to pick through has been confusing me. I cannot find what I need to just dock the application upon loading and leave it there until exit.

I've been playing around with the sample application called "AppBar" which I think came from MSDN or from somewhere on the Internet, but that application starts off floating and you have to dock it yourself. I cannot manage to pick out the functionality of just docking it and leaving it there.

Help, please!
Thanks.
Dan

How To Provide Help Screen From Database/Table In Entry Screen
Hi friends

I am developing my First Application in VB. I want to provide Help
Screen from Database/Table to Users
For eg. Display of Customer Master or Item Master, when clicked on record
store Cust.Code to Text Box.

Now I am trying to use ListView. But it becoms very Slow when number
of records becoms morethan 10,000.

My Help coloums are different depemnding on Get Field.

If Help to be provided on Customer Master then help coloums are
Cust.code, Cust.Name, Cust.Address
If Help to be provided on Invoice.No. then help coloums are Inv.No.,
Inv.Date, Cust.code, Cust.Name etc.

Is there any ready componet avalable. Pl Help me.

Regards

D.V.Kulkarni

Reporting Same Screen.width And Screen.height
I don't want to set the form's startupposition to center screen, because I want to set it to a registry held value of the last position on closing, BUT if the registry's empty, I want to manually center screen it.

I tried:

Me.Move Screen.Width/2-Me.Width/2,Screen.Height/2-Me.Height/2

It was shifted to the left, definately not center screen. So I tried to figure out what was wrong with my math.

Here's what I'm getting from some debug.print statements.

Screen.Width - 18000
Screen.Height - 18000

Trust me, I looked it over and over and the debug.print is properly listing width after the text that says width and height after height.

How can my screen.width and screen.height both be reporting themselves as 18000???

No Splash Screen And Connection Screen Urgent !!!
Dear folks,

i have a task to read mails from my outlook express (Offline)and display in rtb control and give a option of save


The code for that is working fine but when i issue command MAPISession1.SignOn
it splashs the outlook screen and connects to net and displays the error messages of pop3. failed etc..

how can i get rid of this.


Thanks

Brgds
Ganesh.K

Screen Capture Doesn't Get Entire Screen
Hi,
Just hoping that someone can give me a pointer.
I am trying to write a screen capture program using API's, it works after a fashion in that it will display about 1/4 to 1/3 of the screen only. I have tried changing the different dimensions but I cannot get it to capture the entire screen.
(Code attached).
Any help will be greatly appreciated.

Many thanks,

Dave


"The only person to get all their work done by Friday was Robinson Crusoe."

Screen Capture Of Active Screen Without 'Top' Part
Is it possible to screen capture the active window without capturing the very 'top part' of the window ? 'Top part' meaning -( look at this window) , the part which shows the caption of the window which says ' Microsoft Internet Explorer'.

Screen {how To Show A Splash Screen}
I would like a jpg picture to be appear for 3 seconds when i start a program. How to do this?

Wide Screen Or Full Screen
I am making a media player, and I am having some problems with resizing, not really problems but more of a situation. You see when you play letís say dvdrip xvid movies in letís say Windows Media Player in full screen, it does not actually maximize the video to full screen but yet makes it wide screen most of the time, but other full screen ones are actually full screen. So my question is how do I go about doing that? Itís more of a math problem then anything I guess. I want to play the dvdrip xvid movies like windows media player plays them and make them look like wide screen, but I want some other movies which are meant to be full screen such as VCD movies to actually be full screen.

Any suggestions?

Load Screen (Splash Screen)
Hey guys a i have a program which connects to multiple databases, and loads A LOT of data in to the combo boxes. So wheever i try to run the program it loads up for awhile, (the computer almost freezes for a few seconds) I would like to make some kind of splash screen (popup) saying something like "Loading ..." and when the loading is actually complete. For the form to appear. Most of the data loading happens on teh form.activate event

Do you know how ic an get that done ?

Screen.height & Screen.width
i am wondering what is the unit it uses for screen.height and width? when the resolution of the moniter is 600x800, it returns 9000x12000.

Projecting Off Screen Coordinates To On Screen
How would you go about handling the Subject?

Given:

1. Draw an upward or downward line on a PBox.
2. An extention or projection routine is used to extend the line off to the right border of the PBOx.

Problem:

1. Pt1 of the line is scrolled off either the left, top or bottom border of the PBox and the line still needs to be extended through the PBOx such that it "MAY - given slope" intersect the right PBOx border.'

2. Pt1 AND Pt2 of the line is scrolled off either the left, top or bottom border of the PBox and the line still needs to be extended through the PBOx such that it "MAY - given slope" intersect the right PBOx border.'

Thanks for your time

I Need Screen.cls (or A Different Way To Resize The Screen's WorkArea*)
This is a VBA-Class made by Microsoft, and should be standard VBA-file, tells MSDN me.

Could someone pleace post because I need my program to adjust the WorkArea* of the screen... If someone knows another way to do this please tell me...

Thanx in advance.

WorkArea = Part of screen used for forms. Another way to put it: The WorkArea is the part of your screen that is covered with a maximized window.

Wide Screen Or Full Screen
I am making a media player, and I am having some problems with resizing, not really problems but more of a situation. You see when you play letís say dvdrip xvid movies in letís say Windows Media Player in full screen, it does not actually maximize the video to full screen but yet makes it wide screen most of the time, but other full screen ones are actually full screen. So my question is how do I go about doing that? Itís more of a math problem then anything I guess. I want to play the dvdrip xvid movies like windows media player plays them and make them look like wide screen, but I want some other movies which are meant to be full screen such as VCD movies to actually be full screen.

Any suggestions?

Wide Screen Or Full Screen
I am making a media player, and I am having some problems with resizing, not really problems but more of a situation. You see when you play let’s say dvdrip xvid movies in let’s say Windows Media Player in full screen, it does not actually maximize the video to full screen but yet makes it wide screen most of the time, but other full screen ones are actually full screen. So my question is how do I go about doing that? It’s more of a math problem then anything I guess. I want to play the dvdrip xvid movies like windows media player plays them and make them look like wide screen, but I want some other movies which are meant to be full screen such as VCD movies to actually be full screen.

Any suggestions?

Disable Screen For Login Screen
hi i was wondering if anyone nos how to disable all but the current form on the desktop.

Any ways on how to do this will be welcome !!!!!

How To Divide Up Data(12 Screen) On Each Screen ?
from database get 15 records,and this is text field,each record is differnt from the other: FontName,FontSize,FontCorlor,one screen show 3 minute,then next screen along on show,and the first is the last ones next ,how to divide up the records to each screen?

Disable Ctrl+alt+del For And Ctrl+tab In Login Screen And How To Make A Screen
how i can disable Ctrl+alt+del for and ctrl+tab in login screen
accept user can put the correct username and password to login
 to the desktop

and how i can make one screen to close the desktop,
 just give user only can put they password and
username (textbox)can unlock the screen.coz what i
do before this is just using form to display all the screen,
so when i logoff or switch user, i still can c the taskbar,
and using Crtl+del+alt to close the form.....

Screen Capture Part Of Screen Where Window Is, But Not The Window... Phew
Hey there,

I was wondering if there is a (fast, quick, easy - not necessarily easy) way to do capture the part of the screen that lies under my form. What you would see if you would be able to look through it.
The only way I can think of is hiding your form, capturing, and then showing it again when done, but that causes some flickering...
I'm trying to figure this out, so any help is greatly appreciated!

Search before you ask - if you don't know where to search, ask before you search

Off-Screen Screen Capture
I'm trying to create something which monitors an internet browser's window and takes periodic "screen shots" of what its being displayed. The real problem though is I want it to work in the background, without the browser being maximized on the screen. I guess its not really a screen cap, but that's the best way I can describe it. I'm stuck, so any help is appreciated.

Com Refresh
Hi all,

If the com1 is blocked, instead of manually going thru the device manager to disable and enable the port ( inorder to free up the port). Is there a way where i can key in a code to tell , if in case of port opening error , do refresh the port and connect?

thanks.

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