File I/O And Registry :: Using Keyboard Shortcuts?
Sep 15, 2010
For example if I have a button that says "Copy" and I want the "C" underlined so I can press the "c" key and have the buttonpressed event fire, I have to have "Hide Underlined letters for keyboard navigation until I press the ALT key" unchecked in the Display Properties>Appearance>Effects area. If it is checked, a user would have to press the ALT key to make the underline visible (for each form).
View 8 Replies
ADVERTISEMENT
Apr 20, 2009
I want to be able to edit my text box pretty much like you can with windows notepad..
in notepad, when you press CTRL + C , it copies, CTRL + V , pastes , and so on.
View 5 Replies
Dec 23, 2009
I am trying to assign a keyboard shortcut to a macro but "Press shortcut keys" textbox does not accept input. The "Remove" and "Assign" buttons are disabled. I have a command highlighted and I've tried in all the available "Keyboard Mapping Schemes". I've noticed that on some of the samples on "Modifying Keyboard Shortcuts" there were buttons for creating new mapping schemes. I'm assuming those are a visual studio version prior to mine - maybe 2003. Mine only contains the reset button.
View 2 Replies
May 3, 2011
i'm currently working on a security program and i need to temporarily disable some key combinations using vbnet. Key combinations such as: Ctrl-Alt-Delete, Alt-Tab, Alt-Esc, Win Keys, Alt Keys, Esc.
View 1 Replies
Apr 7, 2012
So recently my Netbook keyboard stopped working, I got this new one. That would not be a problem if it was not for the missing [FN] key. My computer has several shortcuts, like FN + F6 = Turns screen off.
I cant seem to figure out how to bind these shortcuts to buttons in Visual Basic so I can just hit the button and turn the screen off that way, I've only used VB to make small simple fun stuff.
View 4 Replies
Dec 15, 2010
Does anyone know an easy way to set a keyboard shortcut for a tab in a tab control in Visual Studio 2010? Is there some property I can set?
I looked online, but all the articles I saw were very confusing.
View 2 Replies
May 30, 2009
I'm afraid I don't have any code to show, as I don't know where to begin with this. I'd like to have it so that if the user presses "Ctrl+O" it will run the OpenDialogue from the Menu. If someone really wants me to (don't see how it'd help, but whatever it takes ) I can post the fully functional open function.
View 4 Replies
Feb 7, 2012
I'm running Visual Studio 2008 v9.0 I'm having difficulty getting the bookmark keyboard shortcuts to work as documented. I did this:[code...]
I must be doing something wrong here. What should I do so that the bookmark shortcuts work as advertised?
View 3 Replies
Feb 15, 2012
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.
View 2 Replies
Nov 15, 2010
Is there a way in VB.NET to replicate C# behavior on code snippets in case of capturing events?
I.E.in C#:Btn.Click+= and then double-tab. Creates an handler for btn.click event.
View 2 Replies
Apr 8, 2009
In the Keyboard Shortcuts properties menu some of the options are F13-F24, what these are, as these buttons do not appear to exist.
View 2 Replies
Nov 26, 2008
How do I enable Ctrl+C, Ctrl + X and Ctrl+V for textboxes in my application? I can copy, cut and paste by right-clicking the textbox but keyboard shortcuts won't work... Also, in the menu under Edit I have Cut , Copy, and Paste but they don't work either. Under the code for these buttons I see the following:
Private Sub CutToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Handles CutToolStripMenuItem.Click
' Use My.Computer.Clipboard to insert the selected text or images into the clipboard
End Sub
View 2 Replies
Jul 21, 2010
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]
View 5 Replies
Aug 19, 2010
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?
View 2 Replies
Jan 21, 2009
Error is coming Registry Access is not allowed.While Opening a Key.
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
NewDelete("HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun", "Sonia")
End Sub
[CODE]...
View 1 Replies
Jan 31, 2009
I've had a bit of a look around the net and on the forums but I've yet to find an answer to my question. I've got Visual Basic 2008 Express and I'm trying to write some registry entries, I can write strings fine just using
[Code]...
View 1 Replies
Aug 19, 2010
I'm running in to a bit of a strange error with an application I'm writing. I have a number of shortcuts on my computer desktop that take me to my various folders (documents, music, etc) and have always been able to navigate using them when I open a file through applications such as Word. However when I use an OpenFileDialog box in VB.NET and select one of these shortcuts to take me to the file I'm after I am getting the following error message...
View 3 Replies
Jul 14, 2011
Currently, I am try to get the email addresses that have been saved or stored by the user of the computer. This isn't the emails that the user has sent or received, or the contacts he/she has in his address book. Just simply the email accounts that have been accessed from the computer.I know that there are some locations stored in the registry that have the email account. The email addresses that are used on the current computer. I just can't seem to find them on my computer.I am not sure if the registry is the only place to find it or if it stored on the web browser such as internet explorer or google chrome.
View 1 Replies
Aug 27, 2008
I am writing an application that connects to a specific com port. This com port can change depending on how many physical ports are on the PC, and if other USB devices have installed com ports before this one.
I have the communication to the com port all working great, but I need to get the com port description not just the "COM#" which is all I currently get.
I found in the registry where the description is stored but am having trouble doing what I need.
In this key:
Code:
HKEY_LOCAL_MACHINESYSTEMControlSet001ControlClass{4D36E978-E325-11CE-BFC1-08002BE10318}
there is a varied number of sub keys. The are numbered 0000-NNNN depending on how many ports you have. Inside each of these keys, there are multiple values, although I am only interested in one or 2 of them.
My problem is, that I do not know how to get a list of the subkeys (the 0000-NNNN keys/folders) from the original key I posted. I have looked through a few registry tutorials, and I can view the default value in the listed key, but I could not find how to list the subkeys of the listed key.
Does anyone have any sample code they could share that shows how I can get a listing of subkeys, and then run through those subkeys checking for a specific value in one of the strings contained in the subkey?
I am using VB.net 2008 and Windows XP.
View 1 Replies
Jan 21, 2012
I have several programs that must write to HKLM in XP and Windows 7/64 Pro.The programs work in VB6 but not in VB.Net 2008 on target machines. It does works on our development machine. [code]I just cannot figure out why VB6 works but .net doesn't and fails only on the target machine not the development machine.
View 2 Replies
Mar 16, 2010
How can I change the permissions of a registry key. I want to allow anyone in the "Users" group to be able to write to "SOFTWAREMyApp".
View 2 Replies
Oct 17, 2009
I need to be able to change a line in the regisrty an am not sure how to go about it, i have searched but nothing i can understand at the moment.
Code:
HKCU,"SOFTWAREMicrosoftInternet ExplorerDesktopGeneral","Wallpaper",0x00020000,"%SYSTEMDRIVE%WebDreamSceneBeach.html"
The part in bold is the part i need to be able to change as i am having to write a little program to change the background on the desktop.
I should be ok once i know more on how to do things like this.
View 2 Replies
Oct 27, 2010
I just bet the answer to this question already exists, however I saw no search mechanism under the forum. Anyhow, I would like to change registry data, and this code is asking for an instance to the object.
Dim RegKey As RegistryKey = My.Computer.Registry.LocalMachine.OpenSubKey("HKEY_CURRENT_USERSoftwa reAnyDWGSoftwareDWGtoPDFProSettings", True)
RegKey.SetValue("OutputPDFFileOpt", 1)
Finally, I want to apply this setting to the program on four different computers (local, and three others on the network).
View 1 Replies
Aug 13, 2011
Currently I am using this code to check for Firefox on a 32 bit machine
Code:
Dim Firefox32 As String
Firefox32 = My.Computer.Registry.GetValue _
("HKEY_LOCAL_MACHINESOFTWAREMozillaMozilla Firefox 5.0in", "PathToExe", Nothing)
MsgBox("The value is " & Firefox32)
If the value is found then the above message is fine, but if the entry is not found I want it to display a message like: "Firefox could not be found" instead of "The value is: " What code would make this appear?
[Code]...
View 4 Replies
May 4, 2009
I need to write data to a file, preferably in binary format, but I am unaccustomed with the concept. Where's the easiest place to get the basics? I could come here with a specific need, but I'm at the point right now where I am more willing to work within the confines of keeping it simple.
Here's what I know:
1. how to open a new file
2. how to specify the record length
3. how to close the file
Some specific questions:
Does the record length have to be constant throughout the file?
Can I read the nth record without reading the whole file?
View 8 Replies
Feb 3, 2010
I am working on a VB Console Application that takes an Autocad drawing type DWG and converts it to a PDF using a shell command that calls a third party application. In this case, acmecadconverter.exe from www.dwgtool.com. Then the PDF that is created needs a unique watermark, so I call a second application for that called pdftk.exe from www.accesspdf.com/pdftk/.
Everything works as intended, except when I try file names that contain spaces. The file system object does not tolerate spaces in the drawing file name. For instance, the following command gives me a system.io.filenotfoundexception...
My.Computer.FileSystem.RenameFile("Test Flowchart1.dwg", "Test~Flowchart1.dwg")
It's the same problem for all of my File System commands. Either file not found or invalid arguments.
The complete script I'm using is here:
Code:
Sub Main()
Dim arrArgs() As String = Command.Split(","), _
i As Integer, folderPath As String, myPart As String, _
[Code].....
View 2 Replies
May 13, 2012
I'm currently developing an editor for an AFL management sim.I want to be able to load three or four multidimensional arrays to the program, then save them to the same file. I tried the tutorial on here but got completely muddled up. Why can't it be easy like in VB6 When it was like 10 lines of code tops!
View 5 Replies
Jan 7, 2009
I am writing a program to calculate Pi to several hundred billion decimal places and this will require lots of GB of memory. I wrote a test program in VB2008 that saved the first 16 digits of Pi (without the decimal point) to both a text file and a random access file, just to be sure it was outputting the numbers properly. For reference the first 16 digits of Pi are:
View 8 Replies
Jan 22, 2009
I have a program that can save to a .txt file.The issue is I need it to be done in a tab delimited way.Basically:
TextHere<Tab>TextHere<Tab>TextHere<NextLine>
TextHere<Tab>TextHere<Tab>TextHere<NextLine>
I have this so far, but all it does is put the TextBox1.Text next to TextBox2.Text
Code:
SaveFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"
Dim FileWriter As StreamWriter
Dim results As DialogResult
[code]....
View 7 Replies
Dec 6, 2010
Our program will start with the help of a FileSystemWatcher object. How can we check or the file is total copied, for example the file is 100 Mbyte it take a time it's ready for use. Idea:
Do While True
Try
N = testForUse(BigFile)
If N = 1 Then Exit Do
[CODE]...
View 3 Replies