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

Visual Basic

 
QuestionVisual Basic to Access Pin
Ronak0855-Jul-07 6:49
Ronak0855-Jul-07 6:49 
AnswerRe: Visual Basic to Access Pin
Christian Graus5-Jul-07 7:19
protectorChristian Graus5-Jul-07 7:19 
GeneralRe: Visual Basic to Access Pin
Ronak0856-Jul-07 1:21
Ronak0856-Jul-07 1:21 
AnswerRe: Visual Basic to Access Pin
jonathan155-Jul-07 7:52
jonathan155-Jul-07 7:52 
GeneralRe: Visual Basic to Access Pin
Ronak0856-Jul-07 1:33
Ronak0856-Jul-07 1:33 
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 
I have a program that I have written that uses its main form to show buttons which show the status of devices. These button have their own class (inherting the button class) and are run as their own threads and can update themselves as required.

What I want to do, is to make the form become the TopMost window when one of the buttons indicates an error condition. I can make the button threads modify a master variable of the form, and that works. But when I then also try to make the form TopMost (TopMost=True) (actioned by a button thread) is does not get remembered. E.G if a button thread calls the main forms subroutine :-

Public Sub attention()
SyncLock myObjLock
If need_attention = False Then
need_attention = True
TopMost = True
End If
End SyncLock
End Sub

need_attention gets updated to False but TopMost never happens. If I call this from the main form routines it seems to work, just not when a thread calls the routine.

I'm not sure if I'm missing something simple, hopefully I am.

Please help

Thanks
Nigel

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 
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 

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.