I wanted to open a URL from my VB.net Application on a button click event (for sending SMS from my application). However, I don't want my users to know about it & I don't want to have a browser pop up and execute the URL.
I wanted to open a URL from my VB.net Application on a button click event (for sending SMS from my application). However, I don't want my users to know about it & I don't want to have a browser pop up and execute the URL.
Is it possible to do it invisibly? And once it is done, is it possible to close the invisible browser window too?
In a program I'm working on, I want a "Loading..." dialog to close when it can't log in to a site using the username and password provided by the user. Basically, I have the code set up right because the function it is supposed to carry out when that occurs does work, but for some reason it ends up in some really weird stuff happening. In the Loading form, I have it set to do "Form1.Show()" and then "Me.Close()", assuming it would simply show the login form and then close the Loading form. However, when this happens, the Loading form closes, and then for only an instant Form1 shows, and then the Loading form shows and Form1 closes. This happens forever until I stop the debugging, and I can't seem to figure out why. Am I using the wrong method? What exactly does Me.Close() do anyways? All I want to do is close the form and open another
In my program, I have a timer with a inteval set to 1000ms. The timer is executing a MySQL-command, and right now I'm opening and closing the connection each time.
I caused the VB.NET2008 IDE to do something extremely odd and unintentional with some code I was writing. As some of you know, I mostly write programs for industrial equipment. On one of our products, I needed to make certain forms automatically close after a timeout period. To do this, I began programming a usercontrol with a Timer on it (interval = 1000) and a ProgressBar. Timer.Enabled was set to the Enabled event so I could toggle it. When the control counted to it's timeout period, it would call Me.ParentForm.Close
So I build my project, and drop it on a form in the IDE and I see it begins counting! Huh... I had no idea timers were active in the IDE. I wonder what happens when it hit's it's trigger? I figure probably nothing since Me.ParentForm was actually the designer. When it triggered, the whole IDE crashes without save. I tried it twice now. Here's my
I'm trying to do a mail merge but keeping word invisible from the user, no flashing of word onscreen. I've set isvisible = false when declaring the word object and also when opening the word file but word will always appear on screen. New to this so not sure how to access word without it appearing on screen.
if you guys have used office 2003 or better( i am sure all) then you would have seen that when the help window open it causes the active windows say of MS WORD to change accordingly so that this help windows fits with it along the right side and this functionality i want to implement in my VB windows application and have no idea how to do it Also i have seen this feature in GOOGLE DESKTOP GADGETS...
i want to implement that when my application opens which ever is the active window( of any application) snaps to the left and allows my application to fir in the right hand side i am developing my application in VS 2005 using Visual Basic.
I may be deploying my app (its a database software for videos) to 4 - 5 computers. I want to add some new features but have the software update automatically and silently. Due to security holes or issues with bugs, I don't want to give the clients the choice to update. I just want it to check for an update and if one is available, it can SAY that its updating on a label but that's about it and it automatically updates without confusing the user or wasting any more time than it should.
I have a form based application and I need to add the ability for it to read command line arguments and not display any forms if the app was started from the command line. How can I go about this?
I have started to use VB .net (Visual Studio 2008). I made a small program which starts with form1. This form1 automatically loads form2 and the form1 should close. But when it closes form2 closes as well.
Public Class Form1 Private Sub LC_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Show() Form2.Show() Me.Close() End Sub End Class
I started making a program, and I wanted to insert music to play. i just added music to the resources and used the code my.computer.audio.play(my.resources.name_of_the_file and so on. this worked perfectly until I added the 5th song. the resource file became to large and vb said it was corrupt. so I thought of a new way: making a music file opener. I made a code so a window opens where you can select your .wav files. that all worked, but I couldn't get it so the music would start automaticly or that it would actually play. this is the code I have so far:
vb.net Dim Open As New OpenFileDialog() Open.Filter = "Wav [*.wav*]|*.wav" Open.CheckFileExists = True
[Code]....
as you can see I put stars in the place where I have no idea what I have to do next. I e.g. tried my.computer and a path
make a quick app that will create 3 random letters, and search google with it which i can do. It is then ment to open the first link, and grab a sentence, or a group of words randomly.
I would like to close my appliaction and then open it based on a condition.Lets say I have a Lab1.EXE file, I want to close if the flag = True and then reopen it.
If ClFlag = True then Application.Exit ---Then RUN LAB1.EXE Endif
I never had problems with this before but now this ain't working right. What I want to do is open a new Form and close the Current Form that is already open. This code use to work for me
I want to close form and open another one without termination of the application, when I try to open second form and close first one the application terminate.[code]...
When I open my application I have the first form which opens as the Register form. When I press the Activate Button I want the MAIN form to open and I am using the code below as the last two line[code]...
I'm developing a WinForms app in VB.NET, that handles sets of style data, and when the user clicks on another set's label, it prompts through a dialog "You are leaving this style preset to edit another one. keep changes on this one? [Yes] [No]".But, I'm facing the problem that, when the user clicks either option, and the dialog closes, everything has to be refreshed, and loading the form again seems a good option.[code]But as soon as that sub is called from the prompt, it crashes the application. (doesn't show an error in debug, simply crashes) How should I, from a given dialog, close the dialog, it's parent, and re-open it's parent? (which triggers all the Dialog_Load() code of the parent)
Any code I could get that would Open + Close a .bat or .cmd file? Not ALL .bat / .cmd files that are open, but just ONE (runserver.bat / runserver.cmd).
Is it possible to issue a Open CD and a Close CD using VB.net? Are there any examples of code I could see or articles? Thanks for you help, in what seems to be such a trivial matter. (I know though that the simpler the function the more code seems to be
I have 4 tab pages on a form. and on each tab page a datagridview witch is connected to a specific table from a database located in Microsoft sql server 2005. I am wondering if it's posible to automatically open the tabpage2 when I click on a specific row in the tabpage1..
In this project I want to read text from the text file.. after that want to update the text file.. if i just run the code manually, the code run well.. but if I want use timer to keep the code run automatically there show problem.
here my code
Imports System.IO Public Class Form1 Dim skrng As Date = Date.Now()
SQL connections confuse me sometimes In almost every SQL related code on the internet the routine is like this;
* Open connection * Execute SQL command * Close connection
Is it good practice to just open a connection when the application starts and use that connection until the application closes?I know that sequential connections are required when processing more queries, but what if I need to poll a certain Table every x seconds? Isn't is better to keep that single connection open for as long as the application is running (and re-open when a failure occurs) instead of opening a new connection every x seconds?