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

Visual Basic

 
GeneralRe: Speech in VB Pin
quadrilateral19-Oct-09 17:21
quadrilateral19-Oct-09 17:21 
QuestionHow to retrieve parameters by using HTTP headers in vb.net Pin
arabicwind18-Oct-09 20:09
arabicwind18-Oct-09 20:09 
QuestionListview display problem Pin
Gagan.2018-Oct-09 18:11
Gagan.2018-Oct-09 18:11 
AnswerRe: Listview display problem Pin
Christian Graus18-Oct-09 21:55
protectorChristian Graus18-Oct-09 21:55 
QuestionSerial Code - continued Pin
offroaderdan18-Oct-09 3:11
offroaderdan18-Oct-09 3:11 
AnswerRe: Serial Code - continued Pin
Christian Graus18-Oct-09 14:43
protectorChristian Graus18-Oct-09 14:43 
GeneralRe: Serial Code - continued Pin
Luc Pattyn18-Oct-09 14:51
sitebuilderLuc Pattyn18-Oct-09 14:51 
GeneralRe: Serial Code - continued Pin
Christian Graus18-Oct-09 14:56
protectorChristian Graus18-Oct-09 14:56 
GeneralRe: Serial Code - continued Pin
Enver Maroshi18-Oct-09 23:51
Enver Maroshi18-Oct-09 23:51 
GeneralRe: Serial Code - continued Pin
offroaderdan19-Oct-09 0:26
offroaderdan19-Oct-09 0:26 
Questionsend email from excel through outlook web access Pin
jetgrageda18-Oct-09 1:00
jetgrageda18-Oct-09 1:00 
AnswerRe: send email from excel through outlook web access Pin
Dave Kreskowiak18-Oct-09 2:24
mveDave Kreskowiak18-Oct-09 2:24 
QuestionCheckBox column in DataGridView Pin
ivo7518-Oct-09 0:57
ivo7518-Oct-09 0:57 
AnswerRe: CheckBox column in DataGridView Pin
dan!sh 18-Oct-09 1:00
professional dan!sh 18-Oct-09 1:00 
GeneralRe: CheckBox column in DataGridView Pin
ivo7518-Oct-09 1:53
ivo7518-Oct-09 1:53 
GeneralRe: CheckBox column in DataGridView Pin
dan!sh 18-Oct-09 11:29
professional dan!sh 18-Oct-09 11:29 
GeneralRe: CheckBox column in DataGridView Pin
Dambod18-Oct-09 19:53
Dambod18-Oct-09 19:53 
QuestionAdding events to line (shape) Pin
helelark12317-Oct-09 23:26
helelark12317-Oct-09 23:26 
AnswerRe: Adding events to line (shape) Pin
dan!sh 18-Oct-09 0:55
professional dan!sh 18-Oct-09 0:55 
Well, there are a few problems here. Your class line does not need to inherit from EventArgs. Instead it should inherit from Control/Usercontrol class since controls raise event. Next, the EventArgs can be replaced by LineClickEventArgs and that class should inherit from EventArgs class. This class should have properties that the parameter should provide. Then, you need to have a virtual overridable method say OnLineClick which should take in LineClickEventArgs as the parameter.

The only thing that remains now is that from where will you call OnLineClick. For this, you will need to identify if the click was on the line. You can have some property that will be set when you click the line. And in the set block, you can call the OnLineClick method.

AFAIK you can get to know if the line was clicked only in the MouseDown/MouseUp of your form. And there you can change the property of the Line class which will raise the event.

Other way of changing the line color can be this:
1. In the MouseDown/MouseUp event of the form, see if click was on line.
2. Have a flag say IsLineClicked in your form.
3. Add a bool parameter in your DrawLine and in the method have an if else that will set the color in which line will be drawn.

It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

GeneralRe: Adding events to line (shape) Pin
helelark12318-Oct-09 1:10
helelark12318-Oct-09 1:10 
GeneralRe: Adding events to line (shape) Pin
dan!sh 18-Oct-09 1:19
professional dan!sh 18-Oct-09 1:19 
QuestionLogin Authentication help would be appreciated Pin
spamnchips17-Oct-09 2:46
spamnchips17-Oct-09 2:46 
AnswerRe: Login Authentication help would be appreciated Pin
Dave Kreskowiak18-Oct-09 2:17
mveDave Kreskowiak18-Oct-09 2:17 
GeneralRe: Login Authentication help would be appreciated Pin
spamnchips19-Oct-09 23:39
spamnchips19-Oct-09 23:39 
Questionclr20r3 problem Pin
TheComputerMan17-Oct-09 0:51
TheComputerMan17-Oct-09 0:51 

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.