Click here to Skip to main content
15,916,693 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: USB Card Reader. How to read data from usb into string? Pin
Dave Kreskowiak23-Feb-05 6:33
mveDave Kreskowiak23-Feb-05 6:33 
GeneralTreeview Help Pin
RoedRunner23-Feb-05 3:56
RoedRunner23-Feb-05 3:56 
GeneralRe: Treeview Help Pin
Dave Kreskowiak23-Feb-05 4:49
mveDave Kreskowiak23-Feb-05 4:49 
GeneralRe: Treeview Help Pin
RoedRunner23-Feb-05 4:53
RoedRunner23-Feb-05 4:53 
GeneralRe: Treeview Help Pin
RoedRunner23-Feb-05 5:25
RoedRunner23-Feb-05 5:25 
GeneralRe: Treeview Help Pin
Dave Kreskowiak23-Feb-05 5:47
mveDave Kreskowiak23-Feb-05 5:47 
GeneralRe: Treeview Help Pin
RoedRunner23-Feb-05 7:20
RoedRunner23-Feb-05 7:20 
GeneralCustom ComboBox Problem Pin
Jason Stamp23-Feb-05 3:56
Jason Stamp23-Feb-05 3:56 
I am creating a custom control in VB.NET that inherits from System.Windows.Froms.ComboBox.

I am doing this so I can draw over the combo box to change it's appearance. To do the drawing I am overriding WndProc and capture the WM_PAINT message.

I can draw the background with no problems, but the problem is with the selected text, as the base class draws an edit box on top for this. When I want to set the enable property to false, the text and background is always grey. I need to be able to change the colour of this when disabled.

My other approach to this is to set a back color and not use the enabled property, but can't seem to override the OnClick event and cancel the event if another property is set to disable the control.

Any advice on this matter would be greatly appreciated.

Thanks

J
GeneralRe: Custom ComboBox Problem Pin
j45mw12-Mar-05 17:39
j45mw12-Mar-05 17:39 
GeneralDatagrind i win applications Pin
Member 31636123-Feb-05 2:33
Member 31636123-Feb-05 2:33 
GeneralRe: Datagrind i win applications Pin
Jim Matthews23-Feb-05 3:36
Jim Matthews23-Feb-05 3:36 
QuestionHow to print a grid Pin
pdcoope23-Feb-05 2:21
pdcoope23-Feb-05 2:21 
AnswerRe: How to print a grid Pin
Dave Kreskowiak23-Feb-05 4:18
mveDave Kreskowiak23-Feb-05 4:18 
GeneralRe: How to print a grid Pin
Anonymous23-Feb-05 7:05
Anonymous23-Feb-05 7:05 
AnswerRe: How to print a grid Pin
Just Greeky Creek23-Feb-05 4:35
Just Greeky Creek23-Feb-05 4:35 
GeneralRe: How to print a grid Pin
Anonymous23-Feb-05 7:06
Anonymous23-Feb-05 7:06 
GeneralAudio mute Pin
sneffe123-Feb-05 2:02
sneffe123-Feb-05 2:02 
GeneralRe: Audio mute Pin
Dave Kreskowiak23-Feb-05 4:08
mveDave Kreskowiak23-Feb-05 4:08 
GeneralPop up menu Pin
Anonymous23-Feb-05 1:34
Anonymous23-Feb-05 1:34 
GeneralRe: Pop up menu Pin
Dave Kreskowiak23-Feb-05 3:56
mveDave Kreskowiak23-Feb-05 3:56 
GeneralApp.config Pin
nitin_ion23-Feb-05 1:14
nitin_ion23-Feb-05 1:14 
GeneralRe: App.config Pin
Dave Kreskowiak23-Feb-05 3:30
mveDave Kreskowiak23-Feb-05 3:30 
QuestionHow can I access a class written in C++ in a VB project?? Pin
Logan from Singapore22-Feb-05 22:59
Logan from Singapore22-Feb-05 22:59 
AnswerRe: How can I access a class written in C++ in a VB project?? Pin
Dave Kreskowiak23-Feb-05 0:41
mveDave Kreskowiak23-Feb-05 0:41 
Generalproblems impleminting ListView.ListViewItemCollection.Contains Pin
ASDEF000122-Feb-05 19:36
ASDEF000122-Feb-05 19:36 

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.