473,413 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

how to make text apear in GUI

hello all vb expert. i had develop a GUI using vb 6.0. did anybody know how to make text "your exceed limit. please reenter your value' when user enter the our of range value for X and Y. this is my source code for that GUI. i'm really appreciate! i'm trying to finish my final year project. i want to modified it!

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2. Dim Xvalue As Long
  3. Dim Yvalue As Long
  4.  
  5. For Xvalue = 0 To 15
  6.     cboXvalue.AddItem CStr(Xvalue)
  7. Next Xvalue
  8.  
  9.  
  10. cboXvalue.ListIndex = 0
  11.  
  12. For Yvalue = 0 To 15
  13.     cboYvalue.AddItem CStr(Yvalue)
  14. Next Yvalue
  15.  
  16.  
  17. cboYvalue.ListIndex = 0
  18.  
  19. MSComm1.CommPort = 1
  20.  
  21.  
  22. MSComm1.Settings = "9600,N,8,1"
  23.  
  24.  
  25. MSComm1.DTREnable = False
  26.  
  27.  
  28. MSComm1.PortOpen = True
  29.  
  30. End Sub
  31.  
  32. Private Sub cmdSend_Click()
  33. Dim Xvalue As Long
  34. Dim Yvalue As Long
  35.  
  36.  
  37. Xvalue = cboXvalue.ListIndex
  38. Yvalue = cboYvalue.ListIndex
  39.  
  40.  
  41. MSComm1.Output = Chr$(255) & Chr$(Xvalue) & Chr$(Yvalue)
  42.  
  43. End Sub
  44. Private Sub Form_Unload(Cancel As Integer)
  45. MSComm1.PortOpen = False
  46. End Sub
Mar 28 '08 #1
1 1186
debasisdas
8,127 Expert 4TB
If you are entering value from combo how can anyone enter value more than that ?
Mar 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
4
by: Peter Scott | last post by:
I created a table that has a column in that needs to contain a full Unix file path. Since 2048 was too long for a VARCHAR, I made it TEXT. I since populated the table. Now I want to make the...
4
by: Bob Franz | last post by:
Hello everyone, Basically what I am wondering is I have a running timer and once it reaches a certain time I want an image to apear that the user can click on. Is this possible and if it is can...
4
by: NH | last post by:
Hi, I just cannot get this to work. I want to make a cell editable in a datagrid only if the value of another cell is something specific. I am able to capture the value of the other cell via the...
4
by: Lars Netzel | last post by:
Hi On a developer computer I have built a small Form with a label telling the user to press a "update" button on the same form. When the button is pressed (on a user computer, not developer) a...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
11
by: mynkow | last post by:
Hi all, I have a problem with aligning text within a div. I want the text to be aligned at the bottom of the div. What is wrong with his code: <div style="height:150px; width:200px;...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.