Hi,
I'm coming back on the ListView component that i would like to design.
I finally finish to analyse how it should work (on paper).
So i have properties, methods and events that i should implement.
I found several points that must base component respects to implement it.
- it should implement a canvas/GDI to allow drawing (to allow
transparency, borders, headers, alignment, colors,...)
- it should allow containers in order to implement in each cell a child
component (i.e : progressbar, spin box, editbox,..)
- it should allow drag and drop methods and also fire event when
resizing columns, rows, headers,...
- it should also allow multi type columns (to display progress bar, spin
edit, images,...)
- it should allow customized headers
As someone advise me before, Panel seems to be good choice for that, but
i would like to know before to start to code, if there is not another
base component on which i can base my custom control (as base component)
? maybe a better one thant Panel control.
thanks a lot for your contribution. I do not want to start to code and
to realize after that i should start from another base control or class.
It would be crazy to waste coding time.
Al. 1 3446
Since Panel already support a border (BorderStyle) it is a good choice.
Alternatives are Control or UserControl. You will find a lot of text
material on that topic in the MSDN library (related to
Control/UserControl).
--== Alain ==-- schrieb:
Hi,
I'm coming back on the ListView component that i would like to design.
I finally finish to analyse how it should work (on paper).
So i have properties, methods and events that i should implement.
I found several points that must base component respects to implement it.
- it should implement a canvas/GDI to allow drawing (to allow
transparency, borders, headers, alignment, colors,...)
- it should allow containers in order to implement in each cell a child
component (i.e : progressbar, spin box, editbox,..)
- it should allow drag and drop methods and also fire event when
resizing columns, rows, headers,...
- it should also allow multi type columns (to display progress bar, spin
edit, images,...)
- it should allow customized headers
As someone advise me before, Panel seems to be good choice for that, but
i would like to know before to start to code, if there is not another
base component on which i can base my custom control (as base component)
? maybe a better one thant Panel control.
thanks a lot for your contribution. I do not want to start to code and
to realize after that i should start from another base control or class.
It would be crazy to waste coding time.
Al.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Simon Middlemiss |
last post by:
I am writting a program to manage DTS packages which is based on the code
example at the following link
http:\\www.support.microsoft.com/?kbid=319985.
I need to do things in a Windows Forms Application when various things occur
in the package so I have written some custom events to reraise the events
caught in the PackageEventsSink class.
I also have a listview in details mode with several columns, my problem is
that when I try and...
|
by: sorpor |
last post by:
I am trying to create a custom listviewsorter by implementing IComparer. My
listview has check boxes and the purpose is to move checked item to top of
list. They all will be sorted ascendingly. It throws error "-1 is not a
valid index" when the sorting is done with listview. I have no problem using
the same custom sorter for an arraylist of listviewitems. A bug in listview
control? Any suggestion?
Thanks,
-sorpor
|
by: Jeff |
last post by:
I've made a custom Listview control, and i want this
control to use a custom ColumnHeader control that I've
created. how can i do this
thanks
|
by: ToddH |
last post by:
I know the following code is C#. I'm a vb programmer trying to learn a new language. I posted this in the c# group but never got a response. You guys seem to know alot about all languages and have all the answers, so here it is..
I'm trying to create a custom listview that uses custom listviewitems. The listviewitems persist just fine in design mode. However, when I build the solution, the listview item doesn't show up. I've run some tests,...
|
by: lewisjosh2 |
last post by:
I'm a newbie to windows forms and I'm having trouble finding any
information about how to create a custom listview.
In my app, I'm using a 'large icon' view and basically what I want to
do is:
1. Change the color/look of the highlighting of items (I don't want it
shading the image...just want a border rectangle)
2. Set the number of 'icons' per row, other than just resizing the
| |
by: Piotr Strycharz |
last post by:
Hi,
I need to develop a custom control. The control is going to be something
like Properties window in VS - listview (grid?) with resizable columns and
collapsable sections.
The control needs to be read-only, so I do not need embeded text/listboxes,
but I need pictures and some more features. So I started to extend ListView
control. First I tried to do custom item selection (pseudo-code):
ListView:
|
by: =?Utf-8?B?YnJhaW5mdWVsbWVkaWE=?= |
last post by:
Can anyone point me in the direction of creating a custom listview item? I
guess the other question then - is this possible? I want to create a list of
listview items comprised each comprised of text and a set of textboxes.
|
by: a |
last post by:
Hi
I would like to add some additional custom features to the listview, like
cell editing. The created object will be added to the form as part of the
GUI, and it should be able to handle events.
I will create a class which conains the listview. Should I inherit this
class from any existing class? If yes, which class should I inherit from?
Or, should I just inherit my class from listview and add my add my
additional features?
|
by: Mark Olbert |
last post by:
How do I get the DataPager and ListView to play nice together when I use a custom datasource?
In my webpage, I use linq to pull data from a SqlServer database and assign the resulting IEnumerable<to the ListView's Datasource
property. This all works fine to display the first 3 items (the DataPager is set to display three items at a time), but when I click
on the next page in the DataPager...nothing happens. There's a roundtrip to the...
|
by: =?Utf-8?B?Q2hhcmxlcw==?= |
last post by:
I'm running VS2008 & attempting to solve a problem I've encountered while
developing some software for our business.
Here's the basic idea...I've created a class that represents a file (with
members such as file name, file location, and a string containing the files
data). Each file object also contains an ArrayList of another custom object
I've created--a field object (which is basically two fields--field name &
field data). These...
|
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: 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,...
|
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: 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.
|
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...
| |