
rbulph
Avatar/Signature-
Posts
398 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by rbulph
-
If I want to put my vb.net application on the Internet, so it runs in a browser (like Zoho applications), do I have to rewrite the whole thing in ASP? If not, can you point me in the right direction for doing this? Thanks
-
OK, I can use the LastWriteTime of the file, and check every minute with a Timer to see if it's changed. But it doesn't just change when I receive a new email - it also changes when I navigate away from the folder in Outlook. Any suggestions for improvement still welcome.
-
Thanks. It in fact has a method called GetProcessesByName, so this is all quite easy to do. If I've closed all windows and the process is still there, I just call its Kill method.
-
Thanks. If it wants to do that it's OK, I don't mind waiting. But is there any way of checking in code whether or not it has closed, so that I don't reopen it while it's still running and get the errors that I'm getting?
-
Hmm, now it's stopped working. Here's my code: SendMessage(hwnd, WM_CLOSE,0,0) SendMessage(hwnd, WM_QUIT,0,0) I have several Firefox windows running and do this for every one that I close. If I've closed them all, and then want to open a new window, I often get a message that Firefox is still running and that I must close the existing process before I open a new one. When I look in the Task Manager it's still showing even though there are no windows visible. Any ideas?
-
I've got a software idea. It's too big to complete by myself. But I can write code and I know the subject matter of the software very well. I'm thinking of approaching companies that could market it to work with them. I'm thinking of an arrangement where they pay me royalties for the idea and I work for them at the same time, developing the idea, on a regular salary. Do people do this sort of thing in practice? I'd be interested to hear if you know of any examples of this, and how they've worked out. Thanks.
-
Found an answer - download AutoIt, add a reference to the 64 bit dll that comes with that, and use MouseClick.
-
I've been using SendInput to send some automated mouseclicks to a window on a computer with XP installed. Now, trying this on a computer with Vista, the mouseclicks get ignored. Nothing happens. It sounds as if this might be something to do with "privileges". Anyone know how to resolve this? Thanks
-
I can create an add-in and when I run it in debug mode everything seems OK. Visual Studio opens a new instance of Visual Studio where I can see the command button for the add-in on the Tools menu, and it's all fine. But when I want to use the add-in with another project I can't see the command button even though all three check-boxes in the row for the add-in the the add-ins manager are checked. What do I have to do to actually use my add-in?
-
Is there any way that I can have a property show up in the PropertyGrid but not be exposed otherwise outside my project? It seems that Friend properties aren't displayed in the PropertyGrid, so it looks like this might be difficult.
-
Thanks, it compiles now. But it compiles to a dll whereas an existing add-in that I have is a "Visual Studio Add-in Definition File" in My Documents/Visual Studio 2005/Add-ins. I can copy the dll into this folder, but it doesn't show up in the Add-in Manager. Any thoughts?
-
Actually, although I don't understand C#, the offending lines look pretty straightforward. One reads _CommandBars commandBars = applicationObject.CommandBars; And the other is pretty similar. I think I just need to know how to do a cast (the equivalent of CType) in C#, or to turn Option Strict off in this project. In VB you can select this on the Compile tab of the project properties, but I can't see anything similar in this (C#) project. Can anyone tell me what I should be doing?
-
Thanks. I tried downloading it with Firefox and it worked OK. But I get the feeling it's going to take a lot of time to get it up and running. When I try to build (which I think I have to do to be able to register the add-in) I get messages "Cannot implicitly convert type object to Microsoft.Office.Core.CommandBarControl." An explicit conversion exists (are you missing a cast?)." I'm sure I could figure it out, but knowing how many lines are in my code is not that high a priority...
-
I get "The zipped folder is invalid or corrupted." Anything else I can try?
-
Thanks, yes, that seems to solve it.
-
I'm using SendMessage with WM_CLOSE to close some Firefox windows. I have several Firefox windows open concurrently and it's easier to do it like this than by closing the windows manually. But, while SendMessage closes the windows, it doesn't actually seem to shut Firefox down. Firefox continues to be shown in the Task Manager. This leads to errors when I want to reopen Firefox. How do I ensure that Firefox closes when I close all of its windows?
-
Or maybe it wouldn't be that hard to write an add-in myself. I remember doing this in the old Visual Basic. That way I can get it to do just what I want, and there's no time involved in figuring out what someone else's solution does. Or actually the Find Symbol Command does pretty much what I want. Anyone know how to add this to the code context menu? I've tried through Tools/Customize/Rearrange Commands but can't see how to add buttons to this menu.
-
Yes I'm still using the 2005 version. Not sure that I can be bothered with all the hassle (and presumably expense) of upgrading.
-
There's no performance issue, other than my own personal performance (!). It would be helpful to quickly be able to see how I was dealing with a method across the classes, rather than having to think about what classes I have that might override a method, and then check them all, opening extra windows in the process. There's so much that the Visual Studio does that I'm surprised this doesn't seem to have been dealt with, but perhaps I'm unusual in wishing for it.
-
Is there a way to quickly find all classes that override a given method? Maybe it would work like the "Find all References" item on the code context menu so you'd get a list of them in the Find Symbol Results window. This would be so useful because, without it, I'm having to look at all classes that inherit a class and might override a method in order to fully understand that method, and that's cumbersome. Any thoughts?
-
It's the former. You use a lot of concepts I'm not familiar with in the second paragraph so I'm thinking this might be more work than I want to put into it. I don't need it that much...
-
I have a process that runs in my application and I'd like to be able to interrupt it so that I can view a form which contains relevant information and is normally minimised. It's easy enough to interrupt the process, but not easy to get it to start again at the place it was interrupted. It seems that Thread.Suspend is now obsolete and doesn't get evaluated. I found this thread http://www.xtremedotnettalk.com/showthread.php?t=96994&highlight=suspend+thread but that only seems to anticipate interrupting the process each time it gets to the end. I want to be able to interrupt it in the middle and then continue where I left off. Can this be done? Here's some code that may explain better what I'm trying to do: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.WindowState = FormWindowState.Minimized Count() End Sub Dim g As Integer Dim q As Integer Private Sub Count() Do g = g + 1 Me.Text = g If Wait(1000) Then Exit Sub 'I'd like to be able to restart at this point, not the beginning. q = q + 2 Me.Text = q If Wait(500) Then Exit Sub System.Windows.Forms.Application.DoEvents() Loop End Sub Private Function Wait(ByVal t As Integer) As Boolean System.Threading.Thread.Sleep(t) If Me.WindowState <> FormWindowState.Minimized Then Return True End Function Private Sub cmdContinue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdContinue.Click Me.WindowState = FormWindowState.Minimized Count() End Sub End Class
-
I'd like to get some notification when I get an email from a certain sender. Just a beep will do. I'm using Outlook Express and can't find any way to achieve that with that programme, so it looks like some coding may be necessary. Two approaches come to mind : 1. Get a reference to Outlook and keep checking that for the new email; and 2. Add a rule in Outlook to move the relevant messages to a folder. There will then automatically be created a dbx file for such messages. If I monitor changes to that file (hopefully I can just get hold of its last modified property), that will tell me that a new message has arrived. I think I prefer 2. Can anyone give me any pointers to how to go about this? Thanks Arbu
-
Have you posted this in the wrong thread?
-
Even if I close down all browser windows before running this line of code, k is still Nothing. I'm trying to log-in to an account of mine automatically at a certain time of day. I have Firefox as my default browser which has the advantage that my username and password are completed automatically and all I have to do is click the button for logging in. I want the handle of the window so that I can ensure that it is the foreground window and I can click on the button (which I can do automatically). I suppose I could just note what the text of the log-in window is and use FindWindow, but it would seem better if I can get the handle from when I open the page, because the text might change in time.