Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Xarzu

  • Rank
    (1) Prestidigitator
  1. I am new to .NET CORE but I have followed a few tutorials. The tutorials I have followed are basically "Hello World" types of programs where I make a small functional .Net Core application and I publish it. They are basically a DLL, I assume, and they run in some sort of system/container where they can run on any OS. Even though the final product is a DLL, the code itself seems to be structured in a way where it is an actual executable application. So how would I translate an actual C# DLL project into a .NET Core project? How would a project that is already designed to produce a DLL
  2. How do I expose the LoadCompleted method in the WebBrowser class in WPF C#? I am trying to write a C# program in wpf that retrieves the content of a web page. The first thing I tried was to try the WebRequest and WebResponse classes. This did not provide the actual displayed content. WebResponse reveils the HTML code that is sent to the browser. But I discovered that, while the page is being loaded by the browser, javascript can change what content is finally displayed in the browser. So I decided to use the WebBrowser class. Immediately I found that there are two WebBrowser
  3. How To Modify An Element in the Dictionary Class? ======================================= C# has this cool Dictionary class that you can use like a Hash Table. Is there a way of changing the value of an indexed element without resorting to removing it like this? int value = runningcount[city]; runningcount.Remove(city); runningcount.Add(city, ++value);
  4. C# Split String Is Not Working ====================== Please Help. I wrote a C# program that reads code one line at a time. Each line has data seperated by tabs. Here is what my C# code is supposed to do. The line is supposed to be split into a string array by using the "Split" string methodIt is supposed to be spit read in text one line at a time and I use the "Split" method to group the line according to the tab character. But, as this screen shot shows, it does not work. Any idea why?
  5. In a silverlight app, I have a BitmapImage defined as System.Windows.Media.Imaging.BitmapImage and it as a method called "SetSource" where I can set the source like this: BitmapImage bitmap = new BitmapImage(); System.IO.Stream stream = _scene.GetStream(); if (stream == null) return; bitmap.SetSource(stream); In a WPF application I have also have a Bitmap image defined as System.Windows.Media.Imaging.BitmapImage but there is no SetSource method. How do I set the source in a WPF app like I do in a Silverlight app? Also, it is a stream, not a string. It is not a URI. so "UriSource" meth
  6. 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...ilverlight.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 li
  7. 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...ilverlight.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>
  8. How do I get a dattime format in C# that will look like this: 2011-09-01 00:00:00:000
  9. Silverlight is designed differently where it is not possible for a silverlight program running inside a browser can have access to a user's hard drive. This is a good thing and is important for security. But there are times when it might be a good idea to save some settings on the client side. I kind of remember that there is some sort of protected space for that. Does anyone have any ideas?
  10. I think it was a memory thing. After I closed some files and some programs, it did not fix the problem, but after I rebooted, it fixed the issue.
  11. 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?
  12. When editing an XAML file using visual studio 2010 sometimes the tick marks to colapse groups are there and sometimes they are not. Can anyone tell me why?
  13. How Do I Fix Product Key Issue? =============================== I bought and built my computer from scratch. It was a couple of years already but I remember it was from EggHead online. Ah, but it did not go smoothly. I was not used to all the chips and connections and such. But I decyphered the instuctions and I got it put togehter. And it did not run. It took days and the days became weeks. I had to resort to to doing a lot of trial and error and calling up everyone who made each individual part. I considered that it might be my genuine Microsoft Vista installation CD It
  14. I have a program written in C#. It consists of a small main executable and several added DLL's. In other words, it is a Solution with several added projects. Here is where it gets interesting. A co-worker has created a stand-alone executable that does somethnig that I can use in my program. The co-workers program produces an exe when compiled and it has its own main routine. His program has its own namespeace and has just one class. The plan is for me to create my own class in my code that inherits the co-workers class. How do I do this? Also, are there special considerations
  15. I have an old hard drive that has those old ribbon connections to transfer data to the mother board. I have a new computer that mostly uses those cool little ATA (I think that is what they are called) connections. The new computer has a Vista OS. I opened up the case and I was supprised to see on the motherboard a wide ribbon connection and so I connected the old hard drive and a free power connection. When I turned on the computer, the system started up like usual and did not notice the new hard drive. I went to the Control Pannel and did an automatic add hard drive call a
  • Create New...