CTRL-C, CTRL-V Not Working In Textbox In VB2008
May 15, 2009I noticed that ctrl-c and ctrl-v are not working in my project. I am using VB2008 and have an MDI project. The child forms have textboxes but I cannot use the shortcut.
View 3 RepliesI noticed that ctrl-c and ctrl-v are not working in my project. I am using VB2008 and have an MDI project. The child forms have textboxes but I cannot use the shortcut.
View 3 RepliesI am using visual studio 2005.If I try to do wordwrap using Key combination (ctrl+R, ctrl+R), I get following messege:"The Key combination (ctrl+R, ctrl+R) is bound to command (&Rename...) which is not currently available.
View 3 RepliesI am using a 3rd part dll file (SolidWorks EModelView.dll, COM file) that has a version of 9.2.0.128. When I add it to the resources for the application, however, the AxInteropEModelView.DLL and InteropEModelView.DLL references show a version of 9.0.0.0. When I install the application on a client machine and try to run it, the application says it cannot find AxInteropEModelView.DLL version 9.2.0.128!
View 5 Replieshow do i call a routine when the user press CTRL+Z or ctrl+somthing?
View 10 Repliesusing the getasynckeystate for ctrl + c and ctrl+ v or copy and paste..How will I do that in this code? For example when i type in notepad it should also do in the richtextbox with this code it work but when it comes to copy and paste word in notepad it does not works and the richtextbox is empty?
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
For i = 1 To 255
result = 0
result = GetAsyncKeyState(i)
[code]....
I am using vb2005 to send keystroke to stock application software so i need to send Ctrl+C to an open window in the stock software then send Ctl+V to Excel in a specified worksheet and cell
View 2 RepliesI have a form in which there is a datagrid and one Save button pnly.I want to save data also by pressing "Ctrl + S".I am using below code. but, its not working all the time means if there is focus on form,.....How can i achieve this. Tell me some modification like on which event i should do this.....
If e.Modifiers = Keys.Control And e.KeyCode = Keys.S Then
MsgBox("Ctrl + S is Pressed.", MsgBoxStyle.Information, MsgBoxStyle.OkOnly)
'--- Condition Here.
End If
I have the following code:
Private Sub myGrid_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles myGrid.KeyDown
If e.KeyCode = Keys.Divide AndAlso e.Control Then
[Code].....
This works (For "Ctrl"+"/"), but the problem is that this works for any key different than "-". If I specify that the Keycode is Keys.Subtract (To use "Ctrl"+"-") it is never caught!
I have the following code:
Private Sub myGrid_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles myGrid.KeyDown
If e.KeyCode = Keys.Divide AndAlso e.Control Then
Dim response = MsgBox("are you sure to delete a record?", vbYesNo)
If response = vbYes Then
[code]....
This works (For "Ctrl"+"/"), but the problem is that this works for any key different than "-". If I specify that the Keycode is Keys.Subtract (To use "Ctrl"+"-") it is never caught!
for a while now, i've been using labels and textboxes in my programs. labels to tell the property the user should enter in the text box. has anyone developed any textbox which can write, say, 'search criteria here' in faint silver which disappears when the user starts typing the search criteria in. it should be something like the dic reply box. has any one done this or seen a free control? i don't want to re-invent the wheel
View 5 Repliesi know this has to be simple but i can find anything anywhere tonight on how to check if while a textbox has focus if the ctrl+v or ctrl+c was pressed i simply need to use it like such:[code]
View 4 RepliesWhy when I press Ctrl+Tab in a MultiLine TextBox,
it enters a tab character even if I set the AcceptsTab property to false?
I set the MultiLine property to true, and AcceptsTab property to false.
is there a way to make a textbox searchable like those Ctrl + F which can be found in most of the windows application?
I have googled and found some functions which is quite similar, but I have an issue which for eg.
My multiline textbox contains a lot of text with scrollbar, somehow the text I want to find is in the middle, when I click the find button, the word is indeed found and highlight, but the scrollbar still remain on top.
I wonder how can I make the find adjust the scrollbar as well?
Inside a multiline Text Box I want it so that when a user presses Ctrl AND Enter then a new line is entered. But, if they press Enter on it's own, then it acts like the Accept button on the Form. I believe this is how Facebook does it.
Ctrl+Enter=NewLine Enter=Accept
I am using a masked edit text box in my windows application that was developed by using vb.net. In normal text boxes (CTRL+Z- to revert back to original value) is working fine. But In case of Masked Edit Textboxes its not working fine. This ctrl+Z should provide the functionality as same as normal textbox.
View 1 Replies In one of my forms witch I imported from VB2008 there are all properties saved in the *.resx file. One Property, of the Type System.Windows.Forms.Keys, can contain the Value 'Ctrl+F1' witch compiles fine in VB2008, but not in VB2010. To reproduce, simply add the following to any resx file:
<data name="cmdFenster.ShortcutKeys" type="System.Windows.Forms.Keys, System.Windows.Forms">
<value>Ctrl+F1</value>
</data>
It will compile fine with VB2008, but not with VB2010. Notice: The VB2010 also generates this Code in the resx file
I have a TextBox and set the MiltiLine property to true and AcceptsTab property to false.When the TextBox has focus and i press Tab it works fine and the next control get the focus, but when i press Ctrl+Tab it works as if AcceptsTab property is set to true and makes a tab character into the TextBox.The reason i press Ctrl+Tab.. when switching between forms in my MDI application.Now how to make a Ctrl+Tab when pressed works like Tab when pressed in a MultiLine TextBox?
View 1 RepliesCan i activate the Ctrl+Esc ?
View 9 Repliesi want to disable the Alt Tab, windows key, ctrl esc key. FOr my Log On Security that start up in coomputer like windows log on. Try to search hours for this but i cannot find the right solution im using vb.net 2005 and OS is Vista.
View 6 RepliesI'm making a system where only the supervisors can use the Ctrl+Alt+Del to bring up the menu (Vista / Windows 7) or start taskmanager (XP)Since my application will not be running on anything less than XP I don't need to worry about 95, 98, ME, 2000, etc. I have this code so far (found on here and a little edit by me) but the Ctrl + Alt + Del doesn't get stopped like I thought it would.
Note to use this from within Visual Studio you might have to untick the box for "Enable the Visual Studio hosting proccess". In VS 2010 it is found in Solution Explorer > My Project > Debug > Enable Debugers > Enable the Visual Studio hosting proccess I've found several ways to stop taskmanager loading but not to stop the menu being displayed. This code is working except for my little problem with the Ctrl Alt Del menu and has been tested by me with VS 2010 .NET4 on Windows 7
Form1.vb
Public Class Form1
Private Sub Form1_HandleCreated(ByVal sender As Object, ByVal e As
[Code]....
i want to disable ctrl Alt Del either using the approach below or if any other exist.
1. use vb.net to disable ctrl Alt Del
2. using a batch file to perform the task above and call in vb.net
please help as the code below is what i can think of and it is not helping in the project i am working on [code]
Does anyone knows how to disable ctrl+alt+del in XP? and.. i'm using Visual Studio 2008
View 16 RepliesI am working with MDI's. I have a MDI parent and childs.
But when I press Ctrl+F4 it closes the MDI child.
I am currently working on KeyEvents to disable this Ctrl+F4. But its not working.
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
Select Case (keyData)
[Code]....
I am creating a notepad-like application and I want to enable when the user press Ctrl + S that it will save.I already have the code to make it save through a menu option, but I don't understand how to enable it via Ctrl + S. Can someone guide me in the right direction
View 3 RepliesI would like to add ctrl + F as my hotkey into my vb.net chat application. i'm using Visual studio 2008.
View 4 RepliesI know there isnt a shortcutkey property for toolstripbuttons so I'm trying to make the mainForm keydown event listen for shortcuts. But I can't get it to work:
vb.net
Private Sub MainForm_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode.Equals(Keys.ControlKey And Keys.F) Then
[code].....
So I used some breakpoints and e only contains the ctrl key Not both.
How do I detect a ctrl+tab keypress?
Reason for asking: I want to stop a user from changing tabs in a tab control.
im doing a login i have finish it but you can close it by using alt+f4 so i need to block the alt key im using vb 2008
View 2 RepliesI want every time I create a tab, there to be a RichTextBox with dimensions 500 height 400 weight
View 4 RepliesI know the WebBrowser's use IE for the core, but no other IE shortcuts seem to work, other than the Ctrl+N (new window) one. It wouldn't be so bad if it didn't open IE, and my opened own application, but it doesn't. Any way to prevent this or make it open a copy of my own browser, instead of IE?
View 3 Replies