3 Replies - 1335 Views - Last Post: 03 December 2012 - 06:18 PM Rate Topic: -----

#1 nqchanh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 03-December 12

problems about invoke method ?

Posted 03 December 2012 - 09:53 AM

I’ve viewed this link http://msdn.microsof...#code-snippet-1 .It talks about Invoke method.And I haven’t got clear about some points of this.As refered in the article :

Quote

“The Invoke method searches up the control's parent chain until it finds a control or form that has a window handle if the current control's underlying window handle does not exist yet. If no appropriate handle can be found, the Invoke method will throw an exception. Exceptions that are raised during the call will be propagated back to the caller.”

I don’t understand some definitions such as “the control's parent chain”, “a window handle”, “if the current control's underlying window handle”, so I hope someone gives me explainations about these ones ! :helpsmilie:/>/>

This post has been edited by tlhIn`toq: 03 December 2012 - 11:30 AM
Reason for edit:: invoke not invode


Is This A Good Question/Topic? 0
  • +

Replies To: problems about invoke method ?

#2 Julyuary  Icon User is offline

  • D.I.C Head

Reputation: 38
  • View blog
  • Posts: 106
  • Joined: 20-December 11

Re: problems about invoke method ?

Posted 03 December 2012 - 10:15 AM

Well, you could always Google terms you aren't familiar with..
http://stackoverflow...-windows-handle
http://msdn.microsof...rol.parent.aspx
Was This Post Helpful? 2
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5464
  • View blog
  • Posts: 11,731
  • Joined: 02-June 10

Re: problems about invoke method ?

Posted 03 December 2012 - 11:35 AM


My standard beginner resources post

You can try to learn C# by dismantling snippets and googling terms - basically you can take a hit-n-miss, shotgun approach. Or you could just follow a proper training program whether it be a couple intro books, school, on-line course or series of tutorials like the ones we offer. I'll tell you from experience that just fumbling around in the dark and trying to teach yourself with no guidance doesn't work. Its like stumbling across a Harrier Jump Jet and trying to teach yourself how to fly with no background in piloting: You simply lack any groundwork to start from. How can you lay out your own training course if you don't already know the material? Would you go to a university where the teacher says "I don't know any of this but we'll fumble through it together?"

We have a tutorials section and a learning C# series of articles.

First learn the language by working 2-5 "Learn C# in 30 days" type books cover to cover. Do a couple hundred on-line tutorial projects where you build what you're told to build, the way you are told to build it WITH AN EXPLANATION OF WHY so you can learn.

There are three routes people seem to take when learning programming.
  • Just start trying to create programs
  • Start taking apart other programs and try to figure out the language by reverse engineering
  • Follow a guided learning course (school or self-teaching books)


For the life of me I can't figure out why people try 1 & 2. I strongly suggest taking the guided learning approach. Those book authors go in a certain order for a reason: They know what they're doing and they know the best order to learn the materials.

Quote

Where do I start?


You start by learning a coding language FIRST.
Learn to plan before you type.
THEN you start designing software with a purpose.


If this sounds like you

Newbie/Rookie said:

I have a little programming experience but I need to write ...
read this section
Spoiler


Otherwise, you can just jump to the resources here:
Some of the tutorials below are for C# or Java not C, C++, VB.NET [...]. But the conceptual stuff of classes, object oriented design, events etc. are not language specific and should give you enough guidance in theory of program development for you to be able to look-up specific code example in your chosen coding language.



Resources, references and suggestions for new programmers. - Updated Oct 2012
Spoiler

This post has been edited by tlhIn`toq: 03 December 2012 - 11:36 AM

Was This Post Helpful? 1
  • +
  • -

#4 nqchanh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 03-December 12

Re: problems about invoke method ?

Posted 03 December 2012 - 06:18 PM

View PostJulyuary, on 03 December 2012 - 10:15 AM, said:

Well, you could always Google terms you aren't familiar with..
http://stackoverflow...-windows-handle
http://msdn.microsof...rol.parent.aspx
thannks for your help ! now i understand mmore clearly although not completely ! ^~^

tlhIn`toq, thanks a lot for your advise ! i'll try it ! ^~^
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1