home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

VB.Net Bug

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2870
Discussions: 200,968, Posts: 2,379,686, Members: 246,333
Old October 10th, 2002, 02:54 AM   Digg it!   #1 (permalink)
Ordained Mommy
 
NeoStarO1's Avatar
 
Join Date: Oct 2001
Location: Big Sky Country
Posts: 4,259
Blog Entries: 1
VB.Net Bug

oay for new thread for the bug i mentioned but is unrelated to my other problem, here is quote from email i got. I'll leave it up to you all to determine if this is actual bug or not.
***Names deleted to protect privacy***


Quote:
Hi All
Hey I found a bug today in VB.net that should come up when doing your lab.

On page 74 problem 48 you have two text boxes on your form.
when you click on one text box it loads the other text box with the contents of the text box that has been clicked, then it should clear the text box click

Well here is the bug, It make sense you would want to put your code in a click event, to find this you would be in the code window you have two drop down boxes, the let side is where you choose your object in this case the Text box, on the right side is where you choose the event procedure that you want to place your code in.

Well guess what it does not list the Click Event even there is a Click event for a text box. They do list a DoubleClick event, but that means you would have to click on the text box twice in fast succession to promote the action.

You can use the double click event it is teaching you the same logic that you would use in a Click Event. you can also change the DoubleClick part of declaration to just click, this has to be done to the statement " Handles txtMyText.DoubleClick" to something like this "Handles txtMyText.Click"

If you do that then you only have to click once on the text box as the exercise asks for

Have a nice evening I will see you all in class

NeoStarO1 is offline   Reply With Quote
Old October 10th, 2002, 09:41 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,396
hmm.. seems I was missing another event for another control as well but can't remember Or it could be I was looking in the wrong place
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is online now   Reply With Quote
Old October 15th, 2002, 01:40 AM     #3 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
I tried in C# building a double-click event for a text box and then changing it to click in code. Clicking it did not fire off the event. Double-clicking it did, even though I changed it to click.

It might have something to do with the fact that clicking would normally be to position the cursor inside the text box to do things with the text.

I even tried adding a Windows Forms 2.0 text box COM object. It also only works with double-click. I think it all boils down to the fact that texboxes are meant to be clicked once to edit the text, and they don't want that hindered by other events that might lose the focus of the text box.
Creosote is offline   Reply With Quote
Old October 15th, 2002, 01:47 AM     #4 (permalink)
Ultimate Member
 
FalcomPSX's Avatar
 
Join Date: Oct 2001
Location: SoCal.
Posts: 2,853
Send a message via ICQ to FalcomPSX Send a message via AIM to FalcomPSX
I've seen a bug in vb.net...

sometimes you hit start(with debugging) and your program won't start...until you hit stop and start another 2-5 times or so. It works every time in Start without debugging mode.

but this is more of a bug with the editor/enviroment then the compiler. and I think the textbox click event is disabled on purpose, it makes sense anyway.
__________________
FalcomPSX
FalcomPSX is offline   Reply With Quote
Old October 15th, 2002, 01:57 AM     #5 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
I've seen that too. Only makes me stop and hit start again once though.
Creosote is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3030)
Forty-six years ago today (12)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
windows vista security holes (16)
Internet Lost (5)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Recent Discussions
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
Nvidia GTX 260 problem (2)
windows vista security holes (16)
Delete an OS (8)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Help getting around port 80 for camer.. (4)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)


All times are GMT -4. The time now is 04:54 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28