Click here to Skip to main content
15,896,730 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Could not load file or assembly or one of its dependencies. Pin
Bernhard Hiller21-Aug-12 21:07
Bernhard Hiller21-Aug-12 21:07 
QuestionMessage Removed Pin
20-Aug-12 7:49
professionaljkirkerx20-Aug-12 7:49 
QuestionNot Understanding Delegates (User Error) Pin
Clark Kent12320-Aug-12 4:23
professionalClark Kent12320-Aug-12 4:23 
AnswerRe: Not Understanding Delegates (User Error) Pin
Eddy Vluggen20-Aug-12 13:00
professionalEddy Vluggen20-Aug-12 13:00 
GeneralRe: Not Understanding Delegates (User Error) Pin
Clark Kent12321-Aug-12 2:29
professionalClark Kent12321-Aug-12 2:29 
GeneralRe: Not Understanding Delegates (User Error) Pin
Eddy Vluggen21-Aug-12 2:56
professionalEddy Vluggen21-Aug-12 2:56 
GeneralRe: Not Understanding Delegates (User Error) Pin
Clark Kent12321-Aug-12 4:28
professionalClark Kent12321-Aug-12 4:28 
GeneralRe: Not Understanding Delegates (User Error) Pin
Eddy Vluggen21-Aug-12 4:50
professionalEddy Vluggen21-Aug-12 4:50 
Clark Kent123 wrote:
In all honesty, I am just trying to prevent the error message from popping up. So I was not paying too close attention on what Delegates were, but had the mind set of copy and paste sample code and hope the error goes away.

I quickly dropped that method of learning, as it becomes frustrating very quickly. Incomplete samples, fishing out the unrelated parts, the "cool" feature you missed because the example used a simpeler overload..

Clark Kent123 wrote:
I think the "informing" the other class that something has changed might be the what I want to do.

Hehe, I was afraid that this would be the answer; there's a specialized form to use the delegate, called the event. If your class where to "notify" another class that it has finished loading that huge text-file, you'd typically raise an event (RaiseEvent[^]), something called "OnLoadFinished" or something like that.

Clark Kent123 wrote:
I am not yet there of saying "Oh, this would be a perfect place to make this method async with threads" or "Wait, this needs a delegate".

All too well; especially if a technique is still abstract in ones mind, often the case with design-patterns. To make it worse, there are usually multiple ways to achieve something, often with no clear "correct" way, but multiple trade-offs to go either here or there.

Clark Kent123 wrote:
My mind set of programming has been linear that the idea of something asynchronously is foreign to me and it's taking me a while to grasp how to implement it in my app.

As a quick rule-o-thumb, anything that takes more than 0.5 second to complete, should be on it's own thread. Loading large pictures, parsing text-files, loading large tables; all of those would be candidates for their own thread (ideally with a progress-indication).

Learning threading, delegates and events all at once is a bit much to dive into. I suggest you pick one of the three and try to create the smallest console-app possible to see it in action. MSDN is your friend here Smile | :)
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

QuestionMultiple checkbox in Excel file Pin
oanaa1119-Aug-12 21:20
oanaa1119-Aug-12 21:20 
AnswerRe: Multiple checkbox in Excel file Pin
Sonhospa19-Aug-12 23:37
Sonhospa19-Aug-12 23:37 
AnswerRe: Multiple checkbox in Excel file Pin
Clark Kent12320-Aug-12 3:26
professionalClark Kent12320-Aug-12 3:26 
AnswerStore Keywords in Excel doc Pin
David Mujica20-Aug-12 4:02
David Mujica20-Aug-12 4:02 
AnswerCode snipet Pin
David Mujica20-Aug-12 4:30
David Mujica20-Aug-12 4:30 
GeneralRe: Code snipet Pin
oanaa1120-Aug-12 20:10
oanaa1120-Aug-12 20:10 
QuestionHow to code the next button Pin
garyu8717-Aug-12 22:09
garyu8717-Aug-12 22:09 
AnswerRe: How to code the next button Pin
Eddy Vluggen18-Aug-12 2:05
professionalEddy Vluggen18-Aug-12 2:05 
GeneralRe: How to code the next button Pin
garyu8718-Aug-12 2:38
garyu8718-Aug-12 2:38 
GeneralRe: How to code the next button Pin
Eddy Vluggen18-Aug-12 5:49
professionalEddy Vluggen18-Aug-12 5:49 
GeneralRe: How to code the next button Pin
garyu8718-Aug-12 20:01
garyu8718-Aug-12 20:01 
GeneralRe: How to code the next button Pin
Eddy Vluggen18-Aug-12 23:21
professionalEddy Vluggen18-Aug-12 23:21 
Questionvb interface wih HP impedance tester Pin
seow22716-Aug-12 21:55
seow22716-Aug-12 21:55 
AnswerRe: vb interface wih HP impedance tester Pin
Eddy Vluggen17-Aug-12 3:27
professionalEddy Vluggen17-Aug-12 3:27 
AnswerRe: vb interface wih HP impedance tester Pin
Dave Kreskowiak17-Aug-12 3:29
mveDave Kreskowiak17-Aug-12 3:29 
QuestionPrintPreviewControl causes exception Pin
kmoorevs16-Aug-12 3:06
kmoorevs16-Aug-12 3:06 
AnswerRe: PrintPreviewControl causes exception Pin
Kenneth Haugland18-Aug-12 13:00
mvaKenneth Haugland18-Aug-12 13:00 

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.