Click here to Skip to main content
15,923,164 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Draw a GPS map Pin
Wafdof2-Jul-08 7:15
Wafdof2-Jul-08 7:15 
GeneralRe: Draw a GPS map Pin
nishkarsh_k3-Mar-08 16:36
nishkarsh_k3-Mar-08 16:36 
QuestionValidating User Input Pin
IvanIT2-Mar-08 13:28
IvanIT2-Mar-08 13:28 
GeneralRe: Validating User Input Pin
User 2710092-Mar-08 14:44
User 2710092-Mar-08 14:44 
GeneralRe: Validating User Input Pin
IvanIT3-Mar-08 5:16
IvanIT3-Mar-08 5:16 
Questioncreate MS access DB from VB Pin
mesho2-Mar-08 11:55
mesho2-Mar-08 11:55 
GeneralRe: create MS access DB from VB Pin
Dave Kreskowiak3-Mar-08 9:12
mveDave Kreskowiak3-Mar-08 9:12 
Generaldrawicon to listview Pin
benjj2-Mar-08 11:49
benjj2-Mar-08 11:49 
Hi There
I have an ownerdrawn listview that is drawing the text in listview1_drawsubitems just fine. My problem is I want to draw an icon in the listview1_drawitem (the first column.)
I am using the code below to add text to the listview (along with icons from an imagelistSmile | :)

If x=2<br />
  Dim myItems As New ListViewItem("", 0)'0 is the first omage in the imagelist<br />
  listview1.Items.Add(myItems)<br />
  myItems.SubItems.Add(firstname)<br />
  myItems.SubItems.Add(lastname)<br />
End If


And I want to use this code to draw the different icons in the different rows of the first column:

Public Sub myDrawIcon(ByVal e As PaintEventArgs)<br />
<br />
        Dim newIcon As New Icon("sample.ico")<br />
         Dim rect As New Rectangle(0, 0, 16, 16)<br />
          e.Graphics.DrawIcon(newIcon, rect)<br />
End Sub


And I do not know how. I do not know what to pass as an agrument to the mydrawincon sub to draw icons instead of text in the first column.
The icons do not have to come from the imagelist I can do away with the imagelist and get the icons from my resources if need be.
Any help....Please
Thanks
GeneralRe: drawicon to listview Pin
John_Adams3-Mar-08 0:57
John_Adams3-Mar-08 0:57 
GeneralSetup project in VIsaul Studio Pin
highjo2-Mar-08 11:27
highjo2-Mar-08 11:27 
GeneralRe: Setup project in VIsaul Studio Pin
Dave Kreskowiak3-Mar-08 4:09
mveDave Kreskowiak3-Mar-08 4:09 
GeneralRe: Setup project in VIsaul Studio Pin
highjo3-Mar-08 5:54
highjo3-Mar-08 5:54 
QuestionWhy do I sometimes get OleDb.OleDbException or ConstraintException for the same operation? Pin
David Mujica2-Mar-08 9:24
David Mujica2-Mar-08 9:24 
AnswerRe: Why do I sometimes get OleDb.OleDbException or ConstraintException for the same operation? Pin
Dave Kreskowiak3-Mar-08 8:42
mveDave Kreskowiak3-Mar-08 8:42 
NewsNow I only get the ConstraintException error Pin
David Mujica4-Mar-08 3:49
David Mujica4-Mar-08 3:49 
GeneralExtracting Time Only From SQL EXPRESS Time UDT Using VB.NET Pin
AAGTHosting2-Mar-08 9:10
AAGTHosting2-Mar-08 9:10 
GeneralRe: Extracting Time Only From SQL EXPRESS Time UDT Using VB.NET Pin
pmarfleet2-Mar-08 9:22
pmarfleet2-Mar-08 9:22 
QuestionHow to disable Type inference for generic procedures ? Pin
Ky Nam2-Mar-08 6:25
Ky Nam2-Mar-08 6:25 
AnswerRe: How to disable Type inference for generic procedures ? Pin
Dave Kreskowiak3-Mar-08 4:03
mveDave Kreskowiak3-Mar-08 4:03 
GeneralHelp File Pin
parth.p2-Mar-08 1:00
parth.p2-Mar-08 1:00 
GeneralRe: Help File Pin
Smithers-Jones2-Mar-08 1:54
Smithers-Jones2-Mar-08 1:54 
GeneralRe: Help File Pin
parth.p2-Mar-08 3:29
parth.p2-Mar-08 3:29 
GeneralRe: Help File Pin
highjo3-Mar-08 6:24
highjo3-Mar-08 6:24 
GeneralRe: Help File Pin
parth.p3-Mar-08 6:48
parth.p3-Mar-08 6:48 
Questiondynamic crystal report - Withour DSN - back end ORACLE - vb 6.0? Pin
sejal_tank1-Mar-08 19:50
sejal_tank1-Mar-08 19:50 

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.