refresh

Refreshing XAML items without using Refresh() method

蓝咒 提交于 2019-12-13 10:32:51
问题 I'm using C # WPF. I'm trying to figure out if there's a way to update the XAML elements without having to use the Refresh() method that you see in the following code. Now I am encasing the codes related to the C# doPlay() method that is launched inside the MainWindow through a thread and the XAML code. Can anyone suggest a way to update progress bars without having to use the Refresh() method? private void doPlay() { Transfers.Add(new Transfer(Utils.RandomString(6), Utils.RandomString(6),

Refresh all but input pwd once

自古美人都是妖i 提交于 2019-12-13 10:21:44
问题 I have an excel file with roughli 25 oracle connections that I have to refresh. Each one prompts a usn and password input. I would like a vba that prompts for a usn and password once and inputs it in all following prompts. I have been searching for a way to do this but can not find a suitable solution. Thank you all in advance. 回答1: "First of all I would like to know if this is even possible." In short, yes It all comes down to the connection string. How you go about creating and using that

Refresh Javascript Src

99封情书 提交于 2019-12-13 09:35:34
问题 How to refresh your result when put you search any keywords. If I use innerHTML it can update the keywords that I find but when use script src i doesnt work, it only work once. This is my coding <html> <head> <title>Google Search API</title> </head> <body> <div id="box"> <textarea id="myTextarea"></textarea> <button type="button" id="mySubmit" onclick="myFunction()" >Search</button> <p id="demo"></p> <div id="content"> </div> <script id="searchme"></script> <script> function myFunction() {

How to refresh TabHost Activity?

女生的网名这么多〃 提交于 2019-12-13 08:20:36
问题 I have a TabHost activity as main activity of my app. This TabHost contains 4 activity. How can I refresh this TabHost (or one of my activity which TabHost includes) by clicking on button in another activity. btw. I know how to make button, etc. I only need to know code for refreshing TabHost. 回答1: startActivity of that tab and have your code of the activity you want to refresh in onResume() method, that should refresh your tab activity. It is working fine in one of my apps. 来源: https:/

refreshing a div without refreshing the page

本秂侑毒 提交于 2019-12-13 07:03:39
问题 i'm making a setup process to setup a db. I'm trying to let the user go through all the phases without refreshing the page. I'm stuck at a point where i want to use the .load() jquery function. This is the javascript: if(response.error == 'none') $("#setup_form").slideToggle('fast', function() { $('#setup_form').load('./includes/db_setup_form.php'); $("#setup_form").delay(1000).slideToggle('fast'); }); The if is checking that everything went ok with the previous setup phase. db_setup_form.php

WPF and C# - Issue with GeneralTransform and UIElement.TransformToVisual

淺唱寂寞╮ 提交于 2019-12-13 06:59:10
问题 I've only been working with WPF for a few months, but I have an extensive WinForm, ASP.NET, and Flex background. I am attempting to draw a user control which looks like the following IMAGE. We are using the MVVM pattern. When the user control first loads, everything draws correctly. The control consists of a canvas. Within the canvas exists a radial panel which will geometrically place UIElements which are added. The circular nodes are drawn into the radial panel. The PolyLines shown are

Make settimeout different depending on certain factors

时光毁灭记忆、已成空白 提交于 2019-12-13 06:32:07
问题 I'm trying to refresh a page, and every time I refresh the page, I want to roll a random number. If it's zero I want the page to wait 5 seconds before refreshing again. If it's one I want the page to wait 1 second before refreshing again? However, with my code, the page either refreshes after 1 second every single time, or it refreshes after 5 seconds every single time. What am I doing wrong, and how do I fix it? Please use the codes that I have, and point out what I did wrong in my code: //

Refreshing Controls in runtime

耗尽温柔 提交于 2019-12-13 06:04:59
问题 I'm working on a WindowsForm and trying to import data from a file, meanwhile I'd like to display the new data on sreen as soon as I read it in. My basic code looks like this: public partial class Form1 : Form { public Form1() { InitializeComponent(); Read_in(); } List<Data> _list = new List<Data>(); public void Read_in() { using (StreamReader sr = new StreamReader("in.txt")) { while (!sr.EndOfStream) { Data d = new Data { a = sr.ReadLine() }; _list.Add(d); Controls.Add(d.pb); } } } } class

Android: Refresh current fragment after language change

自古美人都是妖i 提交于 2019-12-13 05:52:12
问题 So my MainActivity has a navigation drawer with a set of fragments. On top of the nav bar, I have 2 flags which represent a language. If an user clicks on a language, the app changes the language of the whole app. Everything is working smoothly (activity refreshes, navigation drawer and all fragments get translated) but the fragment that's open doesn't. This means that the user needs to click on the navigation drawer and select the fragment again to see it translated. How can I refresh the

Flex datagrid not updated properly

こ雲淡風輕ζ 提交于 2019-12-13 05:36:53
问题 I have two tables: Person {pID, pName, deptID} and Departments {deptID,deptName} An SQL statement like this gets me the name of a person and the department name: SELECT pName, departments.deptName FROM people INNER JOIN people.deptID = departments.deptID; The above works fine. I have a Flex DropDownList that is populated with deptNames. When I click the submit button, I am able to obtain the ID of the selected department without problem: protected function button_clickHandler(event:MouseEvent