Possible For Each Instance Of It To Determine If It Was First / 2nd / 3rd To Be Opened?
Mar 24, 2010
I've tried searching this forum for an answer to my problem with no luck. I've set my program to allow multiple instances of it to run. Is it possible for each instance of it to determine if it was the first, 2nd, 3rd, etc to be opened? It would be very useful if for example if the program has been opened a 2nd time I would like to be able to load a different set of parameters for certain things for the 2nd instance. The same with the 3rd instance.
View 9 Replies
ADVERTISEMENT
Feb 4, 2011
I'm trying to build a simple desktop application to keep users on a certain website. It's very simple, just a webbrowser control with right click disabled. However certain applications on our website require popup windows and those windows always open up a full browser window. [code]....
View 1 Replies
Nov 19, 2008
Since it will be run by the user I don't want the user to have to do anything but send the IT department the log file it creates.
What I want to do is see if a folder on the network can be opened successfully. I do not want to ping it, but actually open it and see if it loads. I can do this for a website by retrieving the http status code, but I can't find any references to something similar for explorer.exe. Here is a basic flowchart of this part of the program:
ping server --yes--> access \server_namefolder
--no--> access \server_IPfolder
--no--> Authentication Issue
--yes--> DNS Issue
Note also that just checking authentication won't work because it could also be a DNS problem. I guess I could check them both, but I would rather do it this way if possible (and I don't know how to go about checking either one)
View 1 Replies
Feb 27, 2012
I'm building an Outlook add-in in Visual Studio 2010, using VSTO with VB.net, to sync Outlook Calendar data with an internal, proprietary Calendar. Our users want to be able to open a recurring appointment in Outlook, send the Appointment details and have the internal calendar update with the recurring appointment details. I actually have code in place that works just fine for creating recurring appointments and single appointments. The problem is that I can see no difference (when viewing the AppointmentItem or RecurrenceItem members) between a single occurrence of the series being opened, or if the entire series has been opened; all the data is the same, all the functions have the same result. I can see there's the difference in menu bars, but I don't even see a way to detect that difference.
View 1 Replies
Feb 11, 2010
Is there a way to determine whether processes have been opened or closed during a given time frame? I'm working on code that will take an initial copy of your processes list, and then based on a timer, continue to take copies, which will compared to the initial processes list to determine which processes have been opened or closed until the timer ends. I'm capturing the processes list's in an Array list.
Dim processesList As String //Initial processes list
Dim processActivity As String //Opened or Closed processes
Dim processesAtStart As New ArrayList // Initial processes as ArrayList (To Compare)
Dim processesCheck As New ArrayList // Latest processes as ArrayList (To Compare)
[code]....
View 10 Replies
May 27, 2010
I am developing a application where a url is supposed to be passed to Internet Explorer using a search button. But if more than one url passes it should open in same instance. I dont want new instance to be opened every time. I am using SHDocVw.dll for the same. I have coded for opening a new IE instance and URL is getting passed successfully. But meanwhile if I close that open IE then I get exception and my program dont work.
View 1 Replies
May 4, 2012
I will know how do I work with the opened excel instance, when I use multiple userforms. I have on my form1_load open a excel file. Then I observed that on my next userform, was unable to write to that file again. Project have no instance of APP.workbook.
View 8 Replies
Mar 30, 2010
I've added a CKEditor instance programmatically to my page in the code-behind of my ASP.NET page:
[code]...
which works fine. I can get the HTML on the postback and do stuff with it.However, I also want to do some client-side stuff with it, specifically take a selected item out of another control, and insert it into the text by handling the onchange event.So, how can I get the name of the editor instance in the JavaScript, so that I can do stuff like:
[code]...
View 3 Replies
Mar 27, 2010
I have a class C(Of T). I want to determine if some given value has type C, regardless of what T is. For example, I might want to determine if a value is a strongly-typed list, regardless what type of items the list stores. I just need to know how to do it in VB.net. In Java the syntax is like this:
var result = obj instance of Gen2<?>;
View 3 Replies
Mar 9, 2012
I have a problem with WebBrowser control and cookies.First of all what happens when one navigates in a normal Web browser (IE9 in my case): open page
I enter my username / password,
I leave the checkbox "Stay signed in" unchecked and click "Sign in",
IE9 opens my GMail page with all my mails listed. That is OK.
1.2. At the top of GMail page there are a lot of links like "Calendar", "Documents", etc.
When I click the "Documents" link, my documents page is opened in a separate tab in IE9. No additional login information as name / psw is asked. This is fine too.Now, what happens when I repeat all that in WebBrowser control (I have created a very simple VB.NET application with single WebBrowser control in it).
2.1. In form load event the following code is executed:
Private Sub MyForm_Load(sender As System.Object, e As System.EventArgs)
Me.MyWebBrowser.Navigate("http://www.gmail.com")
End Sub
2.2. I enter my GMail login information (name and psw) in WebBrowser control,
2.3. When I click the "Documents" link, a new instance of IE9 is opened,
2.4. Instead of showing a list of my documents, Google asks me to login again in an IE9 window. Why? Why I have to enter my credentials again?I think there is something wrong with cookies and they are not set correctly in a step 2.2.
View 2 Replies
Jun 24, 2011
I have following instance of System.Collections.Specialized.NameValueCollection:
Dim UserSelection As New System.Collections.Specialized.NameValueCollection
UserSelection.Add("D_Color1", "Black")
UserSelection.Add("D_Color2", "Green")
UserSelection.Add("D_Color3", "Purple")
I need to save this instance to hard disk and then load it back from hard disk as an instance. How do I do that?
View 2 Replies
Aug 4, 2010
D is a dictionary whose entry values are of Type T..What I'm attempting to do is have a delegate like "Serializer" below that I can invoke on an instance of T, such as "Entry.Value" below.Please see the "return Entry..." line below for my wishful thinking.[code]
View 2 Replies
Aug 30, 2011
I am looking for a way to make my app running in a single instance mode and showing the MainWindow of the first instance when another instance is launched.I do a quick search on the internet but I did'nt find anything to open the MainWindow of the first instance or it was for Windows Form not for WPF.
View 1 Replies
Jul 15, 2011
I have a single instance VB 2010 application I know how to communicate with the next instances run through the StartupNextInstance application event. The usual way of working with this is parsing command line arguments of the new instance and continue execution of the old instance. What I would like to do is replace the running instance with the new one. Is there any way to do this other than disabling the single instance property ?
View 1 Replies
Jul 29, 2010
A while ago, I wrote a web-based guestbook application that wrote it's own database.
My code was very amateurish, but, as it was my very first publication, I was very happy with it. Only about a month after I'd published it did I realize I'd made a huge mistake in the code.
I've only ever connected to a specific named instance of SQL Server, and it occurred to me that, if the SQL Server instance has a different name than the one I specified, it wouldn't work.
So, since my users will probably not know what the name of the instance of SQL Server that's running is, I thought adding a field where the user can specify it would help if they do, but what if they don't? My answer was to get the local instance, regardless of name.
I tried Data Source=.local;, Data Source=.; and other variants, but nothing worked.
View 2 Replies
Feb 29, 2012
I was trying to fill 10 checkedlistboxes with items..So I made a sub with 2 arguments like this Private Sub fill_checkedlistboxes(ByVal items As String, ByVal checkedlistbox As CheckedListBox) End sub the first argument items is a long string whitch splits in the sub into many strings and added them all into the second arguments (thecheckedlistbox) I want to make for next statement to fill all the 10 checkedlistboxes in my form with an 10 long strings held in an array called strings, so i write something like this [code] What i have to write in the "?????" area to have the checkedlistbox that i want? the checkedlistboxes names are checkedlistbox 1, 2 , 3 ....10
View 12 Replies
Sep 1, 2011
I have no problem doing a select statement from a database and displaying it.An I have no problem inserting data into a sql database table. However with this issue I have to grab the data an insert it into a totally different SQL 2005 instance.
View 8 Replies
Feb 8, 2012
creating single instance form in MDI Application. How to check whether form's instance created or not?
View 6 Replies
Sep 2, 2009
Currently I am useing the following code which I found on these forums. I get pretty good use of it. I would like to be able to open my own instance of IE and populate it. I am trying not to populate any other minstances of IE that may already be open.
[Code]...
View 1 Replies
Apr 1, 2012
I have a project the was written by someone else. I am very new to VB. I am trying to make changes the the project. When I first opened it it went through the conversion with no errors. The report has not errors however when I try to open the project I get the error "vbproj cannot be opened because this project type (.vbproj) is not supported by this version of the application". I am using VB2008 Express and have read all the other responses to the issue but Ijust do not know waht to do.
View 3 Replies
Nov 29, 2009
If I need to run a sub from another form, I would normally do something like this:
DirectCast(Application.OpenForms("frmTest"), frmTest).PublicSub()
How would I run the sub if the user never opened the form? The form is an options form and it may not be opened by the user if they opt out of changing the default values. I don't want to change the location of the sub because the sub relies on a lot of info on that form.
I tried Google and playing around with intellisense, but I've come up with nothing so far.
View 8 Replies
Jan 23, 2009
I am using the IndexOf function of the string class to find a specific instance of a string. And based on that I have a logic to do something. Below is the example of what I am doing. The code is in production and is working fine. But for some instance I am getting an "Object reference not set error". Yeah its intermittent.The requestXML is a string of xml data passed in as a paramter to a subroutine. I am fetching the xml string as a form post in a request object. The only thing I could think of getting this kind of error is when the requestXML string varia
requestXml = Request("requestXML")
SubmitRequest(requestXml)
Private
Sub SubmitRequest(ByVal requestXml
[code]....
View 5 Replies
Sep 6, 2010
I have question regarding how i can check if the form is opened or not ??
View 2 Replies
May 31, 2009
I have 3 simple questions:
1. How to check if a form is opened?
[URL]
End If
2. How to play a sound (just a beep or something?)
3. When i have a string with keywords, separated by ","'s, how to convert this into a array? (F.A. Test1,Test2,Test3)
String.Split(",")
View 4 Replies
Mar 10, 2010
Check If Folder Is Opened?
View 2 Replies
May 1, 2012
I've got an application which I want to only have 1 open.How would I make it check if the application is already open and only open if it isn't? I've had the idea of using 2 forms, one of which is the proper application and the other which just checks if its running then opens the other form.I would imagine it would check if there's more than 1 of the process name running and if there is close all others?
View 5 Replies
Nov 7, 2011
I have a Visual Studio 2008-SQL Server 2005 app that will be throwing alot at it. It's my testbed learning app. I'm also a student of this craft(43 years young) like another poster posted on another thread. I come from a PICK/BASIC jBase background. Anyway as-is my app has a connection to the database that is opened on form load. I close the connection on form close. It's a one form app currently. Is this wrong? It seems that maybe I should not have a connection opened possibly all day. I'm looking into incorporating Datasets, dataAdapters into my next phase of evolution. I looked at the material and it's tough. For me anyway. But I will get into it. I will fetch the data into a dataset so that I can keep the connection open only for a little while. I was turned on to this "keep the connection just as long as you need it" idea from someth
View 3 Replies
Feb 20, 2010
I can't connect to my database now, although yesterday it was perfectly fine. An error message comes up saying "...A database with the same name exists, or specified file cannot be opened, or it is located on UNC share" this has never happened before. Why can't I access my database?
View 2 Replies
Oct 17, 2009
I'm trying to detect which contacts are currently opened, the only way I could come up with that was to actually get the items in the windows taskbar then compare the items to the contact list on Msn. This way when Bob@hotmail.com is currently opened my application can show a listbox of all the current opened Msn contacts. Is there an easier way to view the current open contacts with MessengerAPI
View 3 Replies
Sep 2, 2009
I Was Trying To Get The Username Opened The Process From The Property Process.StartInfo.Username but It Didnt Work I Want To Know If There Is A Way To Get The Username That Opened A Process (I Mean A Process That Is Already Opened)
View 6 Replies