Click here to Skip to main content
15,891,951 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
AnswerRe: clr20r3 problem Pin
Dave Kreskowiak17-Oct-09 5:56
mveDave Kreskowiak17-Oct-09 5:56 
GeneralRe: clr20r3 problem Pin
TheComputerMan17-Oct-09 12:12
TheComputerMan17-Oct-09 12:12 
GeneralRe: clr20r3 problem Pin
Dave Kreskowiak17-Oct-09 15:21
mveDave Kreskowiak17-Oct-09 15:21 
GeneralRe: clr20r3 problem Pin
TheComputerMan18-Oct-09 1:27
TheComputerMan18-Oct-09 1:27 
GeneralRe: clr20r3 problem Pin
Dave Kreskowiak18-Oct-09 2:15
mveDave Kreskowiak18-Oct-09 2:15 
GeneralRe: clr20r3 problem Pin
Eddy Vluggen18-Oct-09 0:45
professionalEddy Vluggen18-Oct-09 0:45 
AnswerRe: clr20r3 problem Pin
0x3c017-Oct-09 6:43
0x3c017-Oct-09 6:43 
QuestionSerial code login Pin
offroaderdan16-Oct-09 3:55
offroaderdan16-Oct-09 3:55 
AnswerRe: Serial code login Pin
Dave Kreskowiak16-Oct-09 4:50
mveDave Kreskowiak16-Oct-09 4:50 
GeneralRe: Serial code login Pin
offroaderdan16-Oct-09 5:02
offroaderdan16-Oct-09 5:02 
GeneralRe: Serial code login Pin
Dave Kreskowiak16-Oct-09 5:22
mveDave Kreskowiak16-Oct-09 5:22 

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.