473,320 Members | 1,951 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,320 software developers and data experts.

Image Property (ImageEditor)

Salaam To All,

I created a custom control using Vb.net, and it contains an Image Property
it works half ok, it lets you select an image, but my problem is: if I want to delete my selection and set the property back to {(none)} it wont let you.

(Note: I want it to work like the Image Property of PictureBox Control)

here is my code:
private m_imgLogo as Image
Jul 21 '05 #1
1 1604
Hi Amer,

Is there a reason you did not ask this in the newsgroups?
microsoft.public.dotnet.languages.vb
or
microsoft.public.dotnet.languages.vb.controls
or
microsoft.public.dotnet.framework.drawing

Cor

I created a custom control using Vb.net, and it contains an Image Property
it works half ok, it lets you select an image, but my problem is: if I want to delete my selection and set the property back to {(none)} it wont
let you.
(Note: I want it to work like the Image Property of PictureBox Control)

here is my code:
private m_imgLogo as Image
.
.
public Property Logo() as Image
Get
return m_imgLogo
End Get
Set (Value as Image)
m_imgLogo = Value
End Set
End Property

Jul 21 '05 #2

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

Similar topics

2
by: Chris Dunaway | last post by:
I am using the PropertyGrid and I have set the SelectedObject property to an instance of my custom class. One of the properties of the custom class is a bitmap. The PropertyGrid lets me assign...
3
by: ralphNOSPAM | last post by:
I need to do some PHP CLI editing on some images - anyone recommend a class php image editing tool? I need non-GUI, in other words, to run from the PHP CLI. Thanks...
1
by: Adam Dockter | last post by:
I am trying to create image property that will work in the designer. I want the image to be written to the resource file for the class. Here is what I have so far, but I am running into a wall...
2
by: Luis Arvayo | last post by:
Is there some way to attach an editor to a property of a class at runtime ? Ex.; public class MyClass { public int BitmapIndex
1
by: Amer Kheir via .NET 247 | last post by:
Salaam To All, I created a custom control using Vb.net, and it contains an Image Property it works half ok, it lets you select an image, but my problem is: if I want to delete my selection and...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
2
by: Marc Solé | last post by:
Hello, I want to insert an image to a specific column of a dataGridWiew. I explain what I'm doing: - I define the ColumnType as a DataGridViewImageColumn. - I select the image (an icon of...
9
by: Eric | last post by:
Hi Everyone, I'm writing a UserControl that exposes a property of the type System.Drawing.Image, like this: Public Property DefaultImage() As Image Get Return propDefaultImage End Get...
3
by: Froefel | last post by:
Hi group, I'm looking for some help on how to achieve the following in a gridview control that is based on an ObjectDataSource. The SelectMethod of the datasource returns a list of Customer...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.