473,750 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extend Listview

i need to change the fore and back colours of the headers of listview, as
well as put a icon in the header,

any snippet would be helpful, thank you
Nov 20 '05 #1
8 2106
I dont think you can put an ICON in the header in VB.NET. However, there is
another thread which tells you how to do it in C++. I dont know if this can
be ported somehow.

Look in the last four days or so.

Regards - OHM

Kovan A wrote:
i need to change the fore and back colours of the headers of
listview, as well as put a icon in the header,

any snippet would be helpful, thank you


Best Regards - OHMBest Regards - OHM On**********@BT Internet.Com
Nov 20 '05 #2
* "Kovan A" <ko***@isdusa.n et> scripsit:
i need to change the fore and back colours of the headers of listview, as
well as put a icon in the header,


See (complete thread):

<http://groups.google.c om/groups?selm=Omu y0HRuDHA.2060%4 0TK2MSFTNGP10.p hx.gbl>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
when adding chrw(&H25BC) or chrw(H25B2) all i get is a squre showing up and
not the arrow..

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OV******** *****@TK2MSFTNG P11.phx.gbl...
* "Kovan A" <ko***@isdusa.n et> scripsit:
i need to change the fore and back colours of the headers of listview, as well as put a icon in the header,
See (complete thread):

<http://groups.google.com/groups?selm...FTNGP10.phx.gb
l>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
* "Kovan A" <ko***@isdusa.n et> scripsit:
when adding chrw(&H25BC) or chrw(H25B2) all i get is a squre showing up and
not the arrow..


You will have to go into the C++ code I referenced in the thread
mentioned before.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
You have to change from the default Font of SanSerif (which does not support
Unicode) to one that does like Arial.
--
Joe Fallon

"Kovan A" <ko***@isdusa.n et> wrote in message
news:Og******** ******@TK2MSFTN GP11.phx.gbl...
when adding chrw(&H25BC) or chrw(H25B2) all i get is a squre showing up and not the arrow..

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OV******** *****@TK2MSFTNG P11.phx.gbl...
* "Kovan A" <ko***@isdusa.n et> scripsit:
i need to change the fore and back colours of the headers of listview, as well as put a icon in the header,
See (complete thread):

<http://groups.google.com/groups?selm...FTNGP10.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Nov 20 '05 #6
you system time/date is wrong

Kovan A wrote:
i need to change the fore and back colours of the headers of
listview, as well as put a icon in the header,

any snippet would be helpful, thank you


Regards - OHM# On**********@BT Internet.com
Nov 20 '05 #7
* "Joe Fallon" <jf******@nospa mtwcny.rr.com> scripsit:
You have to change from the default Font of SanSerif (which does not support
Unicode) to one that does like Arial.


IMO that's really ugly because it will be a non-standard UI.

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
* "Kovan A" <ko***@isdusa.n et> scripsit:
when adding chrw(&H25BC) or chrw(H25B2) all i get is a squre showing up and
not the arrow..


Did you change the font to "Arial"?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #9

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

Similar topics

6
2630
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i am populating listview with more than 200,000 items. It is too slow and tried virtual listview. But that doesnot allow me to add images in the listview. So now trying to list only the page user scrolls to.
0
489
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i am populating listview with more than 200,000 items. It is too slow and tried virtual listview. But that doesnot allow me to add images in the listview. So now trying to list only the page user scrolls to.
0
1313
by: Mathias Soeken | last post by:
Hallo, in a ListView (Details View) the scrollbar appears, if there a more items than space. if you scroll the vertical scrollbar down, you can see the last item in the last col of the ListView. is there a chance to have more extra space after the last item? thanks Mathias
0
2227
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add ("Col1",200,HorizontalAlignment.Left); listview.Columns.Add ("Col2",800,HorizontalAlignment.Left);
7
6448
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override ListView.Items.Add(), . I see that it is a virtual method so it should be easy to do. If anyone can help I would appreciate it greatly. I can do what I need to do in a different way this would just make everything significantly cleaner and eaasier...
7
15002
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The MyList data is resident in a dataset table. I'm stuck and can't choose either because. If I choose ListView as my control I don't understand how to programmatically get the data from the dataset table
2
1335
by: Al Reid | last post by:
I need to extend a couple of controls to add a few custom properties, methods, etc. What is the correct way to do this. My first attempt (inheriting the control and adding the properties and methods) seems to work. However, several times the IDE has lost the controls. BTW, I'm using VB2005. -- Al Reid "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so." --- Mark Twain
2
6831
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the form every thing works fine: checking items by code
4
4514
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea is that when clicking on the "Show details" button the ListView for the appropriate row binds in the codebehind and displays the detail data for the selected row. I did something similar with a gridview control previously, but want to be able to...
0
9002
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
8840
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9584
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
9399
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
9259
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
8266
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
6083
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();...
2
2811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2228
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.