Setting the "PositionCount" solved the problem. Thanks. Now a second problem. With the animations defined as a window resource, they run one time only. What do I have to reset in a DoubleAnimation to reuse it? For now I am creating the animations at run time. But I would like to know how to reuse an animation.
WBurgMo
Posts
-
Apply two animations to a text block simultanously -
Apply two animations to a text block simultanouslyI am trying to animate the FontSize and the rotation of a TextBlock. The FontSize animates but I can not get the text to rotate. Here is the XAML
Here is the relevant code behind
DoubleAnimation fsa = this.FindResource("StringFontSize") as DoubleAnimation; DoubleAnimation sra = this.FindResource("StringRotation") as DoubleAnimation; Storyboard sb = new Storyboard(); TextEffect te = new TextEffect(); te.Transform = new RotateTransform(0); this.gameOver.Text = "G
-
[C#.NET 2008] Screen-scraping a HTML PageDimitri Backaert wrote:
This doesn't work however, I seem to be stuck at the logon page. I'm not able to pass the user security. Anyone has an idea?
It would seem that WebClient is not recognizing this page as an authentication request. You will most likely have to manually format the correct response and send it to the server. I would use "WireShark" to trace a manual session with the server. This should let you see what the server expects for an authentication response. James Johnson
-
Units of time when using ToBinary() method of DateTimeDoes any one know the units of time used by the ToBinary method of DateTime? For example
long start = DateTime.Now.ToBinary(); Sleep(1000); long elapsed = DateTime.Now.ToBinary()-start;
The variable elapsed will be in the range of 10,000,000. What does this value represent? Is it tenths of a micro second or some other unit of time? Thanks James johnson
-
problems splitting stringAssuming you parse the variable names into a string array, then for each element of the array examine the last character. If is numeric then examine the next to last character. If that character is also numeric then strip the last character. Of course this assumes that your color info is only a single digit.
-
Column lenth as read from syscolumns tableWhat I ended up doing is creating a command to execute the following Select top 1 * from Customers Then DataReader dr = cmd.ExecuteReader(); DataTable dt = dr.GetSchemaTable(); The resulting DataTable contains all of the information I need. Thanks James Johnson
-
Column lenth as read from syscolumns tableI am trying to come up with a query to determine the structure of a table. So far I have come up with the following query: SELECT SC.name, SC.length FROM syscolumns SC inner join sysobjects SO on SO.id = SC.id where SO.name = 'Customers' The problem is that the "length" column is twice the size it should be. Is there a flaw in my query or do I just have to divide the "length" by two? Thanks James Johnson
-
Changing the style of a comboboxI have a wide dropdown combobox on a form. I would like to move the button that activates the dropdown list from the right to the left side of the combobox. I am aware of the RTL property but it also right aligns the text. Does anyone have a soultion to this problem? Thanks James Johnson
-
include file search sequenceI downloaded the Apache Portable Runtime for windows. It included a VC6 solution and project definitions. I loaded the soultion with Visual Studio 2005 and it successfully converted the solution and project to the new format. I can compile the code with the converted solution. I decided to create a new solution from scratch. But when I compile my solution it finds the wrong include file. In my configuration I specify an include search string of: ".\include; .\include\arch; .\include\arch\win32; .\include\arch\unix" The include in question, "apr_arch_file_io.h", exists in the "win32" and "unix" directories. but the compiler loads the one in the "unix" directory. I do not understand why the converted solution works and mine does not. If I remove the include from the "unix" directory then my solution compiles cleanly. Any thoughts as to what configuration option I have to set to my solution to work. I have looked at the converted project defintions but nothing obvious stands out. Thanks for any help James Johnson