Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » General Visual Basic » about v.b.6


about v.b.6Expand / Collapse
Author
Message
Posted 3/20/2010 3:39:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/7/2010 2:52:10 AM
Posts: 1, Visits: 2
hi

i have made a listbox in which u can add a number.but what happens if i add a something else

in the listbox accept number than whole programme shut down .i want my list box make in such a order that u can only enter number or . nothing else

please if somebody solve my query it would be better.

thanking u

rahul

Post #29013
Posted 3/20/2010 10:57:27 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 4/12/2010 10:24:58 AM
Posts: 35, Visits: 70
may i see ut code?
Post #29019
Posted 3/21/2010 9:43:49 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 6/30/2010 9:01:29 PM
Posts: 503, Visits: 2,337
Check out the IsNumeric() function in your library.

 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

<Vote here to make Keith a Moderator>

Mark's Syntax.Zip

I don't answer programming questions via PMs. That's what the forum is for! 

Post #29023
Posted 3/21/2010 6:12:02 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Today @ 11:19:17 AM
Posts: 1,795, Visits: 4,572
Welcome to A1vbcode rahul.

rahul_x2001 (3/20/2010)
hi

i have made a listbox in which u can add a number.but what happens if i add a something else

in the listbox accept number than whole programme shut down .i want my list box make in such a order that u can only enter number or . nothing else

please if somebody solve my query it would be better.

I'm just wondering why you need to add numbers to a ListBox? As you add a number then you add another number the second number will go on a new line unless you remember the text then Clear the ListBox and add the second number to the original numbers.

The program shouldn't shutdown what ever you're adding to the ListBox. There is something in your code thats making it shutdown. Please post your code inside Mark's Syntax.zip

What are you trying to achieve exactly?

Keith

http://www.martin2k.co.uk/forums/index.php?act=idx

I've been programming with VB for 14 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
 
Post #29024
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 6:38pm