Click here to Skip to main content
16,004,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Questions with building value finder for an Oracle database Pin
Ken Haley7-May-05 4:01
Ken Haley7-May-05 4:01 
GeneralRe: Questions with building value finder for an Oracle database Pin
JoeContreras7-May-05 15:57
JoeContreras7-May-05 15:57 
Generalbackground image in treeview/listview Pin
Rizwan Bashir6-May-05 1:27
Rizwan Bashir6-May-05 1:27 
GeneralRe: background image in treeview/listview Pin
Dave Kreskowiak6-May-05 5:27
mveDave Kreskowiak6-May-05 5:27 
GeneralSend Mail in VB.NET Pin
Mahesh16796-May-05 0:51
Mahesh16796-May-05 0:51 
GeneralRe: Send Mail in VB.NET Pin
Dave Kreskowiak6-May-05 5:03
mveDave Kreskowiak6-May-05 5:03 
GeneralRe: Send Mail in VB.NET Pin
Mahesh16798-May-05 16:55
Mahesh16798-May-05 16:55 
GeneralCustomising Flat ListBox Pin
Jason Stamp5-May-05 22:57
Jason Stamp5-May-05 22:57 
I have a VB.NET windows application where I want flat controls with a custom colour border.

To achieve this I am creating a control library to override the standard controls, like TextBox and ListBox.

I have created the desired TextBox that I want by Overriding the WndProc and catching the &HF message. I can then draw a rectangle around the perimeter of the control using whatever colour pen I choose. I only do this drawing if the TextBox border style has been set to fixed single, then provide a custom property to set the desired border colour to draw over it with.

The problem I have is doing the same with the ListBox, if the border style is set to fixed single, when I draw round the perimeter of the control, it draws within the border, which means I always see the outer black one. I can get the desired effect by setting the ListBox's boder style to none, as it then draws the perimeter inside the control and looks like the border. The problem is then when I select an item in the ListBox, and the selected item draws over the custom border. Is there anyway of drawing over the fixed single black border, or do I have to continue using border style none and redraw the border every time after draw item has happened to put it back again?

Any help on this matter would be appreciated.

Jason
GeneralRe: Customising Flat ListBox Pin
Rizwan Bashir6-May-05 21:25
Rizwan Bashir6-May-05 21:25 
Generalget data from Oracle Database ! Pin
lucdt5-May-05 22:17
lucdt5-May-05 22:17 
GeneralRe: get data from Oracle Database ! Pin
JoeContreras6-May-05 2:26
JoeContreras6-May-05 2:26 
GeneralRe: get data from Oracle Database ! Pin
Dave Kreskowiak6-May-05 4:52
mveDave Kreskowiak6-May-05 4:52 
GeneralRe: get data from Oracle Database ! Pin
JoeContreras6-May-05 13:14
JoeContreras6-May-05 13:14 
GeneralRe: get data from Oracle Database ! Pin
Anonymous6-May-05 2:58
Anonymous6-May-05 2:58 
Generalumm i made a office attendace program Pin
Member 19402875-May-05 20:11
Member 19402875-May-05 20:11 
GeneralRe: umm i made a office attendace program Pin
Dave Kreskowiak6-May-05 4:39
mveDave Kreskowiak6-May-05 4:39 
GeneralRe: umm i made a office attendace program Pin
Dave Kreskowiak6-May-05 4:47
mveDave Kreskowiak6-May-05 4:47 
Generaldirectx in VB 6.0 Pin
timothyl5-May-05 20:10
timothyl5-May-05 20:10 
GeneralRe: directx in VB 6.0 Pin
Dave Kreskowiak6-May-05 4:48
mveDave Kreskowiak6-May-05 4:48 
GeneralParameterised query for Crystal Report in VB.Net Pin
lakshmi_viji5-May-05 19:15
lakshmi_viji5-May-05 19:15 
GeneralRe: Parameterised query for Crystal Report in VB.Net Pin
Joey Picerno6-May-05 3:43
Joey Picerno6-May-05 3:43 
Generalcreating databse Pin
muktajoshi_105-May-05 18:13
muktajoshi_105-May-05 18:13 
GeneralRe: creating databse Pin
Dan_P6-May-05 1:34
Dan_P6-May-05 1:34 
Generalsocket programming Pin
muktajoshi_105-May-05 18:10
muktajoshi_105-May-05 18:10 
GeneralTab page not arrange as design in vb.net 2003 Pin
Mekong River5-May-05 16:27
Mekong River5-May-05 16:27 

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.