refresh

wpf forcing update UI window during a procedure

有些话、适合烂在心里 提交于 2019-12-25 16:39:37
问题 I need only to show a custom control (a clock with rotating hands) and with this to replace the mouse cursor, if I use a file .cur or .ani to replace the mouse cursor Me.CUrsor = New Cursor("absolute path of the .ani file") there is no problem: I can change the cursor during a procedure: but the quality of the animation is very bad, and, also for other reasons, I'd prefer to use my little user-control. The problem is that if I write: Me.gridScreen.Visibility = Visibility.Visible ' some

Run-time error 1004 for Refresh Pivot Table

帅比萌擦擦* 提交于 2019-12-25 14:46:41
问题 I created macro which would refresh all pivot tables in a worksheet. The same code works on one sheet however doesn't on the other. I tried to run it in debug mode and it works fine for first few tables and crush on one in the middle with error: Run-time error '1004': RefreshTable method of PivotTable class failed. There are 20 Pivot Tables in this sheet, but on the one where it works are 26. Your help would be much appreciated. Sub Refresh_Pivots2() Dim PL As PivotTable Worksheets("Incidents

How can I make a link load a random php ID on the page?

痞子三分冷 提交于 2019-12-25 10:02:32
问题 Database row IDs are tied to the URLs like this: The page for row 2 becomes site.com/index.php?id=2 If I manually refresh index.php it displays a random record, but naturally it doesn't display the record ID in the address bar. Is there a way to make a link display a random record while showing the id change in the address bar? Thank you for your help! 回答1: Instead of just showing the random record, choose the record's id and do a redirect to the version that shows the id. $randomId = //

How can I make a link load a random php ID on the page?

為{幸葍}努か 提交于 2019-12-25 10:01:02
问题 Database row IDs are tied to the URLs like this: The page for row 2 becomes site.com/index.php?id=2 If I manually refresh index.php it displays a random record, but naturally it doesn't display the record ID in the address bar. Is there a way to make a link display a random record while showing the id change in the address bar? Thank you for your help! 回答1: Instead of just showing the random record, choose the record's id and do a redirect to the version that shows the id. $randomId = //

I'm using Ajax, but the page is still refreshing when I click on submit button [duplicate]

白昼怎懂夜的黑 提交于 2019-12-25 09:01:56
问题 This question already has answers here : Pages Keeps Refreshing While Using AJAX (3 answers) Closed 2 years ago . I am trying to use this code. But Ajax doesn't work and the page is refreshing when I press the submit button. I don't know where is my mistake. I'm using json because I need to print multiple answers. For instance, I need to show if each answer is correct. I'm loading jQuery in the header, that is OK. <script> $(document).ready(function() { $('form').submit(function(event) { var

refresh listview created from an arraylist after delete operation

耗尽温柔 提交于 2019-12-25 07:42:54
问题 I have seen too many questions about refreshin a listview and I have tried every solution on the topics but none worked for me. have tried notifysetdatachange() , invalidateviews , refreshdrawablestate() but none worked. I have an arraylist and after an longclick operation I am deleting an item from arraylist.and I want it to disappear from listview.but it does not. but after deletion if I open another activity and turn back to the activity which contains my listview it disappears. so my

Jquery Mobile refresh list

若如初见. 提交于 2019-12-25 06:31:05
问题 I'm using jQuery Mobile for the first time (in fact, anything jQuery related) and I've managed to place some nested listviews to show content. How can I do to refresh those nested lists? I've seen there's a refresh() function, but I don't know exactly where/how to use it or it it suits my needs. Can someone help my with this? 回答1: This post shows examples of how to call refresh Don’t forget to call refresh when adding items to your jQuery Mobile list 来源: https://stackoverflow.com/questions

WPF refresh TreeView when it loses the focus

别说谁变了你拦得住时间么 提交于 2019-12-25 04:56:18
问题 I have a problem with my TreeView in a WPF application (Framework 3.5 SP1). It's a TreeVIew with 2 Levels of Data. I expand / collapse the items of the first level in a particular way (with a single mouse-click on the TreeViewItem). Again when I expand a first-level TreeViewItem, I add some second-level TreeViewItems to the group (it's an important detail, infact if I don't add the items the problem doesn't occur). All works good until the TreeView loses focus. If, for example, I expand the

Refreshing a folder that doesn't exist in the file system

偶尔善良 提交于 2019-12-25 04:12:17
问题 In my shell extension I have folders that don't actually exist in the file system, but only appear so to the user. When the content of those folders is changed, I want to refresh them, and currently I do it in the same method I do for regular folders: Win32.SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST | SHCNF_FLUSH, PIDL, IntPtr.Zero); Whereas PIDL is a list of shell folders IDs, as required by SHCNF_IDLIST . The problem is that explorer doesn't handle my non existing folders. Instead of

Refresh child-items in a container - GTK

冷暖自知 提交于 2019-12-25 02:37:34
问题 I am developing some kind of financial calculator in c with a graphical userinterface. I am using the gtk-lib and I have encountered one problem that right that could not be solved. Its about how to dynamically update (refresh) the window and its childs - more specifically - there is one child item in the container that is a text-label. I want this label to be changed according to what is entered in the textinputfield. I am used to java where one easily can call a method named invalidate().