New Posts  All Forums:Forum Nav:

vb.net help

post #1 of 13
Thread Starter 
so i have a text box on a form that is brought in by a control... so its actually not in the form itself. on the bottom of the form i have an ok button. but when ever the user presses enter in the box it enters ok instead of a new line... heres a picture its the notes box thats giving me issues whats highlighted is the issue301
post #2 of 13
Quote:
Originally Posted by Onions View Post

so i have a text box on a form that is brought in by a control... so its actually not in the form itself. on the bottom of the form i have an ok button. but when ever the user presses enter in the box it enters ok instead of a new line... heres a picture its the notes box thats giving me issues whats highlighted is the issue301

It sounds like you have a listener running "waiting" for you to hit the Enter key once the event occurs it triggers your action similar to the Okay button.
Edited by RagingCain - 2/23/12 at 3:07pm
Snowdevil
(16 items)
 
ASUS G750JM
(9 items)
 
 
CPUMotherboardGraphicsGraphics
[i7 4790K @ 4.4 GHz (1.186v)] [Asus Sabertooth Z97 Mark S] [nVidia Geforce GTX 1080] [nVidia Geforce GTX 1080] 
RAMHard DriveCoolingOS
[G.Skill 32GB DDR3 2133 MHz] [Crucial MX100 256GB] [Phanteks PH-TC12DX] [Win 10.1 Pro] 
MonitorMonitorKeyboardPower
[LG 29UM65 (2560x1080)] [QNIX Evo II LED (2560x1440)] [WASD v2 Tenkeyless] [NZXT Hale90 v2 ] 
CaseMouseMouse PadAudio
[ThermalTake GT10 Snow Edition] [Razer Mamba - Chroma] [Razer Kabuto] [Razer Man O' War] 
CPUMotherboardGraphicsRAM
i7 4770HQ Intel HM87 Express Chipset Geforce GTX 860M 8GB DDR3L 1600 MHz 
Hard DriveOptical DriveCoolingOS
Samsung SSD EVO DVD-RW Stock Windows 8.1 
Monitor
1920x1080 TN 
  hide details  
Reply
Snowdevil
(16 items)
 
ASUS G750JM
(9 items)
 
 
CPUMotherboardGraphicsGraphics
[i7 4790K @ 4.4 GHz (1.186v)] [Asus Sabertooth Z97 Mark S] [nVidia Geforce GTX 1080] [nVidia Geforce GTX 1080] 
RAMHard DriveCoolingOS
[G.Skill 32GB DDR3 2133 MHz] [Crucial MX100 256GB] [Phanteks PH-TC12DX] [Win 10.1 Pro] 
MonitorMonitorKeyboardPower
[LG 29UM65 (2560x1080)] [QNIX Evo II LED (2560x1440)] [WASD v2 Tenkeyless] [NZXT Hale90 v2 ] 
CaseMouseMouse PadAudio
[ThermalTake GT10 Snow Edition] [Razer Mamba - Chroma] [Razer Kabuto] [Razer Man O' War] 
CPUMotherboardGraphicsRAM
i7 4770HQ Intel HM87 Express Chipset Geforce GTX 860M 8GB DDR3L 1600 MHz 
Hard DriveOptical DriveCoolingOS
Samsung SSD EVO DVD-RW Stock Windows 8.1 
Monitor
1920x1080 TN 
  hide details  
Reply
post #3 of 13
Looks like the OK button becomes the default control to receive the press action. If this is the case, you can change the acceptbutton property of the form to none then it should take care of your issue.
post #4 of 13
Quote:
Originally Posted by linskingdom View Post

Looks like the OK button becomes the default control to receive the press action. If this is the case, you can change the acceptbutton property of the form to none then it should take care of your issue.

You change that in the Objects/Form properties from the design side in VStudio right? I think thats right... forgot all about that. Thanks for chiming in! I hate being stuck in Java world frown.gif
Snowdevil
(16 items)
 
ASUS G750JM
(9 items)
 
 
CPUMotherboardGraphicsGraphics
[i7 4790K @ 4.4 GHz (1.186v)] [Asus Sabertooth Z97 Mark S] [nVidia Geforce GTX 1080] [nVidia Geforce GTX 1080] 
RAMHard DriveCoolingOS
[G.Skill 32GB DDR3 2133 MHz] [Crucial MX100 256GB] [Phanteks PH-TC12DX] [Win 10.1 Pro] 
MonitorMonitorKeyboardPower
[LG 29UM65 (2560x1080)] [QNIX Evo II LED (2560x1440)] [WASD v2 Tenkeyless] [NZXT Hale90 v2 ] 
CaseMouseMouse PadAudio
[ThermalTake GT10 Snow Edition] [Razer Mamba - Chroma] [Razer Kabuto] [Razer Man O' War] 
CPUMotherboardGraphicsRAM
i7 4770HQ Intel HM87 Express Chipset Geforce GTX 860M 8GB DDR3L 1600 MHz 
Hard DriveOptical DriveCoolingOS
Samsung SSD EVO DVD-RW Stock Windows 8.1 
Monitor
1920x1080 TN 
  hide details  
Reply
Snowdevil
(16 items)
 
ASUS G750JM
(9 items)
 
 
CPUMotherboardGraphicsGraphics
[i7 4790K @ 4.4 GHz (1.186v)] [Asus Sabertooth Z97 Mark S] [nVidia Geforce GTX 1080] [nVidia Geforce GTX 1080] 
RAMHard DriveCoolingOS
[G.Skill 32GB DDR3 2133 MHz] [Crucial MX100 256GB] [Phanteks PH-TC12DX] [Win 10.1 Pro] 
MonitorMonitorKeyboardPower
[LG 29UM65 (2560x1080)] [QNIX Evo II LED (2560x1440)] [WASD v2 Tenkeyless] [NZXT Hale90 v2 ] 
CaseMouseMouse PadAudio
[ThermalTake GT10 Snow Edition] [Razer Mamba - Chroma] [Razer Kabuto] [Razer Man O' War] 
CPUMotherboardGraphicsRAM
i7 4770HQ Intel HM87 Express Chipset Geforce GTX 860M 8GB DDR3L 1600 MHz 
Hard DriveOptical DriveCoolingOS
Samsung SSD EVO DVD-RW Stock Windows 8.1 
Monitor
1920x1080 TN 
  hide details  
Reply
post #5 of 13
Thread Starter 
thnx guys imma try it tomorrow when i get to work... weve all been stumped for a week on this lol so they give it to the co-op
post #6 of 13
Thread Starter 
worked like a boss you guys have been +reped biggrin.gif
post #7 of 13
Thread Starter 
ok now i need to get it to only do that when the text box is in focus... so im trying to edit the propertly using the leave focus event.. but im lost frown.gif
post #8 of 13
Why are you creating the text box programatically instead of in the designer view? It might be easier to just draw it in there and use the .visible and .enabled (or .readonly) properties to show and hide it as necessary.
Downfall
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1100T BE @ 4.12 (265 x 15.5) @ 1.525v Asus Sabertooth 990FX 2x XFX 6870 Black Edition 8GB Corsair XMS3 9-9-9-24 1766mhz 
Hard DriveHard DriveCoolingOS
Corsair Force 3 Western Digital Black Edition Custom water cooling loop, started as Rasa RS360 Win7 x64 Enterprise 
MonitorPowerCaseMouse
Sony Bravia KDL-40S4100 (40" 1080P) Antec HCG-900 Cooler Master HAF 932 Logitech MX518 
  hide details  
Reply
Downfall
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1100T BE @ 4.12 (265 x 15.5) @ 1.525v Asus Sabertooth 990FX 2x XFX 6870 Black Edition 8GB Corsair XMS3 9-9-9-24 1766mhz 
Hard DriveHard DriveCoolingOS
Corsair Force 3 Western Digital Black Edition Custom water cooling loop, started as Rasa RS360 Win7 x64 Enterprise 
MonitorPowerCaseMouse
Sony Bravia KDL-40S4100 (40" 1080P) Antec HCG-900 Cooler Master HAF 932 Logitech MX518 
  hide details  
Reply
post #9 of 13
Thread Starter 
its ok i figuredit out.. i made an event of the boxc losing and gaining focus
post #10 of 13
Good stuff thumb.gif
Downfall
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1100T BE @ 4.12 (265 x 15.5) @ 1.525v Asus Sabertooth 990FX 2x XFX 6870 Black Edition 8GB Corsair XMS3 9-9-9-24 1766mhz 
Hard DriveHard DriveCoolingOS
Corsair Force 3 Western Digital Black Edition Custom water cooling loop, started as Rasa RS360 Win7 x64 Enterprise 
MonitorPowerCaseMouse
Sony Bravia KDL-40S4100 (40" 1080P) Antec HCG-900 Cooler Master HAF 932 Logitech MX518 
  hide details  
Reply
Downfall
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II 1100T BE @ 4.12 (265 x 15.5) @ 1.525v Asus Sabertooth 990FX 2x XFX 6870 Black Edition 8GB Corsair XMS3 9-9-9-24 1766mhz 
Hard DriveHard DriveCoolingOS
Corsair Force 3 Western Digital Black Edition Custom water cooling loop, started as Rasa RS360 Win7 x64 Enterprise 
MonitorPowerCaseMouse
Sony Bravia KDL-40S4100 (40" 1080P) Antec HCG-900 Cooler Master HAF 932 Logitech MX518 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming