473,549 Members | 2,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To show image in full screen

10 New Member
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 5644
tlhintoq
3,525 Recognized Expert Specialist
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
3461
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 appeared on my news server, so I'm trying again - this time posting a separate copy of the message to each group. I'm thinking this should be...
11
16465
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: 200px; max-height: 200px;"/> but it doesn't keep the ratio - <div style="width: 200px; height: 200px;"><img src="toto.jpg/></div> but the image flow...
3
1701
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 great. Any way to create an image (in asp.net on the server) of full web page - text and all. Currently I have dynamic on top of that image and can
7
27477
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 image when I roll over a thumbnail. I've tried some things, but can't make it work. See here (Warning: adult matter):
3
3518
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 to scroll down the page. Am trying with GetActiveWindow MFC to gethold of the currnet window, but could only read the visible area(length X width...
1
5965
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 has another resolution it gets the same shape as the picture that was showed before. I've got this so far: Private Sub Form_Load() ...
0
1434
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 gray line at the bottom of the image as can be seen in this screen shot http://www.xiano.co.uk/image_load.png I suspect its some sort of buffering...
2
20886
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 would be appreciated. I've been trying numerous ways to resize images, as I want to make store thumbnails, not full images in my database. ...
0
1645
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 show Start Page in normal mode but not in full screen mode. Does anyone happen to notice similar issue and able to fix it? Thanks, Hetal.
0
1765
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, but the main Image I am trying to use is not resizing with the rest of the window when I put it in Full-Screen Mode. This Image is incredibly large...
0
7521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7959
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7473
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7810
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.