Click here to Skip to main content
15,879,844 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Graphs Pin
Christian Graus27-Mar-08 16:17
protectorChristian Graus27-Mar-08 16:17 
GeneralRe: Graphs Pin
jzonthemtn28-Mar-08 2:11
jzonthemtn28-Mar-08 2:11 
QuestionIs it possible to and edit an excel file from Visual Basic 2005? Pin
Graham Latto27-Mar-08 8:52
Graham Latto27-Mar-08 8:52 
AnswerRe: Is it possible to and edit an excel file from Visual Basic 2005? Pin
Justin Porteous27-Mar-08 9:33
Justin Porteous27-Mar-08 9:33 
GeneralRe: Is it possible to and edit an excel file from Visual Basic 2005? Pin
Justin Porteous27-Mar-08 9:35
Justin Porteous27-Mar-08 9:35 
GeneralRe: Is it possible to and edit an excel file from Visual Basic 2005? Pin
Graham Latto27-Mar-08 9:53
Graham Latto27-Mar-08 9:53 
GeneralRe: Is it possible to and edit an excel file from Visual Basic 2005? Pin
Paul Conrad27-Mar-08 12:28
professionalPaul Conrad27-Mar-08 12:28 
GeneralProblems with ListView Group showing in an MDI application Pin
Faruk Ansari27-Mar-08 8:27
Faruk Ansari27-Mar-08 8:27 
I created an SDI application with one form and one ListView control and loaded the data, showing by Groups, here is the code:

Me.ListView1.BeginUpdate()

With Me.ListView1
.View = View.Details
.Items.Clear()
.Columns.Clear()
.MultiSelect = False
.FullRowSelect = True
.GridLines = True
.ShowGroups = True
End With

If Me.ListView1.Columns.Count = 0 Then
Me.ListView1.Columns.Add("Request", 100, HorizontalAlignment.Left)
Me.ListView1.Columns.Add("Description", 200, HorizontalAlignment.Left)
Me.ListView1.Columns.Add("Date", 75, HorizontalAlignment.Center)
Me.ListView1.Columns.Add("Approver", 100, HorizontalAlignment.Left)
Me.ListView1.Columns.Add("Status", 100, HorizontalAlignment.Left)
End If

While (Reader.Read)
dt = CDate(Reader("RequestDate"))
ReqDate = String.Format("{0Big Grin | :-D }", dt)

Me.ListView1.Groups.Add(Reader("RequestedBy"), Reader("RequestedBy"))

Dim listItem As New ListViewItem(Reader("RequestNumber").ToString)
listItem.Group = Me.ListView1.Groups(Reader("RequestedBy").ToString)
listItem.SubItems.Add(Reader("OrderDescription").ToString)
listItem.SubItems.Add(ReqDate)
listItem.SubItems.Add(Reader("NextApprover").ToString)
listItem.SubItems.Add(Reader("StatusDescription").ToString)

Me.ListView1.Items.Add(listItem)
End While

Me.ListView1.EndUpdate()

The results were as expected, but when I added this form to my MDI app, where it is supposed to be used, it does not display the groups, but the rest of the column data is displayed fine. I have tried everything I knew off but no luck.

I will greatly appreciate if someone could offer any suggestions. Thanks.
GeneralRe: Problems with ListView Group showing in an MDI application Pin
Dave Kreskowiak28-Mar-08 4:15
mveDave Kreskowiak28-Mar-08 4:15 
GeneralRe: Problems with ListView Group showing in an MDI application Pin
Faruk Ansari28-Mar-08 5:07
Faruk Ansari28-Mar-08 5:07 
GeneralRe: Problems with ListView Group showing in an MDI application Pin
Dave Kreskowiak28-Mar-08 5:19
mveDave Kreskowiak28-Mar-08 5:19 
QuestionSave image from WebBrowser Control Pin
Justin Porteous27-Mar-08 8:08
Justin Porteous27-Mar-08 8:08 
GeneralRe: Save image from WebBrowser Control Pin
jzonthemtn28-Mar-08 2:18
jzonthemtn28-Mar-08 2:18 
GeneralRe: Save image from WebBrowser Control Pin
Justin Porteous28-Mar-08 4:10
Justin Porteous28-Mar-08 4:10 
GeneralRe: Save image from WebBrowser Control Pin
Justin Porteous28-Mar-08 4:14
Justin Porteous28-Mar-08 4:14 
GeneralRead File Content and Store it in string Line by Line Pin
aaraaayen27-Mar-08 3:54
aaraaayen27-Mar-08 3:54 
GeneralRe: Read File Content and Store it in string Line by Line Pin
Xmen Real 27-Mar-08 6:42
professional Xmen Real 27-Mar-08 6:42 
AnswerRe: Read File Content and Store it in string Line by Line Pin
Justin Porteous27-Mar-08 8:17
Justin Porteous27-Mar-08 8:17 
QuestionDataTable problem Pin
siddy1727-Mar-08 1:42
siddy1727-Mar-08 1:42 
GeneralRe: DataTable problem Pin
nlarson1127-Mar-08 2:21
nlarson1127-Mar-08 2:21 
GeneralRe: DataTable problem Pin
Eduard Keilholz27-Mar-08 2:24
Eduard Keilholz27-Mar-08 2:24 
GeneralRe: DataTable problem Pin
siddy1728-Mar-08 5:36
siddy1728-Mar-08 5:36 
GeneralRe: DataTable problem Pin
Dave Kreskowiak28-Mar-08 6:11
mveDave Kreskowiak28-Mar-08 6:11 
GeneralRe: DataTable problem Pin
siddy1728-Mar-08 19:14
siddy1728-Mar-08 19:14 
GeneralRe: DataTable problem Pin
Dave Kreskowiak29-Mar-08 17:55
mveDave Kreskowiak29-Mar-08 17:55 

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.