View Complete Post
hello again you all
well another hard (for me at least) issue that bugs me is how can I change the image source of a image on mouse over event in WPF (vb .net)
I know it in winforms but again since I'm completely new in WPF, must admit that I'm off.
any help is highly appreciated
i am making a web form with a VB code behind. on the form I have a down arrow imageButton that when pressed hides certain data. what i want to do is change the button to an up arrow and vice versa whenever pressed. i have both images loaded onto my project already. any suggestions.
I am working on a localization project, some of the localized text are in graphics, some of the example graphics paths:
My web forms use <asp:image> controls and <img> tags (runat = sever) to point to graphics in /en/images. I need to a function to loop through all image control and point them to different paths based on the locale set at runt time. Which event should I override and how do I write it?
All my web pages inherit from a base page, I don't know if that makes differences.
this is code to clip an image according to a mouse flick over image
public PolyLineSegment polyline = new PolyLineSegment();
public bool iscd, isid;
public Double enter, leave;
this.LayoutUpdated += new EventHandler(Window1_LayoutUpdated);
isid = iscd = false;
mygrid.MouseLeftButtonDown += new MouseButtonEventHandler(mygrid_MouseLeftButtonDown);
mygrid.MouseLeftButtonUp += new MouseButtonEventHandler(mygrid_MouseLeftButtonUp);
gImg.MouseEnter += new MouseEventHandler(gImg_MouseEnter);
gImg.MouseLeave += new MouseEventHandler(gImg_MouseLeave);
void gImg_MouseLeave(object sender, MouseEventArgs e)
leave = Mouse.GetPosition(mygrid).X - Canvas.GetLeft(gImg);
(In a different post I asked about how to access an Image control held in a FormView template. This topic has been mixed into it, so I thought I would start a fresh post only about this problem.)
I would like to perform a simple check to ascertain the width of an image. If it exceeds a certain dimension I would like to give the image a width property. I understand this doesn't not affect file size, just dimensions, but it is for presentation purposes. I'm still learning VB, but the code below is what I have tried so far:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim LargeImage As Image = DirectCast(FormView1.FindControl("Image1"), Image) Dim Width As Integer Width = LargeImage.Width.Value If Width > 560 Then LargeImage.Width = Unit.Pixel(560) End If End Sub
Thanks in advance,Joe
I have a need to change the image (bound) in a gridview after it has been databound. Basically i need to assign a photo to a record and I want to change the image url for that row. I can change the text in any of the cells of the row but I can't seem to find property for the imageurl.
This is what I do to change the text(cell 5).
int index = int.Parse(Session["NSI"].ToString());
GridViewRow row1 = GridView1.Rows[index];row1.Cells.Text = "just some text";
But now I need to change the image url for cell 0
something along the lines of ...
row1.Cells.ImageUrl = "~images\photos\12345.jpg";
How do I get to that property?
I would like to change the background-color in my XSLTListView, when the ms-newgif is visible in a row.
How can I check in XSLT if the image is vivisble ?
I get new bitmap from some other component ( dont have any control on the other component ) every 5 seconds and i need to update my wpf image control with the new bitmap ( every 5 seconds ... ).
[ i cant save the bitmap to the disk and then load it as file ]
I cant find any way to update this wpf image control in run-time.
How can i do it ?
I have created an asp.net website using visual studio express 2008. I am having trouble mapping a path to my image folder from other files in the website.
My image folder's path is http://localhost/Cafeteria/Image/MyImage.gif
My aspx page that I want to map from is http://localhost/Cafeteria/Submeals/burgers.aspx
In my /burgers.aspx I have the following code:
<asp:content id="Content1" contentplaceholderid="Main" runat="server"><
I have created an aspx page that is displaying user profiles, and on that page I have an asp.net image control that I dynamically populate at runtime based on the users profile image.
I have created several themes, just modifying css to display the profiles with different background and different layouts.
For fun I have created one theme that is kind of like the matrix, and I would like to be able to take the users profile image and change it to a 'green scale' so to speak, or even just a straight up green color, more so this one #20f380. The profile images are just jpg, and are already cartoonish so they should change to green without the image looking to bad.
Is there a way to use code behind to change an image's colors?
C# or VB is fine, currently I've not been able to find any tutorials that work for me, or are close to what I am trying to do.
I am trying to make a dynamic image loader the simplest and easiest way possible. I'd like to have 3 to 4 html links that have a .net onmouseover and onmouseout event that loads an image in a seperate part of the page.
So far I am struggling with even getting this started. Any advise?
Here is what I have so far:
<a href="MyPage.aspx" onmouseover="LoadOverviewImage" runat="server">MyPage</a>
My thinking on this is that the "loadOverviewImage" will run a c# function that will control the image modification on the mouse over and off.
I define some new button style.
The style default background is image X.bmp and when on 'mouseOver' is true the image is changing to Y.bmp
I have 10 buttons on the code that need to use this style - and each of the button need to show different image as default different image on 'mouseOver' event.
I can set the bitmap on each button on the button constructor - but i don't know how to set the image in this case on the style definition level.
Someone can help here ?
Hello. what i want is pretty easy .
my all image paths are relative atm. so they are getting processed like this
what i want is to convert all image paths to this with image http handler
static.pokemoncraft.com domain is cookieless
so this will reduce http headers size and increase performance
i think this should be pretty easy
I am trying to develop a UserContorl which shows an image that changes and plays a sound when MouseDown is raised. This is my UserControl: