473,408 Members | 2,813 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,408 software developers and data experts.

Clear content of a picture box

Maybe a stupid question, but I don't know how to do.

I have an application where I read information from a database and show it
on a form. It also includes a picture stored as BLOB. On the form I have a
clear button. When hitting the button als fields on the form may cleared.
Everything works fine, but I don't know how to clear the picture out of
picture.image.

Has anyone an sample in C# ?

Thanks
Uwe
Nov 17 '05 #1
2 18242
Hi,

Did you try to assign picture.Impage=null ?

If that will not work, you can try to initialize
Bitmap(width=1, height=1) with color of picture.BackColor.

HTH
Marcin
Maybe a stupid question, but I don't know how to do.

I have an application where I read information from a database and show it
on a form. It also includes a picture stored as BLOB. On the form I have a
clear button. When hitting the button als fields on the form may cleared.
Everything works fine, but I don't know how to clear the picture out of
picture.image.

Has anyone an sample in C# ?

Nov 17 '05 #2
Try setting the Image property to null.

--
Tim Wilson
..Net Compact Framework MVP

"Uwe Porsch" <Uwe Po****@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
Maybe a stupid question, but I don't know how to do.

I have an application where I read information from a database and show it
on a form. It also includes a picture stored as BLOB. On the form I have a
clear button. When hitting the button als fields on the form may cleared.
Everything works fine, but I don't know how to clear the picture out of
picture.image.

Has anyone an sample in C# ?

Thanks
Uwe

Nov 17 '05 #3

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

Similar topics

5
by: Joan | last post by:
I am creating a word document from an asp page. I have no problems actaully creating the document and creating some tables that have data in them. I am using Response.ContentType =...
7
by: mercurius_1 | last post by:
I am having a problem with content being wrapped down the page in Internet Explorer. This is the page in question, which I have validated: www.lynngoldstein.com When the browser window is...
4
by: Marty | last post by:
Hi, Can I animate the content of a picturebox? I mean, I have a static boat picture that I inserted in a picture box, and I would like to programmatically make some water wave around it. Is...
1
by: Husam | last post by:
Hi EveryBody: Is there any way by using Vb.Net 2003 to made an application that can Identify the content of any picture ? For example: If I have adult content picture can I made an...
16
by: Brian D | last post by:
I have a multiple select list that is created dynamically based on a previous selection on an asp page. The first thing I do is to clear the curent option list by ...
3
by: ffrugone | last post by:
I am creating a blog and I have a problem which seems fairly common: Within the content of the posts I sometimes have floated images. The comments bar that follows each post will not clear the...
2
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i took Microsoft's sample pictures and resized them with the Ofiice Picture Manager and put it on my web page and the pictures look great. however, when i take a digital photo of my own...
1
by: =?Utf-8?B?UEsgRmVycmljaw==?= | last post by:
Hi all, My first post to MSDN... I've recently started to get into VB.NET, having been a casual VB user for a few years. So far, it's going OK. I've managed to figure out how to draw lines on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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
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
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...
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
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,...

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.