|
You're right I am wrong, or maybe we're both right! When I want an extra window I have always used IE's menu File..New..Window which doesn't start a new process and then there is only one title available, that of the current window.
I can get another iexplore process from the start menu and then as you say there is a title for each window.
Alan.
|
|
|
|
|
Dear Mr. Alan
After replying your first mail, I checked the code and found that I was maistaken. I did'nt check the Vb Documentation before writing code.Perhaps the solution to my problem is by using some API call. There is no managed way in VB 2003 to get all the open window. Or if there is, I'm not aware of it.
And I'm using IE version 6.
Thanks
Amer
reman
|
|
|
|
|
Not sure but this would be better:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strNames() As String = {"Yahoo", "Gmail", "Hotmail"}
Dim bln As Boolean
if FindWindow(strNames) then
' true - found
MsgBox(bln.ToString)
else
' False - Could not find
end if
End Sub
Private Function FindWindow(ByVal Names() As String) As Boolean
Dim lbReturn as Boolean = False
Dim pr As Process() = Process.GetProcessesByName("iexplore")
If pr.Length > 0 Then
For i As Integer = 0 To UBound(pr)
For j As Integer = 0 To UBound(Names)
If pr(i).MainWindowTitle.IndexOf(Names(j)) <> -1 Then
' You do not need to return here or even exit function as
' functions should fall through to the end and then return
' its just better programming
lbReturn = True
End If
Next j
Next i
End If
Return lbReturn
End Function
Regards
Julian Mummery
Please Visit my FREE Bug / Fault Logging Website at FaultLogger.com
|
|
|
|
|
I am new to programing, and have been challenged to create a spreadsheet viewing application that will allow someone the ability to view data from either an excel generated file or an Access database table.
This challenge was created when I was talking about learning a programming language for personal and business reasons. I ran down to the book store grabbed books on Visual C#, Visual Basic, bought Visual Studio 2008, then sat down at my home office and looked dumbfounded at everything. --- So here I am
I do not want someone to do this for me, I love challenges. However, I need some advice.
Would it be best to build this in VB or Visual C#? OR do I need jump into C++? It has been pointed out to me that Java may be the best way to go.
I am considering creating a website to track the progress of this project.
The Project Challenge
- create a stand alone application that can view data from an excel/access source
- application must have a sort capabality
- application must be able to retrieve updates from original data source
- data must be non-editable
- maintain a spreadsheet format
** additional challenge create one field that can be used as a note field, that can be saved.
----------------
I think I have finally bit off more than I can chew here, as a google search provided no help in building such an application.
So any help is greatly apprciated.
Thanks,
Forjat
|
|
|
|
|
if you have not read the books you bought and worked through the samples then I suggest you do that first. At a guess you don't even know the questions to ask yet so I would concentrate on that first.
Deciding on a platform is also some thing you need to do NOW. I would recommend C# because you will have the most resources available to support you (samples, examples, blogs and forums).
Forjat wrote: I think I have finally bit off more than I can chew here
Yup, that's a mouth full alright, the reason you do not see one of these is that it is totally redundant and of no practical use. Excellent learning though!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
This is very doable and will teach you a lot. I have done it myself - started with a VBA app in Excel, grew into a VB.NET application using OleDb to connect to the Jet engine (Excel and Access), and finally onto a VB.NET - SqlServer 2008 application.
There are some clues.
I don't speak Idiot - please talk slowly and clearly
I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury
|
|
|
|
|
Hello,
I have a project in VB .net 2008.
I have the following strange problem.
The application is use a Touch screen so there is no mouse or keyboard on the PC connected.
When a button is pressed there is another form that comes up.
first i disable the start form, after doeing that i show the new form on top of the main form.
On the new form there are also buttons ,.....
Sometimes i have the problem that when the Second form is there the users are touching something and the main form comes on top of the second form. The problem there is that the main form is disabled so there the user can do nothing but the form where the user need to use is behinf the main form.
I dont know how it can happens when i first disable the main from.
Like mentioned before there is no mouse or keyboard installed so switching with CTRL-TAB is not possible.
Is there anyone that can help me with this problem.
Using VB .net 2008 on a Vista pro machine.
thanks
DCA
|
|
|
|
|
Why are you disabling the ENTIRE form ??
Why don't you Hide the main form ?(which I think you are trying to do by placing the second form just over it).
Or, disable the controls on the main form instead of the whole form.
The user can move the second form or minimize it, to find the disabled main form stuck on the screen!!
|
|
|
|
|
I have checked it out. i have disabled the functions so the form can not be minimized , moved,... this because of the users are not PC minded.
I think i have found my mistake.
I am opening a new form, when this forms is loaded, in the form_load sub there i have set that i set mainform.enabled=false
Maybe is there the problem the small time difference.
Thanks
DCA
|
|
|
|
|
Hi,
disable means the controls will no longer react to user input; a disabled form can still be minimized,
brought to the front, etc by some code.
if you don't want to see a form no matter what, then call Hide (or set Visible=false, that is the same).
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
You shouldn't be touching the main form from your child form at all.
Also, how are you displaying this child form? Are you using Show or ShowDialog?? It sounds like you should be using ShowDialog since this will prevent any interaction with the rest of the application forms until you close this child form.
|
|
|
|
|
|
In order to make a visualizer (plugin), you need the Windows Media Player 10 or 11 SDK, the docs for which can be found here[^].
The WMP 10 SDK can be downloaded from here[^]. The WMP11 SDK comes as part of the Windows SDK for Vista, which is HUGE and can be picked up from here[^].
Warning! This SDK is meant for use with Visual C++. You will not find any examples written in VB.NET. This is NOT a beginners project. If you don't have knowledge of how Component Object Model, or COM, works, you will not be able to create a visualizer at all.
|
|
|
|
|
hi Dave
thanks
I got just on little doubt.
if I use this SDK, will the exe file work on computers not having the sdk
can you tell me? please ...
TheMrProgrammer
|
|
|
|
|
Yes. The SDK is for developing the software, not running it.
|
|
|
|
|
hi dave
using the sdk i figured out that what i need is IWMPEffects interface
It has a frequency_index property but its under a header file
any ideas how to use it in vb
TheMrProgrammer
|
|
|
|
|
It's an interface you have to implement in your code. This is not a function you call, but an interface that you are expected to flesh out so WMP can call YOU.
TheMrProgrammer wrote: any ideas how to use it in vb
I have some ideas, but they involve HEAVY knowledge of COM interop. Something that I can't really explain in a forum. There's also a reason why I said you probably won't find any examples in VB doing this. It is far from easy to do.
|
|
|
|
|
Hello,
I have 2 questions about publishing a project.
1.I am using software from the manufactor if the POS printer in my own programm. When i install the published application on a PC there is one dll file of the software from the POS printer that is not included in the install file. Without this dll the printer is not responding and the programm is given errors.
when i manualy copy the missing dll file to the directory where the application is installed my programm is working without any problems.
Is there a way to attach the missing dll in the publish file so when the application is installed the dll is automaticly also there.
2.My second problem is also something with the publish of a project. When i have published my project and installed to a PC , the project is default installed in a directory that is not find in programm files.It is located somewhere far away from the root directory \locallow\.......
Is there a easy way so i can set that the installation must be under c:\program files\name of software
Thanks
best regards
DCA
|
|
|
|
|
DCAUB wrote: 1.I am using software from the manufactor if the POS printer in my own programm. When i install the published application on a PC there is one dll file of the software from the POS printer that is not included in the install file. Without this dll the printer is not responding and the programm is given errors.
when i manualy copy the missing dll file to the directory where the application is installed my programm is working without any problems.
Is there a way to attach the missing dll in the publish file so when the application is installed the dll is automaticly also there.
Adding the file is easy. Just open the Setup project you've added to your solution, click on the Application Folder on the left, then just drag the .DLL file into the right side panel and drop it.
DCAUB wrote: 2.My second problem is also something with the publish of a project. When i have published my project and installed to a PC , the project is default installed in a directory that is not find in programm files.It is located somewhere far away from the root directory \locallow\.......
Is there a easy way so i can set that the installation must be under c:\program files\name of software
If you're using ClickOnce deployment, no, you can't pick the installation folder.
If you're using a normal Setup project, you click on the Application Folder on the left, then look in the Properties window. You'll find the DefaultLocation property there.
|
|
|
|
|
Can you please give me a small explaination how i can make a setup of a working project ?
Do i need to add something to my existing program ?
thx
DCA
|
|
|
|
|
If you have an Express edition of Visual Studio, you don't have this option.
|
|
|
|
|
I have a payed version (pro)
thanks for give me a few hints how to add the setup to my project.
DCA
|
|
|
|
|
how to get reset an application without reopen the application?..txx
|
|
|
|
|
What do you mean by reset?
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
जय हिंद
|
|
|
|
|