7 1312
Michael,
The control class is the base class of all controls including forms.
This property you find in all controls.(becau se the inherit from it)
Therefore you can do not have to cast to individual controls when you have
by instance an event that is for all controls.
Than you can do.
directcast(send er,control).bac kgroundimage = image.imagefrom file("blabla")
Watch that this is for a windowform control and not a web.ui.control
I hope this helps?
Cor
"Michael Turner" <fi*****@m-turner.co.uk> schreef in bericht
news:Oh******** ******@TK2MSFTN GP09.phx.gbl... Anyone know how to make use of this? http://msdn.microsoft.com/library/de...ImageTopic.asp I cant seem to work out what to do.
Thanks Mike.
* "Michael Turner" <fi*****@m-turner.co.uk> scripsit: Anyone know how to make use of this? http://msdn.microsoft.com/library/de...ImageTopic.asp
I cant seem to work out what to do.
What doesn't work? Are you trying to assign a background image to a
control? Notice that all controls inherit this property, but some
controls do not implement it, so setting the background image doesn't
cause an image to be displayed in the background for all controls.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Herfried,
I was looking for a text, I think you found the right one. I added an extra
sentence for it. Notice that all controls inherit this property, but some controls do not implement it, so setting the background image doesn't cause an image to be displayed in the background for all controls.
What is for more properties which are inherited, while some properties are
in some controls overidden, by instance Text.
Cor
I am trying to change the gackground image of a DataGrid and was pointed to
this article by MSDN, I have tried what you suggested but the background
image still does not appear.
"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. Michael,
The control class is the base class of all controls including forms.
This property you find in all controls.(becau se the inherit from it)
Therefore you can do not have to cast to individual controls when you have by instance an event that is for all controls.
Than you can do. directcast(send er,control).bac kgroundimage = image.imagefrom file("blabla")
Watch that this is for a windowform control and not a web.ui.control
I hope this helps?
Cor "Michael Turner" <fi*****@m-turner.co.uk> schreef in bericht news:Oh******** ******@TK2MSFTN GP09.phx.gbl... Anyone know how to make use of this? http://msdn.microsoft.com/library/de...ImageTopic.asp I cant seem to work out what to do.
Thanks Mike.
Michael,
See the text Herfried, added and to what I again addes something.
What you try to do is nothing the way, when you cannot do it using the
datagrid itself, you cannot do it using the class it derives it from.
It is an overridable property so you can do your own code, however I did not
see a sample on Google for that, what is mostly when it is easy.
Cor
Michael,
I cannot understand my own message, I was in a very hurry when I wrote it.
Here a corrected text.
----------------------------------------
See the text that Herfried has added and to what I again added something.
It is an overridable property so you can do your own code in your own
inherrited datagrid class, however I did not see any sample on Google for
that, what is mostly when it is easy.
Cor
* "Michael Turner" <fi*****@m-turner.co.uk> scripsit: I am trying to change the gackground image of a DataGrid and was pointed to this article by MSDN, I have tried what you suggested but the background image still does not appear.
Do you have the URL of this article at hand?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: coolsti |
last post by:
I need some help here. I am making an application which allows a user to
look at a series of picture files one at a time, and enter the outcome of
various visual tests to a database. The application is based on mysql and
php on a remote server, and is accessed by the user via a web browser,
primarilly IE.
The image file names are built up by the server side php scripts, and so a
URL for the image file is created, but the file itself is...
|
by: proximus |
last post by:
Hi,
I am trying to change the background of table TD's. The problem is that
I have no access to the HTML code. SO I am trying to alter this using
Javascript/DOM in an external .js file.
I have tried lot's of things and spent hours on this, I thought I might
give it a try here. One of the TD's uses HTML to set the background,
the other one uses CSS styling:
|
by: Brian |
last post by:
NOTE ALSO POSTED IN
microsoft.public.dotnet.framework.aspnet.buildingcontrols
I have solved most of my Server Control Collection property issues.
I wrote an HTML page that describes all of the problems that I have
encountered to date and the solutions (if any) that I found.
http://users.adelphia.net/~brianpclab/ServerControlCollectionIssues.htm
This page also has all of the source code in a compressed file that you are
free to download...
|
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
|
by: SStory |
last post by:
I have a picturebox in my About form.
would like to have a link to my company website. Wanted the links
background to be transparent.
It seems that no one knows how to do this.
Have asked many times. VB help says that transparent is possible with a
background image but not above a control. So how can I provide a link (URL)
that is clickable, but transparent, over the picturebox in my about box?
| |
by: M West |
last post by:
hello,
currently trying to write a custom control that will display an image in
true transparent form, e.g. can actually see the background images placed
behind the control rather than the background graphic held on the form.
Have produced a region which will hold the outline of an image that will be
displayed as transparent, e.g. irregular. So far, this region can only be
applied to forms (will produce Media Player type skins.), is...
|
by: Mike |
last post by:
Hi,
I am strugling with a simple problem which I can't seem to resolve.
I have an asp.net page which contains a server-control (flytreeview,
which is a kind
of a tree to be exact).
The tree is being updated by some other process through remoting.
When the page loads, I init the tree, and in my browser I can see the
initialized tree.
The problem is that every time that I receive update to tree from the
remote process,
|
by: aledrjones |
last post by:
Hi
I've got a c# application that will often run in the background as it
is used to monitor connections to a host.
An activex control displays the communication between the app and the
host. When the host disconnects the app, I want to take a screen shot
of the active x control.
Two methods I've tried have worked, one using key commands to trigger a
|
by: senfo |
last post by:
I developed a Windows control in VS 2005 that inherits from the
PictureBox Control that adds the ability to select images in a Windows
application. It is, however, experiencing a strange issue that I can't
explain. One of the desired affects was to provide the ability to
change the background color on images that were selected, as well as
setting the background color back to its original color after the image
had been deselected.
To...
|
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: 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...
|
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...
|
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...
|
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...
|
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.
| |