I'm trying to get a collection of children in a Windows folder in my VB program. I don't know what classes / methods to use. I could look it up but I wouldn't know what to search for and .NET has way too much documentation to wade through.
I have use VS2005, I have open windows explorer from code. when i click on search button it open New windows, and in this I click on All files and folders in Look in : combo by default C: and D: drives are set.
How do I open a Windows 7 Library like Documents, Pictures, Music, Videos and all other custom libraries from my app? I tried opening explorer.exe LibrariesDocuments but it doesn't work.
I have a Motor Class, along with a Collection to hold objects address. Each Collection object holds the Class fields as a String to display in list box. I am able to write the collection string to the file and save the string. But unable to open the existing file, read the file back into the collection object.
Public Class Motor Private strId As String Private strDescription As String
[Code]......
I have looked all over for anything (samples or tutorials for working with files and collection objects) pertaining to type of operation with out any success.
Is it good practice to store sub-collections of item X inside a parent collection of item X for caching 'filter-queries' which are performed on the parent collection? (They won't be used together (as in color AND type).) Or is it also ok to just Loop over the collection and return the correct entities in a temporary collection?
I have been researching for a couple of days now and to no avail. Does Anyone know how to make a custom collection that take advantage of the collection editor? I would like to be able to have 3 Color Values, 1 Boolean and 1 String.
Im trying to use a global mouse hook to check and see if the mouse location is in the title bar of any open form. I have the hook, so how would I get the rectangle of the NC (Non-Client) area of every open form in windows?
I am developing a WPF project in vb.net and have multiple windows in it. When user selects a menu item a new windows opens and the problem is when the user clicks on other menu item the current window should close by itself.
is there code to tell if your form is on top of all the other windows open ? or if its the active window.i have a bit of code that just brings one form to the front, then another, but i dont want it to perform this action if its already the active window
I would like to have a way of getting all of the open windows in a windows system. I need an array for all of the active windows (what you see in the taskbar). I just want a function to do this please. Its the core of a program I am writing, and its where i am starting from, so no code yet.
I'm creating a program that will hide/show windows. I am stuck on getting a list of all the open windows. I can get the window's handles, but I would like the actual window title...
Here is my source so far:
- My variables/imports/required functions Imports System.Runtime.InteropServices Imports System.Diagnostics
[code]....
As you can see it just lists the window's handle in my listview control just by calling GetActiveWindows()So how do I get the window's text?
I have use VB.Net 2005, I want to create an application , in this I want to open a particular Folder (for example D:/MyFolder) , in windows explorer and windows explorer open in some one vb.net control(which I can not know, it may be Panel) and control windows explorer tool bar by vb.net( enable and disable).
At my job, there are multiple web based tools we use. I'm trying to make a program that opens them all with one click, all in separate IE windows.
The code below, once executed, will produce 1 IE window. I'm pretty sure I understand why it's doing this, but not sure how to fix it. What I want is 3 IE windows open, at the respective sites.
VS 2008 & IE 8 Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click OpenURL("http:www.google.com")
[Code]....
Also, the way my GUI's set up I have buttons for each individual tool, when clicked they open a new tab in the same IE window, as opposed to a new IE window.
I am wondering if it is possible to re open windows application again in visual studio.Use case:User of the form needs to make some changes to current application and the changes will take affect next time when the application starts, how to close the application and re start it after user clicked ok, so that user settings will take affect immediately without asking him/her to restart application?
I'm trying to support Basic.NET on my framework so I'm trying to convert C# 4 code to Basic.NET 10. Microsoft is committed to "co-evolve" these two but I'm having a problem with collection initialization... I found that I can initialize a collection much like in C#:
I've got the following ADO.NET Entity Framework Entity Data Model:I want to find all the Policyholders with both a Service of a given Id and also a Keyword of a given Status.
This LINQ Does Not Work:
Dim ServicesId As Integer = ... Dim KeywordStatus As Integer = ... Dim FoundPolicyholders = From p As Policyholder In db.PolicyholderSet.Include("Keywords").Include("Services") _ Where p.Services.Id = ServicesId _ And p.Keywords.Status = KeywordStatus _ Select p
The Where clause cannot search the p.Services and p.Keywords EntityCollections in that way.
currently in my application I have a Global Collection that is a Collection of Collections.Currently I am trying to add items/ elements to one of the child collections of the Global Collection but I am unable to use the collections methods of the child.When I assign a variable to the child collection and return the collection it is just an object with the collection inside.
Ex: Dim GlobalCollection as New Collection Dim ChildCollection1 as New Collection Dim tempCurrentCollection[code]......
I've been working with a CMS called InsiteCreations 2008. I'm running into an error I just can't wrap my head around. I would even be willing to compensate anyone a small amount over paypal, for a solution. The error is rare in occurance, and appears when clicking about 3-4% of links to other pages within our CMS.The full code page is quite large, but there seems to be only one function associated with the error. The error also only appears when not logged into the CMS. If logged into the CMS, clicking the link simply displays the page as normal. I have already checked permissions on the page from the CMS admin console, and it is public.
The error message is as follows:
Server Error in '/' Application.Collection index must be in the range 1 to the size of the collection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
I want to list all open Windows Explorer windows with their active path in a ListBox. The app should refresh the ListBox if the explorer window is navigated to a different path.
For e.g. two explorer windows are open. One is navigated to C:Windows and the other is navigated to D:Stuff. When the app it run, it adds C:Windows and D:Stuff to the ListBox. Then, the user navigates to a different folder in one of the open explorer windows like C:Windowssystem32. The app should then refresh the ListBox and list C:Windowssystem32 and D:Stuff instead.
I have an MDI parent within which are contained several mdi child windows. when I close the MDI parent window, I need to check for any open MDI child windows (they may not be in the foreground) and check if they need saving. the saving part I'm ok on, but I can't get a stable system for checking if there are any open MDI children, when I click the button that closes the application. any suggestions?
I have two windows forms,say frm1 and frm2. I have to open frm2 from frm1 and frm1 from frm2.when one form opens other hide. But the the problem is that everytime when i open the form new object of the form is created which increase the memory usage of the application.What should be the efficient way to switch from one window form to another in vb.net.
Is there any switch that will allow you to open an application over all the other currently open applications? My problem is getting Explorer to open over all the other currently open applications. Right now, it only opens in the background......
I find myself with the dilema of opening massive numbers of IE windows/tabs on subjects. This is really great content, but then I need to restart my computer. Rather than going into each and recording the URL/window name (which is listed in the window title bar, relating to the content of the web page), is there a way to capture that information within VB.NET (in a WinForm app)?
Most of them are for things like this, where I am looping through the open windows in my application and then if I find a certain window I do something to that window:
For Each wnd As Window In Application.Current.Windows If Found Then Exit For[code]......
Is that the kind of thing I'm supposed to do to fix all of these type conversion issues or am I going about this the wrong way? Also in situations like that, should I be using DirectCast or CType?
I am currently working on a small vb.net project which consists of several windows. These windows consist of buttons and so on and if I click on one of these buttons, another window opens up and the previous window just closes up or hides itself.
The problem is as follows; when the new window opens up, it goes to another place (coordinate) on the screen(though its just a slight displacement).
hat can I do to make all the windows open at the same place??
I have made an alternative OS and i wan't it to open Windows Explorer. I have tried Shell (C:WindowsExplorer.exe) and it works,but the startbar appears at the bottom of the screen when I dont want it to.