Click here to Skip to main content
16,010,416 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPrint RichTextBox Content Pin
Anubhava Dimri24-Feb-10 19:51
Anubhava Dimri24-Feb-10 19:51 
AnswerRe: Print RichTextBox Content Pin
Wayne Gaylard24-Feb-10 21:20
professionalWayne Gaylard24-Feb-10 21:20 
GeneralRe: Print RichTextBox Content Pin
Anubhava Dimri24-Feb-10 22:12
Anubhava Dimri24-Feb-10 22:12 
AnswerRe: Print RichTextBox Content Pin
Nuri Ismail24-Feb-10 21:25
Nuri Ismail24-Feb-10 21:25 
AnswerRe: Print RichTextBox Content Pin
Smithers-Jones25-Feb-10 0:50
Smithers-Jones25-Feb-10 0:50 
Questionhow to read message archieve ym in offline mode using vb6 code Pin
darni3324-Feb-10 18:26
darni3324-Feb-10 18:26 
AnswerRe: how to read message archieve ym in offline mode using vb6 code Pin
Dave Kreskowiak25-Feb-10 1:47
mveDave Kreskowiak25-Feb-10 1:47 
QuestionExternal input into application [modified] - solved Pin
chrispowell1234524-Feb-10 5:08
chrispowell1234524-Feb-10 5:08 
Hi,

I'm developing an application (lets call it desktop) which acts like a desktop with a taskbar at the bottom. Desktop runs mulitple instances of a non .net applications which can open text files or pdf files. I've developed a dll that the non .net programs uses to open the pdf's or text files and make the resulting application window into a child window of desktop. I currently have a timer which ticks once a second and checks to see if any new pdf/text files have been opened by the non.net applications and if it finds them it adds them to desktop's taskbar and menus:

Private Sub windowtimer_Tick(ByVal sender As Ob...

 Dim window As IntPtr = apiFindWindowEx(Me.Handle, 0, "AdobeAcrobat", IntPtr.Zero)
            If CInt(window) > 0 Then
.
.
.

        Dim window2 As IntPtr = apiFindWindowEx(Me.Handle, 0, "notepad", IntPtr.Zero)
        If CInt(window2) > 0 Then
.
.
.

 End Sub

This works fine, however it's a bit resource intensive and with 30 or more people running desktop on a server with all the other non.net applicatins at once it's bound to slow things down.

The question I'm getting round to asking is - Can I use the dll that is opening the pdf/text files to call a routine in desktop so that it can add them dynamically without checking every second? Also, I use the timer for a clock aswell so would it make much difference?

Sorry for the essay!

Chris
modified on Monday, March 1, 2010 9:26 AM

AnswerRe: External input into application Pin
nlarson1124-Feb-10 10:06
nlarson1124-Feb-10 10:06 
AnswerRe: External input into application Pin
Steven J Jowett25-Feb-10 5:52
Steven J Jowett25-Feb-10 5:52 
GeneralRe: External input into application Pin
chrispowell1234528-Feb-10 21:55
chrispowell1234528-Feb-10 21:55 
GeneralRe: External input into application Pin
chrispowell123451-Mar-10 3:04
chrispowell123451-Mar-10 3:04 
QuestionVB Webservice for WinCE project Pin
gengel24-Feb-10 4:32
gengel24-Feb-10 4:32 
AnswerRe: VB Webservice for WinCE project Pin
_Damian S_24-Feb-10 16:55
professional_Damian S_24-Feb-10 16:55 
QuestionAccess Front End Applications Pin
Paul Unsworth24-Feb-10 2:49
Paul Unsworth24-Feb-10 2:49 
AnswerRe: Access Front End Applications Pin
scottgp24-Feb-10 2:57
professionalscottgp24-Feb-10 2:57 
GeneralRe: Access Front End Applications Pin
Paul Unsworth24-Feb-10 3:03
Paul Unsworth24-Feb-10 3:03 
AnswerRe: Access Front End Applications Pin
R. Giskard Reventlov24-Feb-10 3:00
R. Giskard Reventlov24-Feb-10 3:00 
GeneralRe: Access Front End Applications Pin
Paul Unsworth24-Feb-10 3:07
Paul Unsworth24-Feb-10 3:07 
GeneralRe: Access Front End Applications Pin
R. Giskard Reventlov24-Feb-10 3:13
R. Giskard Reventlov24-Feb-10 3:13 
QuestionProblem with If Then Else End If block in Visual Studio 2008 code editor Pin
mnemonic6924-Feb-10 1:10
mnemonic6924-Feb-10 1:10 
AnswerRe: Problem with If Then Else End If block in Visual Studio 2008 code editor Pin
Eddy Vluggen24-Feb-10 1:28
professionalEddy Vluggen24-Feb-10 1:28 
GeneralRe: Problem with If Then Else End If block in Visual Studio 2008 code editor Pin
DaveAuld24-Feb-10 1:30
professionalDaveAuld24-Feb-10 1:30 
GeneralRe: Problem with If Then Else End If block in Visual Studio 2008 code editor Pin
mnemonic6924-Feb-10 1:40
mnemonic6924-Feb-10 1:40 
GeneralRe: Problem with If Then Else End If block in Visual Studio 2008 code editor Pin
DaveAuld24-Feb-10 2:07
professionalDaveAuld24-Feb-10 2:07 

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.