Click here to Skip to main content
15,890,973 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Visual Basic to Access Pin
haggenx5-Jul-07 10:51
haggenx5-Jul-07 10:51 
QuestionUndo not working after Worksheet_Change Sub Routine in Excel Pin
reegan415-Jul-07 6:41
reegan415-Jul-07 6:41 
QuestionTopMost isnt working for me Pin
uk_nbb5-Jul-07 5:59
uk_nbb5-Jul-07 5:59 
AnswerRe: TopMost isnt working for me Pin
Christian Graus5-Jul-07 6:21
protectorChristian Graus5-Jul-07 6:21 
GeneralRe: TopMost isnt working for me Pin
uk_nbb5-Jul-07 6:36
uk_nbb5-Jul-07 6:36 
GeneralRe: TopMost isnt working for me Pin
Dave Kreskowiak5-Jul-07 15:45
mveDave Kreskowiak5-Jul-07 15:45 
AnswerRe: TopMost isnt working for me Pin
cutequencher5-Jul-07 6:22
cutequencher5-Jul-07 6:22 
AnswerRe: TopMost isnt working for me Pin
Luc Pattyn5-Jul-07 6:25
sitebuilderLuc Pattyn5-Jul-07 6:25 
uk_nbb wrote:
and are run as their own threads


I am not sure what you are saying here, are you having some other thread create
and handle a Button ?

All Controls require they be touched only by the thread that created them,
which in practice means everything gets created and touched by the main thread
(aka GUI thread only), since thats where your first Form gets created, and normally
everything in one way or another connects to it.

There are a few properties/methods that dont have to obey this rule; mainly
InvokeRequired and Invoke() and its exactly these that you must use to
let another thread do something to a Control it did not create.

If you dont follow the rules here, on old .NET (prior to 2.0) it may or
may not work, typically it will suddenly ignore you or freeze, show a white
menu bar, things like that. Since 2.0 it will throw an InvalidOperationException
except when you have set CheckForIllegalCrossThreadCalls=false, which is
considered bad practice and brings you back to the 1.x behavior.

Hope this helps.

Smile | :)




GeneralRe: TopMost isnt working for me Pin
uk_nbb5-Jul-07 6:56
uk_nbb5-Jul-07 6:56 
Questiontextbox that accepts numbers only. urgent! Pin
cutequencher5-Jul-07 5:58
cutequencher5-Jul-07 5:58 
AnswerRe: textbox that accepts numbers only. urgent! Pin
cutequencher5-Jul-07 6:20
cutequencher5-Jul-07 6:20 
GeneralRe: textbox that accepts numbers only. urgent! Pin
Christian Graus5-Jul-07 6:22
protectorChristian Graus5-Jul-07 6:22 
GeneralRe: textbox that accepts numbers only. urgent! Pin
cutequencher5-Jul-07 6:28
cutequencher5-Jul-07 6:28 
QuestionCrystal Reports XI (Release 2) deployment Pin
manisghouri5-Jul-07 5:09
manisghouri5-Jul-07 5:09 
AnswerRe: Crystal Reports XI (Release 2) deployment Pin
kubben5-Jul-07 7:30
kubben5-Jul-07 7:30 
GeneralRe: Crystal Reports XI (Release 2) deployment Pin
manisghouri5-Jul-07 7:50
manisghouri5-Jul-07 7:50 
GeneralRe: Crystal Reports XI (Release 2) deployment Pin
kubben5-Jul-07 7:57
kubben5-Jul-07 7:57 
GeneralRe: Crystal Reports XI (Release 2) deployment Pin
manisghouri6-Jul-07 6:47
manisghouri6-Jul-07 6:47 
GeneralRe: Crystal Reports XI (Release 2) deployment Pin
kubben6-Jul-07 7:19
kubben6-Jul-07 7:19 
QuestionHow to control a form which is a sub form to a child form of MDI Pin
pashitech5-Jul-07 4:54
pashitech5-Jul-07 4:54 
Questioncheck db for file and add to listbox Pin
jds12075-Jul-07 4:36
jds12075-Jul-07 4:36 
AnswerRe: check db for file and add to listbox Pin
Christian Graus5-Jul-07 4:54
protectorChristian Graus5-Jul-07 4:54 
Questiondate time Pin
balakpn5-Jul-07 3:58
balakpn5-Jul-07 3:58 
AnswerRe: date time Pin
originSH5-Jul-07 4:01
originSH5-Jul-07 4:01 
AnswerRe: date time Pin
cutequencher5-Jul-07 5:54
cutequencher5-Jul-07 5:54 

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.