VS 2008 Make Button Open A Program And Make It Windows Size?
Aug 23, 2009How do i make my button open a program and make it windows size?
View 6 RepliesHow do i make my button open a program and make it windows size?
View 6 Repliesi need to know the exact code that once you click a button on visual basic program it will open a program in a directory for example:C:Program FilesiTunes.exe
View 5 Replieswhat is the code to make windows open a program at the startup?
View 4 Replies1. How do I make a VB button open a website? I want it to open the website using the default browser.
2. Is it possible to me to have VB look for a program? Right now one of my buttons will open a exe, but only if its in the same folder. How can I make it so that it can look for the program?
3. I want to add a "help" button so that when a user clicks it they will see a box with some info.
I'm trying to create an application in VB.net that can come to the front once a certain condition occurs (in this case, a file being created). I've tried the following code, but it just results in the taskbar button blinking on Windows 7:
Me.Activate()
I understand the reason for this, and I completely understand why people don't want any random application to steal focus (I hate it too). This is an extremely limited use application (only 3 computers will actually be using it), and the users in this case would want the application to popup in front (there will be an option to turn it off too).
Any ideas if this is still possible to do on Windows 7?
I used this code to make my program to startup with windows it should add a registry entry:
Dim key As Microsoft.Win32.RegistryKey
key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWAREMicrosoftWindowsCurrentVersionRun", True)
key.SetValue("MyApp", Application.ExecutablePath)
The problem is that it underline KEY and say declaration expected but shouldn't dim do the job for the declaration.
I'm trying to make a button that can change webbrowser1 Size so it gets maximized.
How can i do this?
I made vb.net program for 1440x900 resolution, if i run my program on 800x600 or 1024x768, my program's resolution is bigger then windows, so i have problem with resolution. Now i want to change my program's size and i am interested in, wich resolution is correct to make program, 800x600 such as minimum?
View 9 RepliesI want to make menu but shorter code >>this menu the button change size for exmple boutton become large when mose Osculate this boutton ?
And menu have shorter code >> thus ; when add new boutton in menu i dont need add new code >>>maybe use for loop but failed ?
I'm trying to make buttons that will open each of the "special folders" in Windows Vista. Here's an example:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Process.Start("explorer.exe", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))
End Sub
As you can see in the above code, the button will open the Documents folder. My problem is the only folders this method can open are the documents, pictures and music folders, while I also want to open these folders below:
Downloads
Videos
User folder (aka the folder that has the user name on it)
Computer (aka My Computer in XP)
how to do that?
I have a windows form that contains a table layout panel extending the whole form, the size of this table layout panel may change at run time according to it's content, how can I make it's parent form automatically take its size,
View 1 RepliesI 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 am creating an application that will be used to open a PDF by the end user. I have been able to create a the application thus far, and it's worked as I want except for one.
I used the code below to get the buttons to open up their respective files:
Process.Start("filename.pdf")
I need my program to open the users default web browser, and go to a specific url. Its actually a menustrip but still.
View 5 RepliesI'm making a application but I want it to be as small as possible also if you use the FormWhatever.Show function, if you close the parent window, everything closes. Is there a way to make a button open up an application that is NOT in the current project?
View 5 RepliesHow can I make a program that will open an image, put it in picturebox1, and save it resized?So far I have the open code
OpenFileDialog1.ShowDialog()
PictureBox1.ImageLocation = OpenFileDialog1.FileName
Me.Text = OpenFileDialog1.SafeFileName
PictureBox1.SizeMode = PictureBoxSizeMode.Zoom
Just for fun i am trying to make a program who can open add-ons like firefox. I was thinking that i maybey can use something like this: Me. Controls. Add(the add-ons file}and if it's possible, what kind of files shuld i use, dll?
View 2 RepliesI have a vb.net form which has a button in it. The button will call A.exe (it's a vb.net exe) using the command Shell("A.exe ", AppWinStyle.NormalFocus).
How can I make sure that everytime I press on the button, A.exe will only open once, and does not open a new form each time?
I want my users to be able to have my program open on startup. I am coding in vb.net. How can I go about doing this?I can't find a "system startup" folder anywhere that I could just copy a shortcut to.
View 4 RepliesI need to make my program open a file, write a length of 142 bytes over an existing 142 bytes and save. Please help. I have gotten no where with it so far...
View 3 Replieshow i can making my app in open with list for windows like if i chose my app to open txt file my app will open the txt file like example: ex.txt ==> open with my app and my app with view the ex.txt
View 1 Repliesim trying to make an application which on start ask the user to browse for a .lnk file Once the lnk file has been browsed,the application is shown and there are two buttons
1.Launch
2.Exit
When The Launch Button Is Clicked,The .lnk File which the user browsed to at application startup should open. On exit,well it just exits the application! and the openfiledialog should pop up only for the first time the user ever opens the application.the file path should be stored in a .txt or .ini or registry file so that next time he doesnt have to browse for it again..how would i go about doing this!Here is my code so far! Public Class Form1
[Code]....
How to make a transparent button in vb.net(windows application)
View 3 RepliesI have a form, with a split container, and a picbox in the right container.I need make everything resize according to the picbox size? I cant get it to work!
picbox min size cant go below 320x480 everytime i try to have the code do it, either nothing changes or the form gets tiny!?
i'm relatively new to vb. I'm trying to make a relatively simple program to get all open window titles in a ListBox. I'm kinda borrowing off some tutorial's/sample code so I might have some declarations I don't need but this is what I have:
Code:Imports VB = Microsoft.VisualBasic Public Class Form1 Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Integer) As Integer
[Code]...
Most applications will expand all components if the user change the size of the forms
View 2 RepliesHow do I Close a Form and then open a new one straight away? Im trying to make a Login for a Program, but I want the Login Box to open first, then disappear when the credentials are correct and a new Form to load.
View 3 RepliesI am trying to make a button maker program.I know I can make a rectangle (will be the main button) and a label (text on it )but how do I save it to png ?
View 3 RepliesWhat i want to do is add a download button to my project with a progress bar
to download a file called eg my custom world at war zombie map.zip to
C:usernameappdataloacalactivationcodwawmodsmapname
what i want is it to be installed in there but i dont what the user to have a choice i just what it to be installed there is that possible so when they click download it will download the file to that location
because when i make a program and try it under windows xp it give me error that it is need .net framework 3.5 so how to make the .net framework install when i install the program i tried to use setup wizard in vb 2008 and put in it the framework but it didn't work
View 2 Replies