Jump to content

xarzu

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About xarzu

  • Rank
    Newbie
  1. xarzu

    Windows 10 Update on a USB

    Windows 10 Update on a USB I got locked in one of those update loops. You know what I mean, probably. My Windows 10 would start an automatic update, then fail, and then reset itself to a previous version. This would happen all of the time. I eventually decided to back everything up on an external drive and simply reinstall Windows 10 from scratch. Then I found out that the CD (or maybe it is a DVD) was lost in our move. I have the ("OEM"?) sticker but the actual product CD has been lost in the move and I can not find it. Does anyone know how I can reinstall the OS with just the product ID etc.? Someone suggest this link as a way to fix the problem: https://www.alphr.com/microsoft/1001411/how-to-fix-windows-update-in-windows-10-if-it-becomes-stuck-1 So I tried the option on this page that uses "net stop wuauserv" and "net stop bits" and for a while, I thought I was successful in stopping the update cycle. But I was wrong. It came back and the computer was again performing an update only to, at the end of the update cycle, automatically reset the OS to en earlier version after it recognized an error. So, now I am at the point where I want to find a way to back up my system (I have already done this with one of those high capacity external drives) and installing a fresh Operating System. But this takes me back to the problem of not having the CD. Is there some way of doing this with using a USB Thumb Drive? Please advise. Also, what sorts of things do I need to look out for? I imagine I should also back up the registry.
  2. How do you set a default size of a control that you can resize? I have been looking at a code sample from Charles Petzold. It is from here: http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html it uses mouse over methods to increase the size of button classes. I have it working but I want to make some modifications. I want the starting size of the button to be larger. I do not know how much of the code I need to post here to make the issue clear enough. The XAML for the page describes a "FisheyeButton" that is described in a seperate xaml file. Something like this: <StackPanel x:Name="LayoutRoot" Width="1017" Orientation="Horizontal" Height="253"> <src:FisheyeButton Style="{StaticResource btnStyle}" ButtonContent="Button No. 1" /> </StackPanel> The functionality of the project is such that if I give the Fisheyebutton a width and height a set size at this loction, the effect where the size of the control the effect of becoming larger does not happen. In other words, if I write in the <src:FisheyeButton... tag above Width="100", then the button does not behave at run time as it should. In the same page.xaml file, the btnStyle is defined like this: <UserControl.Resources > <Style x:Key="btnStyle" TargetType="src:FisheyeButton"> <Setter Property="VerticalAlignment" Value ="Center" /> <Setter Property="HorizontalAlignment" Value ="Center" /> <Setter Property="FontSize" Value ="12" /> </Style > </UserControl.Resources > I wonder if perhaps at this point, I can add a "Setter" property to define a default starting widh and height for the class.
  3. Help me Convert this WPF to Silverlight I am interested in a Charles Petzold C# example that shows how to do a fisheye effect ( http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html ). The XAML code samples are in WPF but I want to try this in Silverlight. When I try to create the XAML code in Silverlight, the compiler complains in two locations: <Style TargetType="{x:Type Button}"> Error 1 The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. <Style.Triggers> Error 2 The attachable property 'Triggers' was not found in type 'Style'. How do I convert this to Silverlight?
  4. TextBlock wrapping of text in Silverlight XAML file. I have a wierd and annoying problem. I have a textblock that is inside a stackpanel that is Oriented horizontal. It would be nice if I could have the textblock appear in multiple lines nicely wrapped. How could I do that?
  5. I have a float data type in C#. Let's say its value is 5.827671 and I want to concat/round it to the nearest 100th place 5.83 How would I do that? The value is ported to a string by floatvalue.ToString()
  6. In a main routine of a c sharp program, you have a string array like this: public static int Main(string[] arguments) Well, let's suppose I am mimicing this sort of function. Would this be the proper use of a string array? string[] arguments; arguments[0] = "C:\\Users\\All Users\\Apple\\Some File.msi"; arguments[1] = "C:\\Users\\All Users\\Apple\\Another FIle.msi"; I get a compile error Compiler Error CS0165 right on the first line. I guess this is not how to assign strings in C#. But I thought it was.
×

Important Information

By using this site, you agree to our Terms of Use.