I'm looking to be a able to add my own windows shortcuts which take effect when my own program is running in the background.For example, if the user has Notepad open, they may press Alt+F4 to close it. I would like the Windows Key + Q to do the same action.So Windows Key + Q = Alt + F4.There are a few shortcuts I would like to do but if someone could help me do it for this one then I should be able to take it from here.
I have the following code which I use in another Form and it works perfectly. I copied the same code to another form, changed the controls, keys combinations, etc., but the keyboard shortcuts do nothing at runtime. None of the key combinations work, it throws no Exceptions,I put a MessageBox in the F1 KeyDown conditional, but it doesn't show. That tells me that it's not Handling the KeyDown Event.[code]
In a VB.NET Winforms application, I have a form that contains both a datagridview and a textbox. I have some menu item entries that have shortcuts of Ctrl + X, Ctrl + C, and Ctrl + V that operate on the datagridview. However, these override the default cut, copy, and paste shortcuts for the textbox. How can I make the menu shortcuts only apply when the datagridview has focus?
Is there a way to change default Windows keyboard shortcuts like CTRL + C, CTRL + X etc. to my desired shortcuts like CTRL + J, CTRL + Q etc. in .NET ?
I can register the new hotkey easily with RegisterHotkey. I just need to unregister the hotkeys Windows has registered and add their functionality in the new hotkey.
Just looking for a bit of advice really on the best way to go about something.I am creating a new freeware game in which I am creating like OS for the game. So far I have the OS Home screen (Desktop) with a menu a bit / time / date etc.hat I am trying to do (and not sure the best way to do it) Is I want to be able to create windows within my virtual desktop 'form' as Windows does essentially for instance clicking on 'start' and going to 'Internet Explorer'I have turned the boreder style to no the desktop form and any other thing I do so its my look and feel but I am not sure the best way to go about this. I possibly thought creating my 'windows' as panels and just showing and hiding them but that doesn't appear to work when I overlay them.
I'm trying to add .lnk files to a setup project but am unsuccessful. I have 2 custom shortcuts that I created which link to a network share, but everytime I try to add them to the setup project in the users desktop or start menu, vs simply doesn't allow it. No message box or error box appears, I select the .LNK file to add and it "pretends" to add it and allows me to select it, but doesn't appear in the setup project folders.
I want to make a program that makes hidden shortcuts in drive c the files I want to add shortcuts for is in C:/program files/common files/apple/apple application support I want shortcut for all files and folders in this directory
I seem to be having an issue with Building my application. THe programs builds just fine,but when you install the program and then run the program it wants to act like its configuring the program, prior to running the actual program.I get a windows box that pops up stating its configuring the program and then it runs.But it only happens when I access the program through the shortcuts that I have the program create when it installs. If I go directly to the program directory and click on the program there, it starts just fine.
I have 416 different cards (8 decks) I dont want to spend too much time and declare each one. Is here way easy way to declare them without naming each one?
I have written a program in Visual Basic 10 and all is well. I have published it and have been burning the result to a cd and installed it on various computers, however it is the click once app, which has been fine till now. What I need to do now is to have the program install the .exe file and associated files (non click once app) to a specific drive on a computer or network computer. I have searched the net for instructions on how to initiate the windows installer and have failed. is there a program that you can select the source files then point to the installation folder tell it to go and an installation package gets made that I can burn to disk.
I have a VB program that creates a temporay PDF file then opens Outlook and attaches the file. I create the file in hte application path (the location that the program is running from - normally C:Program FilesProgamName This works fine in XP as it appears there are no crazy permission issues. However in Wondows 7, the file does not appear. There are no errors, the file does not exist in that location.
I've changed the path to the root of C:, however this doesn't work either. I suspect it's something to do with W7 virtualisation, so the question is where can I create a file that I can then access again?
I was trying to avoid creating it on a share on a server, but it's looking like this is the only place to put it as there doesn't seem to be many places a user can write files to in Windows 7.
Surely there must be a location that users can access (without being administrators) to create files. Don't even get me started on the fun I have had with the registry in W7!
I'm writing an application that I want to keep status text always on the taskbar. Some programs like Windows Media player create a toolbar that can be added to the taskbar. Is there a way to do this in VB.NET, and if so how ... ?
I can create a notifyicon, and although it can be used to display notifications I need the text information to always be displayed... I could have used different icons to show a change in status in the notifytray but I really need text to display the status.
I'm trying to create a windows user control project that has a textbox placed on it.I want the textbox to fill the user control window.I've built the control and added it to another project, but it isn't behaving the way I want it too.When I drag and drop the control from the toolbox onto a windows form and try to resize it, because the textbox.multiline property has been set to True, the Textbox resizes horizontaly and not vertically (just like normal textboxes do) however the underlying user control window resizes which is undisireable. How can I get the user control window to stop doing this.
In vb.net and made a proj. in vb2005. but when i try to load a particular form(opens up in a mdi container like all others in the project) , an error-error creating windows handle pops up, the line is frmadmn(the form).show
What shall i do? i read a lil on the net about too many handles, user objects etc. but the stats of my proj. at the time of error are-handles-350,threads-17,user objects-235 gdi objects - 159. have these anything to do with the prob.. then what should i do..? i read about the dispose command also about how to use it ? what to dispose...?
How do I calculate a 15% discount in visual basic in when creating a windows application.I have two radio buttons Yes and No and when yes is selected a 15% discount is subtracted from the total price.So would I just say 15% as 0.15 or should I name the 15% as a constant?
In our application, we have a number of Windows Services (more than 30) that must run behind the scenes to process data at given times throughout the day. I was attempting to create a BaseService class that I could inherit from that would log to our database when the service started or stopped as well as some other common functionality. However, I ran into a show stopper in trying to create BaseService as MustInherit as we have a number of MustOverride properties. The issue lies in:
<MTAThread()> Shared Sub Main()
Our code is all in VB (as you can probably tell). Given that it is a Shared method, I cannot have it be overriden (i.e. make it MustOverride). Without this method, the code will not compile, however it will not really work in the base class. The code in this method is:
Dim ServicesToRun() As System.ServiceProcess.ServiceBase ServicesToRun = New System.ServiceProcess.ServiceBase() {New BaseService} System.ServiceProcess.ServiceBase.Run(ServicesToRun)
The BaseService (the name of my base class) cannot be created because it is specified as MustInherit. And therein lies my problem. I cannot create this in the Base Class and cannot override it in the inheriting classes.
Creating a pdf document using Itext is quite simple if your application is a web application because you can find samples to help you out all over the web. Creating a pdf document for a windows application on the other hand is not so easy. I cannot find a single sample online anywhere.so far this is what I have:
Private Sub PrintDefaultReport() 'Declare PDF document Dim doc As New Document(PageSize.A4, 40, 40, 0, 35) Dim MemStream As New MemoryStream
[code]....
What is the above equivalent for a windows application?
I'm wondering how I would go about creating a program that once installed was a windows toolbar. What I'm trying to do is similar to the clipboard, but I want to customize it to my own style. I work in a data entry job and many of the bills we enter have similar information that I'd like to be able to enter without repeated typing. I'd like the toolbar to be docked to the top of the screen, and have several buttons on it. Clicking a button, while having a focus in my data entry program, would paste the button's text (or the full text of what the button caption represented) into the selected field. Alternately, if focus between multiple applications is too difficult to try, then clicking the button would highlight the text and copy it to the windows clipboard, so I could then click back into my data entry program and hit ctrl-v. I dont need help on the program itself...just on how to make it as a windows toolbar, if possible.
I'm Creating a wrapper dll for my favorite Windows API functions. Normally when windows API calls fail, Nothing happens and you don't know why and this frustrates me. Although you can use their return value to determine If it was successful.
m planning to make it as such:1. BLL and DAL are on the same box.2. Only PL is installed on client machines.Simple enough. Right now am planning to go web service as I have no idea how to do this with windows forms. So in a nutshell, my question would be how to connect the PL to the BL and how to do this during the development stage. I was planning on deploying the BL as a webservice then during development, the PL sets a reference to it to get the data.Data will basically be datasets, datatables etc. Might also have a need to do some file transfer.
getting an error when creating a new record in SQL db from a windows app form.Here is the error:
System.Runtime.InteropServices.COMException (0x80004005): Data provider or other service returned an E_FAIL status. at ADODB.RecordsetClass.Update(Object Fields, Object Values) <code>[code]....
I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not underlining the G until I press the ALT key.Is there a way to have this underline the text that I put an ampersand in front of when the form/application starts instead of having to have the user press the alt key?
I am an application to make and I sit with the following problem. I want to add shortcuts to my program. The F10 key word. But the shortcut should work even if the program is not focused. How do I do this?
I'm creating a Setup Project (in Visual Studio 2008) for VB.NET application, everything works fine but I want to ask how to put an option for shortcuts. I mean, i know how to put shortcuts to desktop and start menu but I want some kind of checkbox where you'll have an option to put those shortcuts or not to?