473,671 Members | 2,557 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 1175
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
4425
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
5805
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
13369
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
9442
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
1069
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
2461
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
1508
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
1490
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
3900
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
8483
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
8927
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8825
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...
0
8676
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7445
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...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
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
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.