If I set property in my user control like this
/////////////////////////////////////
private Bitmap im;
public Bitmap IM
{
get
{
return im;
}
set
{
im= value;
}
}
/////////////////////////////////////
everything works fine, but if I set it like this:
/////////////////////////////////////
private Bitmap[] im;
public Bitmap[] IM
{
get
{
return im;
}
set
{
im= value;
}
}
/////////////////////////////////////
I'm getting error when i try to add new bitmap to collection trough property
window:
Parameter is not valid.
can someone help, I dont want to limit number of bitmaps to user and I dont
want to initialize them on control start.
Thank you. 2 1363
On Apr 29, 10:22*am, "dany" <d...@dany.comw rote:
*If I set property in my user control like this
/////////////////////////////////////
*private Bitmap im;
*public Bitmap IM
{
* * get
* * {
* * * * return im;
* * }
* * set
* * {
* * * * im= value;
* * }}
/////////////////////////////////////
everything works fine, but if I set it like this:
/////////////////////////////////////
*private Bitmap[] im;
*public Bitmap[] IM
{
* * get
* * {
* * * * return im;
* * }
* * set
* * {
* * * * im= value;
* * }}
/////////////////////////////////////
I'm getting error when i try to add new bitmap to collection trough property
window:
Parameter is not valid.
can someone help, I dont want to limit number of bitmaps to user and I dont
want to initialize them on control start.
Thank you.
Hi,
Can you give more details, what are you trying to do, what error are
you getting, etc
IIRC for a designable control you need to use ImageList, at least that
is what all other controls in the framework use
"Ignacio Machin ( .NET/ C# MVP )" <ig************ @gmail.comwrote in
message
news:83******** *************** ***********@59g 2000hsb.googleg roups.com...
On Apr 29, 10:22 am, "dany" <d...@dany.comw rote:
Hi,
Can you give more details, what are you trying to do, what error are
you getting, etc
IIRC for a designable control you need to use ImageList, at least that
is what all other controls in the framework use
-----------------------------
Hi,
I would like to have array of bitmaps or images for my control, which user
can set at desing time trough property window of my control. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Carl |
last post by:
In the application I'm writing, I'm modifying a windows bitmap using the
circle and line methods. Once the changes have been made, I would like to
save the bitmap with the changes. My problem is, after saving the bitmap I
find that the changes haven't been saved with the new file. Any help with
what I'm doing wrong? -Carl
|
by: charsh |
last post by:
Hi,
I using the code below to draw a text in a pictureBox1.
//Start---------------------------------------------------------------
private void button1_Click(object sender, System.EventArgs e)
{
Graphics g;
g = pictureBox1.CreateGraphics();
g.FillRectangle(Brushes.White,0,0,160,160);
|
by: BC |
last post by:
Hello,
We are creating an Office add-in. We are able to
display the add-in successfully. However, we followed
a sample program, and it displays a FaceID = 1044 (which
is not the bitmap of the button we want to display). We
want to display our own custom bitmap.
How do we display our own custom bitmap instead
of the bitmap associated with FaceID = 1044?
|
by: Sharon |
last post by:
I encountered a strange behavior when doing ‘new Bitmap’:
The following code works fine and the given bitmap file is shown on the
PictureBox (the m_DrawArea) in the correct bitmap sizes:
private Graphics m_gMapImg;
private Bitmap m_backroundImage;
private Bitmap MapImg;
private PictureBox m_DrawArea;
|
by: chuck |
last post by:
I load a bitmap using GDI+
now, I want to collect all the pixel values, (in RGB but
without the A component) onto a color array, say...
dim btmp1(,) as color
is there a method that can help me collect the pixel values
as quickly as possible (like one row at a time)?
what about setting (or changing) the pixel values back onto
the bitmap?
| |
by: Fir5tSight |
last post by:
Hi All,
I used the following code in C#:
using System.Drawing;
//blah blah blah
Bitmap bmp = new Bitmap();
|
by: Hamed |
last post by:
Have I posted the message to wrong newsgroup?
Or
Does the question is so much strage?
Would someone please kindly direct me to a true newsgroup or resource?
Best Regards
Hamed
|
by: =?Utf-8?B?QVRU?= |
last post by:
I have a bitmap of 100X100. On the load, the bitmap is created by a function
(createimage()). On my OnPaint, I draw the image back to the screen
(e.Graphics.DrawImage( bitmap, destrect)).
Now, I want to add a button. When user click on it, I want the bitmap shift
to the left by 10% and fill the new area with new information requested.
Here is the code I have in the button handler:
if (bitmap == null) return;
Graphics graphics =...
|
by: amyyoungblood |
last post by:
I am trying to plot my pushpins manually, but when I go to create the
bitmap, I get an error message. Has anyone gotten this message
before?
code:
MapImage mapImages = render.GetMap(mapSpec);
MapImage mi = new MapImage();
mi = mapImages;
Bitmap newBitmap = new Bitmap(800, 600);
|
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...
|
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...
| |
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...
|
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,...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |