VS 2008 Start Another App In Back?
Apr 5, 2010
Is it possible to open another app without losing focus of the current foreground app? I have a program that will open another app and test something on it then close it, and reopen it again and repeat. Can this be all done in the back while i am typing away on another app in the foreground without getting interrupted by the new app opening and changing focus?
i dont want the new app open minimized or anything, just quietly open in the background.
I tried using process startinfo.windowstyle and that doesnt help much.
View 8 Replies
ADVERTISEMENT
May 9, 2012
I've got a function api_request which takes API method as an argument, and returns XMLTextReader.
Shared Function api_request(method As String) As XmlTextReader
request_text = method & ".xml"
url = "[URL]" & request_text & "&access_token=" & token
Return New XmlTextReader(url)
End Function
I call this function from different places to make request to site API and depending on the method results are parsed very differently. So in each method I have something like this:
Dim s As Xml.XmlReader = api_request("users.get")
While s.Read
If s.NodeType = XmlNodeType.Element Then
If s.Name = "user" Then
[Code] .....
As you may see, I have the code ElseIf s.Name = "error" Then error_handler(s, "user.get"). This is because when error happens, server always returns something like this:
<error>
<error_code>4</error_code>
<error_msg>Incorrect signature</error_msg>
</error>
This is parsed in error_handler Sub, and depending on the error following actions are chosen. This code works, but I have to check if I encounter error like that ElseIf s.Name = "error" every time, though all the methods call the api_request function. Is it possible to check for error in api_request function before returning the Reader? The problem is if I start reading xml there, and there isn't an error, I can't anyhow position the Reader to the start.
View 1 Replies
Mar 31, 2010
We've set code to fire certain valves on the timer but once it gets to the last valve (checkbox) I'm not sure how to reset the timer to start back at zero so that it refires the sequence.
Here's the code:
Private Sub Timer1_Tick(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles Timer1.Tick
[Code]....
View 5 Replies
Jul 11, 2011
I'm just starting to use vb .net (using 2008 express edition) and I want to make a menu for my program that will be like a sidebar that when you click one of the options, a few sub-options will fold out that will push the main options below downwards - and then the sub-options will disappear and the options will go back into place when something else is selected.I am not sure exactly where to start in terms of making those options get pushed down/come back up..
View 3 Replies
Sep 27, 2009
I have a program that requires a string. The string is 20 characters long. The string also have to be split into 2 words the first word is 12 characters and the second is 8. If the strings is not 20 characters long I get an error. I wanted to know how can I get the program to start back over and let me enter another 2 more words if the string is not 20 characters long. At the moment after I get the string is not 20 characters long error it continues to read the rest of the program but I want it to stop after an error and let me start over from the beginning.
View 3 Replies
Jun 15, 2011
I am making a maze game like the one shown in the how to, I recently discovered that if you hold the right mouse button a you can go through the wall. Is there a way to make the mouse lock and not move when the user trys to hold the button down
or
When the user releases the button it resets. Like in the web browser with
If e.KeyCode =
Keys.Enter
Then
e.SuppressKeyPress =
True
WebBrowser1.Navigate(ToolStripTextBox1.Text)
But with the mouse button when it releases send the cursor back to start.
View 2 Replies
Feb 28, 2011
I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
View 2 Replies
Apr 8, 2010
I need to be able to start with Form1, move to LoginForm, then back to Form1 taking 2 variables and the "values" they have in the LoginForm back to Form1 and using the variables. I start with the main form (Form1) and have the user enter some information. Once they click OK I have the LoginForm open. After they enter their credentials I will check to make sure they are legal users, then go back to Form1 (here is where I need to take the Username and Password with me) to log onto a server using the same credentails from the login form.
View 1 Replies
Aug 25, 2010
I am using an image button and on click of it i want to go to visited page.Now i am using - Response.Redirect(Request.UrlReferrer.ToString()),It is going to previous page, but when i am in a page of some user details where the link is looks like - users.aspx?userid=25 and i visit some other page and click back(image button) i want to see the same userdetail page. How to track that.
View 2 Replies
Jul 23, 2009
I have a search page with a couple of pulldowns. Dependig on the values of them I show a grid matching the searched criteria, basically a table with links the user can navigate to. My problem comes when the user wants to navigate back. At the moment I have a "Back" button which simply redirects the user to the initial search page. I think it would be a good improvement to have the values of the pulldowns filled in with the values the user selected, this way when he presses the "Back" button he would not have to restart the whole search process again.
View 5 Replies
May 31, 2009
I'm not sure what I did, But I would like to get my toolbox back to normal where I can put it back on auto hide and such.
View 3 Replies
May 10, 2012
We have a server application and a client application that communicates with each other using socket.
When the server application sends 2 messages about 16-31 ms apart, the 1st message is received by the client application with little delay (like 16-32 ms after it was sent). But the 2nd message is received by the client application a lot later (like 200 ms later) than when it was sent.
We already disabled Nagle algorithm (set NoDelay = True) in the socket in both the server and client application.
View 1 Replies
Jun 17, 2011
We are having problems with sending back to back emails on one of our web sites. The site is built with .net framework 2.0.We can send the first email without any problems on every try. But to send a second email you need to wait about 20-30 minutes.the problem.One thing we tried was changing the smtp email server. We tried a third party smtp server but the same problem persisted. So I think the problem is not with the smtp server but with our .net code.
Imports Microsoft.VisualBasic
Imports System.Net
Imports System.Net.Mail
[code].....
View 1 Replies
Nov 12, 2010
how to get back application 3.5 to 2.0 i set my apps to 3.5 almost done... but i want dontnet 2.0 to use.
View 1 Replies
Mar 19, 2009
VS 2008 How to back up registry?
View 3 Replies
Aug 31, 2010
I have a next and back button to switch in between my tabs. There are 7 tabs on the form. My problem is that if I am on Tab 1(the first tab) and I keep clicking the back button that it keeps subtracting the the number (next_CurrentIndex) and I got to press the next button that many times in order for it to go to the next tab. Example: Lets say I'm on tab 1(first tab) and i click the back button 5 times. I then have to click the next button 6 times in order for it to proceed to the next tab which would be tab 2. This happens if im on tab 7 and continue to hit next also. [code]
View 2 Replies
Jan 23, 2012
Back up my entire database using vb.net. I'm using SQL Server 2008 R2 for my DB.
View 39 Replies
Apr 15, 2010
Question 1: i can't manage to get the back of a label to be transparent, so i can see an image underneath.
I have this
CODE:
And it isn't working...
Question 2: I have removed the border of the form, but want to have what is left (the main content) to be a particular shape. Is that possible or do i have to have it rectangular?
View 1 Replies
Oct 6, 2011
visual studio 2008 express is it possible to create the backup of my entire project automatically is there any tool for that
View 5 Replies
Sep 21, 2009
I'm writing a application that has to check live what's going on somewhere. The data is stored in a integer array.But this data comes from a PLC over a COM port. So imagine if someone pulled out the cable while my application is running. I have to find a way that the integer array will be stored somewhere when my application crashes. I thought maybe I could do something with a text file? But how do I get my application to store the data when it crashes? Do I have to surround my whole code with a try catch and then in the catch save everything to a text file? Well I like to know if some of you have better ideas or can point me in the right direction.
View 4 Replies
Mar 2, 2011
I am creating an application that will be faced with multiple decisions to make and I want to know if it is possible to create around 20 if statements to excute or decide between before excuting?
The application will encounter multiple websites but each website will have the same elements but not neccessary in the same order so I was going to tell the app to loop through the IF statement and if the condition is met to run that sub routine where it starts over and loops through the IF statements until next condition is met.
Is this possible in VB.NET or is 20 or so IF statements to many to use at once?[code]...
View 3 Replies
Dec 19, 2010
I have a dBase file named PROBA, with two cells: "VNEV", "KNEV".I would like to see the records back-to-back in a Msgbox.
Imports System.Data
Imports System.Data.Odbc
Public Class FormCount1
Public Sub Recordszm() Handles MyBase.Load
'TODO: This line of code loads data into the 'DataSet1.PROBA' table. You can move, or remove it, as needed.
[Code]...
View 4 Replies
Oct 3, 2009
I reopened my project to edit it but it is only showing the code not the design I cant get it back how do I do it?
View 3 Replies
Sep 13, 2009
How could I make it where I could accurately go forward and backward? Whenever you press back once, then back again, it takes you to the page you started with. So how do you make it where it can go back as many pages as there are and then tell if your a the highest or last page when going forward?
View 1 Replies
Oct 18, 2009
I've already finished the program and the last task was to add a password for my MS Access database. I've created the password in Ms Access and I've already modified the connection and saved the password but when I run the program all codes like this
Me.Table1TableAdapter.Fill(Me.Database1DataSet.Table1)got an error message says Not a valid password.
View 3 Replies
Dec 17, 2010
I need to send data back to my Apache web server so it can be updated in it's MySQL database, I've looked at NuSOAP as it's written in PHP but man that's hard. I'm lost, is there a more simply way to send it back? even to call a webpage and send data into it?
View 4 Replies
Jul 5, 2010
been banging my head on this, i need to get the applications path, then go up 1 folder then into another. As i have a main app and sub apps.
So were Application.StartupPath()is for example:"C: Main app folderSub app folder"How do i then go up a folder to"C: Main app folder"I Know it needs some string removal using on it but i can seem to get it right, after which i could then use Application.StartupPath() 'string removal here" & " ools"to navigate to another sub apps folder etc.
View 8 Replies
Nov 6, 2011
I have this code.
'//////////////////////////
If TextBox1.Text = Form2.TextBox1.Text Then
TextBox1.BackColor = Color.Green
[code].....
View 2 Replies
Aug 9, 2009
My application was designed in Visual Basic 08. There is a feature in the application that allows users of the app, to view a "Recording" page from the application, and works with a Soap API. Once the application sends the requested data to the API, the API responds with a custom URL, which must then be opened in a browser.How do I capture the response, or to be more specific, the URL that is being sent back from the API? Below, I have included the full parameters of the api, as well as the code that I have so far. What I really need to do, is figure out how to caputure the URL that is being sent back from the API to a text box. This will allow me to then transfer that text to the browser. But again, I have listed the full specifications, or parameters of the api below, as well as the code that I have so far. In case it helps, the app was designed for Windows Mobile using Visual Basic 08. [code] I am able to send the correct information to the api, but when the api returns the response, with the URL in it, I am unable to obtain that URL, and therefore unable to open that URL in a web browser, which has to be done as you can see from the API specs.
View 18 Replies
Sep 13, 2010
I'm rather new here (actually just made this account in hopes of getting this question answered. I'm currently attempting to try and get text from a textbox to change the letters to numbers. A weak encryption if you will.Example:jack and jill ran up the hill in numbers would be say j=30 a=20 c=99 d=200 ect
View 2 Replies