Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
GeneralImage Rectify or Panorama algorithm Pin
pxp4-Feb-05 3:15
pxp4-Feb-05 3:15 
GeneralRe: Image Rectify or Panorama algorithm Pin
pxp6-Feb-05 23:15
pxp6-Feb-05 23:15 
QuestionHow can I controle by resource in C# Pin
students552 university4-Feb-05 2:51
students552 university4-Feb-05 2:51 
AnswerRe: How can I controle by resource in C# Pin
Judah Gabriel Himango4-Feb-05 6:38
sponsorJudah Gabriel Himango4-Feb-05 6:38 
GeneralListView grouping Pin
dpmIris4-Feb-05 2:49
dpmIris4-Feb-05 2:49 
GeneralRe: ListView grouping Pin
Heath Stewart4-Feb-05 6:07
protectorHeath Stewart4-Feb-05 6:07 
GeneralRe: ListView grouping Pin
dpmIris6-Feb-05 22:01
dpmIris6-Feb-05 22:01 
GeneralRe: ListView grouping Pin
Heath Stewart7-Feb-05 6:47
protectorHeath Stewart7-Feb-05 6:47 
The ListView in .NET 2.0 will support this, but for now you should read the documentation[^] for List-View controls - the Windows Common Control that the ListView class encapsulates. You can also only do this on Windows XP because it requires you to bind to the Common Controls 6 library, which is a Win32 side-by-side (SxS) assembly only for XP and above.

To bind to CC6 in .NET 1.0, read my article[^]. For .NET 1.1, you can do the following for your entry point method:
static void Main()
{
  Application.EnableVisualStyles(); // Available only in .NET 1.1 and later.
  Application.DoEvents(); // Necessary to fix problems with the call above.
  Application.Run(new Form1()); // The typical line to start the WinForm.
}
You then need to P/Invoke SendMessage and declare several structs, like the LVGROUP struct and LVITEM - as if _WIN32_IE were set to 0x560 or above (read the documentation I linked and you'll see what I mean) - in order to 1) define groups, and 2) put ListViewItems in a particular group. There's a lot to do, and knowledge about native Windows programming with the Common Controls is practically required.

For a decent article and sample code, see the article C# ListView 1.3[^] (a.k.a. "Glacial ListView").

For information on what's in the Whidbey (.NET 2.0) beta regarding this issue, see http://msdn2.microsoft.com/library/System.Windows.Forms.ListViewItem.Group[^].

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: ListView grouping Pin
Joel Lucsy4-Feb-05 9:51
Joel Lucsy4-Feb-05 9:51 
QuestionHow can I controle by resource in C# !!!! Pin
students552 university4-Feb-05 2:49
students552 university4-Feb-05 2:49 
AnswerRe: How can I controle by resource in C# !!!! Pin
Heath Stewart4-Feb-05 6:06
protectorHeath Stewart4-Feb-05 6:06 
GeneralUsing a View in SQL server and SqlCommandBuilder at the same time Pin
hajob4-Feb-05 2:13
hajob4-Feb-05 2:13 
GeneralRe: Using a View in SQL server and SqlCommandBuilder at the same time Pin
Heath Stewart4-Feb-05 6:02
protectorHeath Stewart4-Feb-05 6:02 
GeneralRe: Using a View in SQL server and SqlCommandBuilder at the same time Pin
Scott Serl4-Feb-05 8:25
Scott Serl4-Feb-05 8:25 
GeneralRe: Using a View in SQL server and SqlCommandBuilder at the same time Pin
hajob6-Feb-05 0:10
hajob6-Feb-05 0:10 
GeneralRe: Using a View in SQL server and SqlCommandBuilder at the same time Pin
Heath Stewart6-Feb-05 5:49
protectorHeath Stewart6-Feb-05 5:49 
GeneralRe: Using a View in SQL server and SqlCommandBuilder at the same time Pin
hajob6-Feb-05 22:41
hajob6-Feb-05 22:41 
GeneralMultiple Assemblies Pin
innocent734-Feb-05 1:52
innocent734-Feb-05 1:52 
GeneralRe: Multiple Assemblies Pin
SimonS4-Feb-05 2:11
SimonS4-Feb-05 2:11 
GeneralRe: Multiple Assemblies Pin
innocent734-Feb-05 2:35
innocent734-Feb-05 2:35 
GeneralRe: Multiple Assemblies Pin
Stefan Troschuetz4-Feb-05 3:15
Stefan Troschuetz4-Feb-05 3:15 
GeneralRe: Multiple Assemblies Pin
Heath Stewart4-Feb-05 5:57
protectorHeath Stewart4-Feb-05 5:57 
Questionhow to install a self made windows service on other machines.. Pin
just_starting4-Feb-05 1:47
just_starting4-Feb-05 1:47 
AnswerRe: how to install a self made windows service on other machines.. Pin
Esmo20004-Feb-05 4:28
Esmo20004-Feb-05 4:28 
GeneralRe: how to install a self made windows service on other machines.. Pin
Heath Stewart4-Feb-05 5:46
protectorHeath Stewart4-Feb-05 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.