I want to use firefox as a default browser for a webbrowser control in a form in Visual Basic Express. How do I do this? How do I launch firefox or an external .exe program from within my application and send a page for it to open or load automatically?
i want to add a menu item to the user's Send To menu. In Visual Studio Installer i have added a shortcut to my application in the "User's Send To Folder". When i install my application a shortcut is being created in c:UsersalexAppDataRoamingMicrosoftWindowsSendTo as it should be in Windows Vista.. Despite this the menu item is not showing! I cannot see the Send To Menu item!
how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.
I have a button in a grid that I created programmatically. The button edits some data in a table using data in a hidden column of the grid that the button is in. Normally I send a hidden field the row data using javascript onclientclick of the button then make the changes to the database using that hidden field. But there must be a way to send the addhandler of the button a parameter. This is the code i have to clarify....
Dim btnedit As New ImageButton AddHandler btnedit.Click, AddressOf btnedit_Click btnedit.ImageUrl = "imagesttnEditMini.gif"
I have a solution, which has two projects.Project A generates an executable. Project B generates a dll,which is used by the executable. This project I downloaded from CodeProject site, and it worked very well.[code]...
I created a Console Application, with a Sub Main(Byval str As String), and when I run the debugger I get the following error:Error1No accessible 'Main' method with an appropriate signature was found in ...
Also I'd like the solution to my problem to apply not only to the debugger, but also to the .exe file that will eventually be created.Also, I found the following code on the internet, but I don't understand how to send the parameter in still.
Public Sub Main() MsgBox Command$,vbOk, "Command Line params" End Sub
Do I have to open cmd.exe, type: programname.exe -parameter 'Or something of that sort?
i make a program with vb.net2005 and database sql express 2005 i would like to press a print buuton to send a parameter in an inputbox to put value in it here is my code:
dim mm1 as string mm1=inputbox("enter number") sqlconection1.open dim cm as sqlclient.sqlcommand cm=new sqlclient.sqlcommand
I created a setup project and tried to create a shortcut for it in "User's desktop" but never work. When I click the shortcut I created, it always open Desktop screen instead of open exe file.How to create shortcut for program?
I am trying to use the send keys function to send text to another program.I ahve gotten it al working well, except for using () as I know sendkeys doesnt like these.I have tried using the Replace function in several places in my code to replace the ( with {(} and {+0} etc, with various other options tried.But when I run the program, it seems to skip this out completly and leaves them in the string as (, and therefore it errors and wont run.When I step through it, it goes through the function but doesnt alter the strng as it should. This is the code to send the string and my attempt at making it replace the () in the module
Module TextReplacement Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Int32) As Short Dim counter As Integer Dim sData() As String
[code]....
The error I get when i try send "Test :)" is: ArgumentExcveption was unhandled "SendKeys string 'Test :)' is not valid"
I would like to create a simply shortcut to a specified program. All of the codes I've tried use the WshRunTime library and it seem to throw an exception every time.
I've just created a game program in VBE2008.Who do I add the shortcut Icon to the project file?When I build my program into a .exe file I want it to include a small custom icon that will automatically display when you hotlink from the desktop to the .exe file.
I have this code for my shortcut keys Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.Shift = True And e.KeyCode = Keys.F3 Then 'Do something End If
But I also have a button to send my program to the System tray like so: NotifyIcon1.Visible = True Me.Visible = False How can I get my shortcut key to work while my program is in the system tray? It doesn't work while its a notify icon
I am trying to add a funktion to my Program that adds a desktop shortcut when installing.I get a shortcut but it doesnt behave as the program meny shortcut.It doesnt check for newer versions as tje program meny shortcut does.I've been looking at other code but I dont understand how it works. And I dont get it to work.[code]
I created a webrowser in VB.net to track employee usage and it seems to be working fine but I wanted to find out what it would take to set this as a default browser on a PC.I also would need to know how to pull the URL from shortcuts so when the program opens I can have it open to the URL in the shortcut.
Im trying to create a program that will be using a shortcut key in displaying a form. But im having problems on how to know if the cursor is on the textbox or datagrid.For example, If I clicked the textbox, and i clicked f1, Customer List Form should appear. No problem with this. I used the following
If txtCustomerName.Focused = True Then If e.KeyData = Keys.F1 Then Form9.ShowDialog() End If End If
But when I Clicked the cell on the datagrid, and click F1, Product List Form should appear. This is my problem, the form is not appearing when i click f1.Here is my
If dgvSalesEntry.Focused = True Then If e.KeyData = Keys.F1 Then Form8.ShowDialog() End If End If
I want to hear some discussion regarding what is the best way to persist program parameter and variable settings from one run of the program to the next. I used to often use the ubiquitous INI type file in VB6 programs but I am aware that these are not formally supported in .Net programs. I also have a major aversion to adding to the already overwhelming bloat of the Windows registry by using that to store values.
I'm trying to extract the icon from a shortcut (lnk file), but I end up with the shortcut symbol in the lower-left hand corner of the image. How can I extract a shortcut's icon without this symbol?
Here's the code I'm using:
Dim ico As System.Drawing.Icon = System.Drawing.Icon.ExtractAssociatedIcon("C:shortcut.lnk")
I'm trying to create a shortcut for my program that sends the user to the world map of a website with the press of a button, but it isn't working. Here's my code:
Private Sub Game_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Game.KeyDown If e.KeyCode = Keys.M Then Game.Navigate("http:fallensword.com/index.php?cmd=world") End If End Sub
I am trying to figure out how VB can focus a specific program and then send commands to the program only. The focus would only be for the commands and would not make the program you are currently in lose focus. Simply, what it is controlling is a Windows Application called GOM Player. I use it to study my material for school. I plays movies in it and don�t have to click out of the application I am working in to pause, play or rewind. The keypad and the company who make it actually have it built into iTunes and it does exactly what I want GOM Player to do.
The reason I dont just use iTunes is because I can�t get my video files to play in iTunes. After pulling teeth with the manufacture I finally to tell me that the iTunes functionality is accessible via plugins built into iTunes. So trying to mimic what is being done there does not help. I believe that a knowledgeable VB programmer could answer my question in seconds, but having some experience with coding and programing I know it also could be a lot more than what I think. [URL]
The question is: What is way that VB can send the key for the macro only to the GOM Player Application even if it is not focused or even If it is minimized.
I build two programs, 1 - bootstrap and 1 - mainprogram
now, mainprogram has 2 constructors, the default and the one which i defined and it accepts an integer the default constructor checks the variable named iscalled a type of integer to have a value of 1 or zero, if its zero then it should shows a message saying "Improper initialization" then exits..
What I mean here is, mainprogram should only run if its called by the bootstrap program.
I am having a stored procedure in sql 2005 the procedure is to retrieve year code between two days it works correctly in sql query analyzer and it returns value [code]...
I have two tables and the form contains a text box so I need to add rows of Table 1 to Table 2 and taking the value in the text box for each row is added to Table 2.[code]...
I'm trying to create a function that searches up a WebControl's parent-child relationship (basically the opposite of WebControl.FindControl(id as String), but looking for a specific WebControl type).
Example
I have a user control in an ItemTemplate for a GridViewRow. I'm trying to reference the GridViewRow from the user control. The user control may or may not be inside a div or other types of controls, so I don't know exactly how many parent's up to look (i.e. I can't just use userControl.Parent.Parent). I need a function that will find the first GridViewRow that it finds on the way up the parent-child hierarchy.
I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?