I need to change the background image of a button that is declared in xaml, like this: <Button x:Name="btnBorder" Content="Moldura" Width="80" Height="80" Margin="10,6,10,6" Click="btnBorder_Click" > <Button.Background> <ImageBrush ImageSource="/Images/arrow-expand.png" AlignmentX="Center" Stretch="None" x:Name="imgSourceArrow" /> </Button.Background> </Button> and I'm trying to change the ImageSource of the ImageBrush. For that, I'm using this code in the code-behind: ImageBrush imgb = new ImageBrush(new BitmapImage(new Uri("/Resources/arrow-expand.png"))); W.btnBorder.Background = imgb; But when I run the Application, I get an error "UriFormatException was unhandled", "Invalid Uri"... How can I reference the "arrow-expand.png" image inside the resources and transform it into an Uri String to be passed into the …

Member Avatar
Member Avatar
+0 forum 1

I need to add the URL property to webbrowser1 (located on my form) from a dataset containing the URL, but am getting the error "Invalid cast from 'System.String' to 'System.Uri'. The column in datagridview1 is called link. I need the web browser URL to change with a corresponding textbox and listbox. I have the code correct on the listbox and textbox, as to when an item in the listbox is clicked the textbox changes. I need the webbrowser to change along with them. Here's what I have so far. Public Shared Function loadRSSfeeds() 'create dataset to hold data from XML …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, I really haven’t found much that would be fitting in a half decent or secure way on this issue, but... Let’s say I have a website called mysupportsystem.com and I've incorporated a third party cloud based ticketing system which is fed into the index page via iframe at mysupportsystem.com/index.php. The user also has to sign in through a fairly simple log in form which is also made available through the same iframe. Once the user signs in, the uri of the iframe simply changes to the below uri; (not a real link - just an example only) `techportal.ticketsupport.com/protected/examplelandingpage.aspx` …

Member Avatar
Member Avatar
+0 forum 3

We use hashes a lot in our URIs to jump people around to a specific place on the page. For example (www.example.com#part1 and www.example.com#part2). However, we have a static fixed header at the top of the page, and so if it tries to jump you down, it ends up plopping what you need to see in a place that's covered by the static header. Is it possible to use javascript (preferably jQuery) to intercept all hash jumps and add 100px to wherever it's going to take you?

Member Avatar
Member Avatar
+0 forum 3

i searched about it but not get the proper result how can i install CEON URI module in my zen cart can any one help me in that thanx in advance

Member Avatar
Member Avatar
+0 forum 1

Hi friends. i have an image and i want to use it on another class. so i create a uri like that final Uri selectedImage = data.getData(); String path = selectedImage.getPath(); Intent sintent = new Intent(FromFile.this, OurView.class); sintent.putExtra("image", path); startActivity(sintent); i called uri like that in the class of OurView String ur = getIntent().getStringExtra("image"); try { URI uri = new URI(ur); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } i want to use this picture as a background in this class. How can i do?

Member Avatar
+0 forum 0

[COLOR="Green"][b]I reworked my code into a way that was simpler.[/b][/COLOR] [COLOR="Red"]I have a URL in the following format: "http://sub.domain.tld/path/to/page" I need to extract 'path' and 'page' and discard the rest of the URL. I know about the [ICODE]System.Uri[/ICODE] class and with [ICODE]Uri.AbsolutePath[/ICODE] I can get "/path/to/page/". I need a way of splitting that into 'path' and 'page'. I can currently do it with the [ICODE]String.SubString[/ICODE]/[ICODE]String.IndexOf[/ICODE]/[ICODE]String.LastIndexOf[/ICODE] methods but that requires bounds checking and checking the return values of each method to be safe. Is there a simpler and more robust way?[/COLOR]

Member Avatar
+0 forum 0

I have a requirement that my java application should open a web browser when user click on a button and thereafter the web browser open up a page in which user have two options "Agree" and "Not Agree", depending on the button he clicks on, some code comes in the browser in the address bar. I want to fetch that uri back into my java application.

Member Avatar
Member Avatar
+0 forum 14

hi all I am new to web services.I want to know how to extract the java file from the given WSDL in which i have https based URI. please suggest

Member Avatar
+0 forum 0

I am trying to modify and recompile a dll file. I disassembled it so I have the C# code. I also have the .resources file that is a Pack URI. I want my version to have it's own resources file, but I need parts from the original. How can I disassemble/decompile/parse/whatever-the-correct-term-is the .resources file to get the component files?

Member Avatar
Member Avatar
+0 forum 4

The End.