473,796 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I display an image in a panel

If I place a Panel into a TableCell how do I display an image in the panel?

Do I need to draw it in the Paint event or can I tell the Browser to do it?

Thanks
Jun 26 '07 #1
4 1184
Welcome to web applications!

There is no Paint event here, everything is the browser. You need to putt an
image control inside the panel and point it to the image on the server. The
browser will show it.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
" active" <ac********** @a-znet.comwrote in message
news:uS******** ******@TK2MSFTN GP04.phx.gbl...
If I place a Panel into a TableCell how do I display an image in the
panel?

Do I need to draw it in the Paint event or can I tell the Browser to do
it?

Thanks

Jun 26 '07 #2
I wanted to try putting it in the panel before I posted but did not know
how.
After you told me it could be done, how to do it became evident and it works
OK now.
Amazing what you can do if you know it can be done.
Thanks
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:OL******** ******@TK2MSFTN GP03.phx.gbl...
Welcome to web applications!

There is no Paint event here, everything is the browser. You need to putt
an image control inside the panel and point it to the image on the server.
The browser will show it.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
" active" <ac********** @a-znet.comwrote in message
news:uS******** ******@TK2MSFTN GP04.phx.gbl...
>If I place a Panel into a TableCell how do I display an image in the
panel?

Do I need to draw it in the Paint event or can I tell the Browser to do
it?

Thanks


Jun 26 '07 #3
After you told me it could be done, how to do it became evident and it
works OK now.
Amazing what you can do if you know it can be done.
Well... the buck stops here - "If you know it can be done", more
importantly, "if you know how it can be done". :-)
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Jun 26 '07 #4

"MasterGaur av (www.edujini-labs.com)" <ga************ *****@nospam.gm ail.com>
wrote in message news:eE******** ******@TK2MSFTN GP03.phx.gbl...
>After you told me it could be done, how to do it became evident and it
works OK now.
Amazing what you can do if you know it can be done.

Well... the buck stops here - "If you know it can be done", more
importantly, "if you know how it can be done". :-)
True, but before you told me it could be done I'd might quit looking before
I found out.
>

--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------


Jun 26 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4428
by: Asaf Dan | last post by:
Hi, I'm using a panel to show an image. The Image could be bigger or smaller than the panel. I want to show the pixel coordinates of the image on a label next to the panel. I'm using an event but i cant get to show the real image pixel's coordinates. I would appreciate any kind of help.
3
5809
by: Alberto | last post by:
I'm drawing an image in a panel control with this sentence in the Paint method: e.Graphics.DrawImageUnscaled(Image, panelImage.AutoScrollPosition); The problem is that I only want to paint a region of the image specified by a Rectangle object. I can do it with: e.Graphics.DrawImageUnscaled(Imagen, myRectangle);
3
13374
by: Alberto | last post by:
I'm trying to load an image in a PictureBox but I want the PictureBox has always the same size and if the image is bigger, show a scrollBars. How can I do it? Thank you
2
9466
by: Carl Gilbert | last post by:
Hi I am looking for either a component or technique to allow me to do the following: * Provide a panel with a background image * Resize the image to best fit the panel to maintain aspect ratio * Provide white (or other color) borders at the sides or the top/bottom The last point would be used to allow users to resize the panel to any ratio
0
1072
by: zxo102 | last post by:
Hi everyone, As shown in the code below (modified based on the Image.py in wxpython demo), an image is created at location 1: (50,10) with rotated angle 1.12. Now, suppose I got another set of new data, I want to move the image to location 2: (166,400) with rotated angle 1.5. case 1: if I use "wx.StaticBitmap(panel, -1, bmp2, (166, 400), (bmp2.GetWidth(), bmp2.GetHeight()))", everything is fine but I don't know how to delete the...
0
2470
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly over the screen or I drag another window on top of the fast display, I get errors (Pyassertion ....). I believe those are related to a conflict between the thread that is updating the buffer (over which I have control) and the thread that is doing the...
6
1513
by: Jerry West | last post by:
I'm a newbie to .NET from VB6. I have a Form with a Panel control on it. When the Form loads it maximizes and so does the Panel control. I then fill an array with the path to images at a specific folder. At that point a timer fires every x seconds which calls a routine that draws an image onto the Panel. This works great the first time the code runs. But each subsquent timer event fails to load a new image --it is always the same image...
3
1503
by: wongjoekmeu | last post by:
Dear All, I want to write a GUI program with wxPython displaying an image. But the image I have is monochromatic. When I retrieve the data from the image I end up with a list of integer. Starting from a list of integer and knowing the width and height of the image, how do I display such an image on a wx panel or frame ? I have had a look at the wxPython demo but there I see only images where the data is a list of tuple consisting of r,g...
4
3912
by: jeddiki | last post by:
Hi, I have been tinkering with this for a few hours now, but I just can not see why the left hand side column extends past my footer div. You can see what I mean here: http://www.expert-world.com/sp/problem1.jpg What I want is for the footer to be lower so that it includes all of the
0
9673
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10221
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.