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

Visual Basic

 
AnswerRe: boundries of a (picture) map Pin
nlarson1114-Dec-06 3:51
nlarson1114-Dec-06 3:51 
GeneralRe: boundries of a (picture) map Pin
charchabil0314-Dec-06 4:01
charchabil0314-Dec-06 4:01 
GeneralRe: boundries of a (picture) map Pin
charchabil0314-Dec-06 9:53
charchabil0314-Dec-06 9:53 
GeneralRe: boundries of a (picture) map Pin
Dave Kreskowiak14-Dec-06 10:09
mveDave Kreskowiak14-Dec-06 10:09 
GeneralRe: boundries of a (picture) map Pin
charchabil0315-Dec-06 6:22
charchabil0315-Dec-06 6:22 
GeneralRe: boundries of a (picture) map Pin
Dave Kreskowiak15-Dec-06 10:35
mveDave Kreskowiak15-Dec-06 10:35 
QuestionCreating one more button in the title bar Pin
gsrs14-Dec-06 2:36
gsrs14-Dec-06 2:36 
AnswerRe: Creating one more button in the title bar Pin
Dave Kreskowiak14-Dec-06 9:45
mveDave Kreskowiak14-Dec-06 9:45 
There is no support for this built into the .NET BCL. You'll have to create your own support for this from scratch.

Basically, you have to handle all the window messages releated to the non-client area of your form, including painting and non-client hit testing of mouse clicks to see if your button was clicked on. Overriding your form's WndProc method is how you accomplish this. Painting your button in the correct place and keeping it visible are NOT easy. You have to have an in-depth knowledge of how Windows works and window messages work and why. I haven't found any tutorial that explains this to beginners.

You can find an example of overriding WndProc here[^], but it doesn't go into any depth about what window messages you have to handle to pull off what you want to do.


Dave Kreskowiak
Microsoft MVP - Visual Basic


QuestionPopup Message Pin
Dayekh13-Dec-06 23:31
Dayekh13-Dec-06 23:31 
AnswerRe: Popup Message Pin
Christian Graus14-Dec-06 0:01
protectorChristian Graus14-Dec-06 0:01 
GeneralRe: Popup Message Pin
Dayekh14-Dec-06 0:10
Dayekh14-Dec-06 0:10 
Questionsending emails in vb without using outlook or sqlserver Pin
psiva198413-Dec-06 21:44
psiva198413-Dec-06 21:44 
AnswerRe: sending emails in vb without using outlook or sqlserver Pin
Christian Graus14-Dec-06 0:20
protectorChristian Graus14-Dec-06 0:20 
AnswerRe: sending emails in vb without using outlook or sqlserver Pin
nlarson1114-Dec-06 3:31
nlarson1114-Dec-06 3:31 
GeneralRe: sending emails in vb without using outlook or sqlserver Pin
psiva198414-Dec-06 17:56
psiva198414-Dec-06 17:56 
QuestionLogon form using windows services Pin
sezhian_vertical13-Dec-06 21:15
sezhian_vertical13-Dec-06 21:15 
AnswerRe: Logon form using windows services Pin
nlarson1114-Dec-06 3:37
nlarson1114-Dec-06 3:37 
AnswerRe: Logon form using windows services Pin
Dave Kreskowiak14-Dec-06 9:57
mveDave Kreskowiak14-Dec-06 9:57 
Questionvb-graph-gdi [modified] Pin
aamn113-Dec-06 18:52
aamn113-Dec-06 18:52 
AnswerRe: vb-graph-gdi Pin
Christian Graus14-Dec-06 0:25
protectorChristian Graus14-Dec-06 0:25 
Questionre: primary key Pin
rrrriiizz13-Dec-06 18:17
rrrriiizz13-Dec-06 18:17 
AnswerRe: re: primary key Pin
nlarson1114-Dec-06 3:44
nlarson1114-Dec-06 3:44 
Questionhow to detect that a process is being close by a task manager Pin
carl_sti13-Dec-06 17:35
carl_sti13-Dec-06 17:35 
AnswerRe: how to detect that a process is being close by a task manager Pin
Dave Kreskowiak14-Dec-06 10:03
mveDave Kreskowiak14-Dec-06 10:03 
AnswerRe: how to detect that a process is being close by a task manager Pin
Dave Kreskowiak16-Dec-06 4:02
mveDave Kreskowiak16-Dec-06 4:02 

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.