Click here to Skip to main content
15,914,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Upper case the 1st letter of a word on the TextBox key press Pin
Robo1626-May-06 1:52
Robo1626-May-06 1:52 
QuestionEditable Datagrid with Permissions? Pin
Fedaykinn25-May-06 22:22
Fedaykinn25-May-06 22:22 
QuestionRight Click on datagrid Pin
microuser_200025-May-06 21:33
microuser_200025-May-06 21:33 
AnswerRe: Right Click on datagrid Pin
sathish s25-May-06 23:03
sathish s25-May-06 23:03 
Questionplease help me!! how to create MS access Databse and Table through VB 6.0 Pin
himuskanhere25-May-06 19:28
himuskanhere25-May-06 19:28 
AnswerRe: please help me!! how to create MS access Databse and Table through VB 6.0 [modified] Pin
Kschuler26-May-06 4:59
Kschuler26-May-06 4:59 
QuestionNeed help permanently maintaining the rectangle after a button click Pin
iamsupersuperman25-May-06 18:14
iamsupersuperman25-May-06 18:14 
AnswerRe: Need help permanently maintaining the rectangle after a button click Pin
arcticbrew25-May-06 18:46
arcticbrew25-May-06 18:46 
The UserControl will be redrawn by the OS when the form is refreshed or the control is invalidated.

Your method paints the rectangle when the button is clicked but, does not provide for repainting of the control when other events cause it to be invalidated. Placing additional code in the OnPaint event is the standard method for persisting the painting of a control

You can make your clicked event rectangle image persist by placing code in the Button1 OnPaint event that paints one image if the control has been clicked (selected) and a different image if it has not been clicked.

in OnPaint Event
If <Button1 is clicked> then
<draw clicked image>
else
<draw unclicked image>
end if


GeneralRe: Need help permanently maintaining the rectangle after a button click Pin
iamsupersuperman25-May-06 20:32
iamsupersuperman25-May-06 20:32 
GeneralRe: Need help permanently maintaining the rectangle after a button click Pin
arcticbrew27-May-06 10:29
arcticbrew27-May-06 10:29 
Questionbinding pictures to database Pin
kids1725-May-06 12:20
kids1725-May-06 12:20 
AnswerRe: binding pictures to database Pin
Mekong River25-May-06 16:01
Mekong River25-May-06 16:01 
AnswerRe: binding pictures to database Pin
Guerven25-May-06 21:08
Guerven25-May-06 21:08 
QuestionActive Directory Account for Querying... Pin
bighossman25-May-06 11:28
bighossman25-May-06 11:28 
Questioncan you tell me how to compare two DataTables ? [modified] Pin
Mohammed Amine25-May-06 11:20
Mohammed Amine25-May-06 11:20 
AnswerRe: can you tell me how to compare two DataTables ? [modified] Pin
Mekong River25-May-06 16:05
Mekong River25-May-06 16:05 
GeneralRe: can you tell me how to compare two DataTables ? [modified] Pin
Mohammed Amine26-May-06 0:21
Mohammed Amine26-May-06 0:21 
Questionview borders Pin
EddieHarary25-May-06 9:50
EddieHarary25-May-06 9:50 
AnswerRe: view borders Pin
Cliff Wellman25-May-06 11:01
Cliff Wellman25-May-06 11:01 
QuestionUsing Oracle Bind Variables in VB 6 [modified] Pin
Cliff Wellman25-May-06 8:28
Cliff Wellman25-May-06 8:28 
QuestionFOR TO NEXT - LOOP Question Pin
huertj25-May-06 4:46
huertj25-May-06 4:46 
AnswerRe: FOR TO NEXT - LOOP Question Pin
Guffa25-May-06 5:25
Guffa25-May-06 5:25 
AnswerRe: FOR TO NEXT - LOOP Question Pin
arcticbrew25-May-06 7:16
arcticbrew25-May-06 7:16 
AnswerRe: FOR TO NEXT - LOOP Question Pin
huertj26-May-06 4:41
huertj26-May-06 4:41 
QuestionMMC - OCX Page Alignment Pin
YemShivaKumar25-May-06 4:18
YemShivaKumar25-May-06 4:18 

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.