473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

To show image in full screen

10
HI every one.

I had code to create image buttons dynamically to show images from folder in web application using C#.net. I want that if the mouse pointer is over an Image(or on image button Click event) then it should show full image with respect to that image button .
will it possible?

Expand|Select|Wrap|Line Numbers
  1. foreach (string filepath in Directory.GetFiles("D:/WEB/images_Botinfo"))
  2.             {
  3.                 string imagename = new FileInfo(filepath).Name;
  4.                 string imageid = imagename.Split('_')[0].ToString();
  5.                 SqlDataReader plantid = obj_bl_dravya.select_iden_rb_imageID(lstbxsearch.SelectedItem.Text.ToString());
  6.                 if (plantid.HasRows)
  7.                 {
  8.                     plantid.Read();
  9.                     string id = plantid.GetValue(0).ToString();
  10.                     if (imageid == id)
  11.                     {
  12.                         ImageButton imgbtn = new ImageButton();
  13.                         imgbtn.Height = 190;
  14.                         imgbtn.Width = 175;
  15.                         Label lblspace = new Label();//to give space between images
  16.                         lblspace.Height = 20;
  17.                         lblspace.Width = 15;
  18.                         pnlImages.Controls.Add(lblspace);
  19.                         imgbtn.ImageUrl = filepath.ToString();
  20.                         pnlImages.Controls.Add(imgbtn);
  21.                         pnlImages.Visible = true;                                
  22.                     }
  23.                 }                
  24.             }
Mar 15 '10 #1
1 5631
tlhintoq
3,525 Expert 2GB
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Mar 15 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing...
11
by: Stephane D'Alu | last post by:
Do you know if it is possible to have an image to be scalled to a maximum width/height, but with keeping its aspect ratio. The two ideas I had were: - <img src="toto.jpg" style="max-width:...
3
by: jason | last post by:
Hello. This one is kinda out there. I have asp.net code that will email my yahoo account a <img> like with image on the server. When I open it in yahoo I get the full image on screen. works...
7
by: fredo | last post by:
I've studied Eric Meyer's pure css popups, version two: http://meyerweb.com/eric/css/edge/popups/demo2.html which pops up an image when I roll over a text link. Now I want to pop up a large...
3
by: =?Utf-8?B?Q2hha3JhdmFydGh5?= | last post by:
Hi All, We are working in a web application and we wanted to capture the full webpage into an image file. FULL WEBPAGE means, the page which is below the visibility of the screen and you need...
1
by: Oelie | last post by:
Hello, I'm trying to make a photo slide show in VB6. I'm trying to get the right size for my pictures, they have to fill up the screen entirely. It works with the first picture. But when a picture...
0
by: Bowen | last post by:
Hey I have a simple image load written in Python. Here is a link to the pastebin http://pastebin.com/m490093b3 I am having a problem when loading the full screen images, it is displaying a...
2
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help...
0
by: Hetal | last post by:
We recently upgraded to VS 2008 and for some reason, the environment does not show "Start Page" in full screen mode even when setting in Environment -Startup is set to "Show Start Page". It does...
0
by: mykeaster | last post by:
In .NET Forms you could Dock a control to an edge of it's parent container. However there does not seem to be anything like this in WPF. Right now I am writing an app that needs to run Full-Screen,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.