VS 2010 Override Icon - Executes An External Application - Via Shell()

May 19, 2012

I have a VB application that executes an external application, via Shell().

What I want is to be able to have control over the "shortcut properties", if you will (such as icon & title), resulting in the external app being forced to use that specified icon and title for its spot in the taskbar while it is running.

A normal desktop shortcut does this easily (by editing its properties) but I don't know if it's possible to take advantage of that.

View 14 Replies


ADVERTISEMENT

Use Shell To Have Application Call An External Application But Its Not Working - Error: 'System.windows.shell'

Jun 3, 2011

I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!

Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.

Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click

[CODE].....................

View 2 Replies

Simple Button That Executes A Shell Command

Oct 24, 2011

I haven't touched VB or Visual Studio in an incredibly long time, so I appologize if this sounds ignorant.

Right now, my application (pictured below) is a simple button that executes a shell command. I was thrilled that I even managed that, but it got me to wondering if my application could execute that command, rather than sending the process to cmd.exe.

View 4 Replies

VS 2008 : Make An Application To Edit An External Exe's Icon?

Apr 3, 2009

I'm trying to make an application to edit an external exe's icon, and other resources, much like ResHacker.

View 3 Replies

Add An Icon To Shell Handlers?

Apr 30, 2008

set the Icon for an item in a shell handler? I've set a contextmenu handler to the extension .savdata and added the text "Open with ConvertFile" to the handler so that the context menu for .savdata looks like this:

Open with ConvertFile
-------------------------------------
Send To >

[code]....

So how can I use "my.computer.registry.HKEY_CLASSES_ROOT" in VB 2008 express edition to add an Icon file path to the left of the context menu handler?

View 7 Replies

VS 2008 Entry In Shell Context Menu With Icon

Aug 30, 2009

Seeing how Notepad++ does this, is it possible to achieve something like this:using Registry class?

View 1 Replies

VS 2010 Path For External Application?

May 3, 2011

I guess this one is pretty basic, yet i have not been able to figure out.So here's the deal, my application uses an external exe to generate some txt files that the application needs for a use case. Since hard coding the path of such exe would be hideously wrong in so many aspects i would like to include a little configuration option for the user, so he can specify the path of the external exe for the application to be used.I also would like to have something like that for the path of the Database I'm actually using.

View 2 Replies

VS 2010 Take Screenshot Of External Application?

Apr 8, 2011

I need to take screenshot of another (third party) application window and save it in a folder.

View 5 Replies

VS 2010 - Setting Position Of External Application?

Sep 7, 2010

I'm trying to set hotkeys for all my favorite websites. When one of these hotkeys are pressed, I want it to load the assigned website in internet explorer, but I want internet explorer to load on my SECONDARY monitor. I've already set out the hotkeys to load internet explorer, but it loads on the wrong screen. How to check if an instance of IE is already running. To be a bit more specific: the secondary monitor is set to the LEFT of the primary one. And the resolution is at 1440 x 900. So basically, I want to programmatically set IE's position to (-1440, 0) from within my application itself.

View 5 Replies

VS 2010 Placing An External Program Into Application?

Mar 26, 2011

I am placing an external program into my application. The current code is as follows:

Const SW_HIDE As Integer = 0
Const SW_SHOWNORMAL As Integer = 1
Const SW_NORMAL As Integer = 1

[Code].....

What I want is for "notepad" to open up maximized and without a border. I already have it maximized, but I want the border gone.

Also how can I make my current form the same size as the process?

View 2 Replies

VS 2010 Calling An External Application And Setting Focus On The Same?

Oct 8, 2010

I am wondering if it is possible to call an application, say "notepad.exe" (among other application's that are already open) and setting focus on the same, so the user can readily start working on it.

View 6 Replies

VS 2010 Getting External Application Minimize,maximize Status?

Aug 23, 2011

I want to get status of an extarnal program for example notepad.is it minimize,maximize or active or in background? how can understand from my vb application?i think need to write api function. i found somethink from forums but they just control extarnal application not give a status.

View 2 Replies

Application Icon In VB 2010 Express?

Jan 2, 2011

I created .ico file for my application and indicated it in Icon property of the main form in VB 2010 Express. However when I build my application the .exe file has standard form icon, although when I run .exe I see created icon in form caption area. I even created 2 versions of the icon (32x32 and 16x16) in order to see if this is related to size.Is this something related to VB Express or I am missing something? Do I need to do something additionally to assign icon to .exe file when viewed in explorer window?

View 1 Replies

Application.Startup Path Points To My Debug Bin When User Executes ?

Jun 29, 2012

I sent the application exe to a user to test and they get an unhandled exception error and the details show my personal My Documents Folder/DEBUG path from the project. So I tried to use Application.ExecutablePath but when I release that it points to "My Documents" Folder (not the debug) folder. The file to open is in the same folder as the exe is in but for some reason the error occurs because the application is not looking for the file using the path where the EXE was launched from. Here is my code that relates to the section giving my users a problem:

from the module
Public Class shrd
Public Shared ocSess As cSession

[code]....

How can I get the application to open the file that is in the same folder as the exe when the user launches

View 4 Replies

VS 2010 F8 (stepping)executes Only First DIM Stmt And That's It?

Dec 23, 2010

'global declaration
Dim FILE_NAME As String = "EventList.txt"
Dim PATH_FILE As String = Environment.CurrentDirectory() & "" & FILE_NAME
'end of global declaration

[Code]...

Using F8 to step through all of the code, it gets to this sub, highlites Dim fs and then hit F8 again it just pops up the form, no message boxes - nothing. Other notes: EventList does exist in stated directory.

Any ideas why it wouldn't complete the sub? the first debug line after hit the f8 is: A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll but the file is there

View 5 Replies

Registered Hot Key Override Other Application Hot Key?

Dec 7, 2011

I registered the hot key Ctrl + s for my application to show and hide a panel using

[DllImport("user32", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool RegisterHotKey(IntPtr hwnd, int id, uint fsModifiers, uint vk);

This method is working fine on my application. The problem is when i opened my application and opened a notepad typed something and tried to save the notepad, it is not saving and in the back side of the notepad my application's, the panel is showing and hiding.

View 1 Replies

Override A Lightswitch Application Title?

Apr 20, 2011

I'd like to insert the application version number into my Lightswitch application title bar, but I haven't found anyway to programatically set the application title.

View 2 Replies

Application Icon Image Doesn't Show In Taskbar In "small Icon" Setting

May 4, 2011

I have a vb.net 2008 application which has its corresponding icon.
The icon shows correctly except in the taskbar when the "small icon" setting is on.

My vb.net project includes a .ico file which when I see in the IDE includes 16x16, 32x32, 48x48, 64x64 and 256x256 bitmaps, in 4, 24 and 32 bits, also 3 .png images in 256x256 32 bits each.

I made the icon myself simply using a 64x64 bitmap and then converting it to .ico, and assigning it to the application in the project properties. I thought windows would use and escalate the corresponding image, it shows even in the file explorer properly in the small icon form, but not in the taskbar.

View 1 Replies

WPF Single Instance - Cannot Override The Main Sub In Application.xaml

Mar 29, 2011

Has anyone using VB.NET 2010 been able to create a single instance application? I've followed the MSDN sample but it does not have an Application.xaml file. Converting any C# samples to VB doesn't work as I cannot override the Main sub in Application.xaml (C# calls it App.xaml).

View 2 Replies

VS 2010 Override What The Index Returns?

Aug 30, 2011

I have a class that inherits List<T> [this is a C# project, but it can relate to VB.net] but I want to know if there's a way to force the index to return something else....let me give an example:

In the original List<T> implementation, whenever you call for an item on the list, like so:this[0];You get whatever T is. What I want to do is override that, and grab whatever T is, then return a certain value of T.

View 1 Replies

VS 2010 Text Compared N Override?

Mar 15, 2011

I have been doing this project for couple of weeks and i get stuck and cant find a way to do it. I need to compare this 2 txt files. So if the data in FILE A matched data in FILE B, the quantity in FILE B need to deduct the one customer bought and replace the new quantity. For example:

[Code]...

View 8 Replies

VS 2008 Make A Shell Replacement For The Windows Default Shell

Aug 1, 2009

I'm going to attempt to make a shell replacement for the Windows default shell: explorer.exe. I'm not sure if its possible using Vb.Net, but I can't seem why not. My end goal is to use a custom made shell for a Windows Preinstallation Environment instead of the default command prompt. I plan to use a 3rd party program to compile the program with the .NET Framework. Otherwise, it wouldn't work because Windows PE does not support the .NET Framework.

View 1 Replies

VS 2010 : Override Constants In Base Class?

Mar 31, 2011

I have a base class, with a const giving its name. If I inherit that class, how can I override the const to give the name of the new class?E.g. (and I know this won't compile!)

Public MustInherit Class BaseClass
Const ClassName="BaseClass"
Public Sub DisplayName
MsgBox(ClassName)

[code]....

What I want is for class One to display its own name, not that of the base class.

View 5 Replies

VS 2010 Override Text Property In Textbox?

Aug 9, 2011

I just start working with VB. In a programme I need to keep the value in text property after programme closed.That is why I want to change (override) Text property in TextBox.Then this value will be default value when I open the programme again.I will assing a value to textbox1 in a Sub.

Sub button1_click
Textbox1.text="ttt"
End Sub

Then I need to change the Text value under "Properties" window.TextBox1 System.Windows.Forms.TextBox

I think there is Get-Set method for property override but I dont know how to use.How can I do that?

View 2 Replies

Call External Windows Application Form From Application?

Aug 17, 2011

I Have one Windows Application in which i have one MDI Form (Say App1). And I too have another Windows Application in which I have a Child Form (Say App2). So now i want to Call App2 from App1 .. And want to Display App2 form As MDIChild in App1 MDI Form . I am Able to open the Form of App2 , But how to set It As App1' Child .

View 2 Replies

Make An External Application 'child' Of Main .Net Application

Jan 23, 2010

I use SetParent to make an external application a "child" of my Main .Net application. This works fine.What I need to know is why can't I use Me.MDIChildren(0)I thought that using SetParent would increase the number of children by 1, thus allowing me to reference it with the above code, but it shows there are no children in the array.I have been trying, without luck, for 2 days to try to maximize an external app being displayed in my app. I can get it to display, but I would love it if it could Dock to the same size as its container (a panel)

View 3 Replies

VB 2010 Shell In Windows 7?

Apr 23, 2011

Shell(
"c:windowssystem32SoundRecorder.exe",
AppWinStyle.NormalFocus)

[code].....

View 5 Replies

Retrieve Application Path For Associated File Type From Registry For Use With Shell Command?

Jun 17, 2009

I'm using VB.NET in Visual Studio 2008 in a Vista 64-bit OS. I'm trying to find an easy way (there must be one) to quickly retrieve from the registry the application file name and path to use in a Shell command to open a particular file. Specifically, I want the user in my app to be able to click on a PDF file and have the app open that PDF file using the application associated with PDF file types - Acrobat Reader, for example. Anyone have any suggestions as to proper coding & syntax for the following sequence?:

(1) Get name of .exe file associated with .pdf file type (most likely from the HKey Root Classes hive)

(2) Get path for the .exe file

(3) Shell("[pathname]appname.exe filename.pdf")

I've spent a couple of hours looking through the forums and haven't found what I'm looking for.

View 3 Replies

VS 2010 Shell Wait And Exit

Mar 10, 2012

i have a program that runs a cmd command. my problem is i want the program to wait until the cmd processing ends then in closes the cmd UI.. [code]

View 12 Replies

Using The Shell Function In VB 2010 To Launch Perfmon?

Apr 22, 2011

I'm trying to launch perfmon /res on a Windows 7 (32bit) install using VB Express 2010. When I use the line:

shell("C:WindowsSystem32perfmon /res", AppWinStyle.NormalFocus)

All I get told is that the file doesn't exist. IT DOES EXIST! ITS RIGHT THERE! If you try in cmd it works, if you go there in explorer it works, if NASA used an orbital platform connected to my c$ share and tried, it would work. If you get VB to check for the existence of the file using an if statement it finds it, then tells me its not there the very next line when I use shell to run it.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved