473,770 Members | 7,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do i display the company name starting with letter a in textbox

17 New Member
i am using dotnet 2003.i am doing my project in vb.net windows application.i have two form in my project.first form is datagrid .In second form label and textboxes are avilable to save the entering values in datagrid of first form through this 2nd form.my problem is,in 2nd form,if i enter letter a in findtextbox and i click find button means,i want to display the values automatically (assyst in companynametext box,vijay in contactpersonte xtbox,cbe in addresstextbox) in 2nd form.
for example,
in first form,
there are 4 columns named as companyname,con tactperson,addr ess in datagrid.
values are assyst for companynamecolu mn,vijay for contactperson column,cbe for address column.now values in datagrid like below
companyname contactperson address
assyst vijay cbe

in 2nd form,there are 4 label and 4 textbox.textbox are named as findtextbox,com panynametextbox ,contactpersont extbox,addresst extbox.
my problem is,
in second form,
if i enter letter a in findtextbox and i click find button means,i want to display the values automatically (assyst in companynametext box,vijay in contactpersonte xtbox,cbe in addresstextbox) in 2nd form.
during runtime in vb.net windows application.so how i do these.plz help me.
Jun 13 '07 #1
2 1741
blackjack2150
79 New Member
Use the OnChange event of your textbox to select the records starting with that letter(s).
You will have to use the "LIKE" clause in your SQL SELECT statement to get the values starting with a specific value:

SELECT * FROM TableName WHERE CompanyName LIKE 'A%'

NOTE: The wild card character('%' in my example) is different depending on the Database engine used. You'll have to do some research to find the value for your provider if it doesn't work with '%'.
Jun 13 '07 #2
vanc
211 Recognized Expert New Member
i am using dotnet 2003.i am doing my project in vb.net windows application.i have two form in my project.first form is datagrid .In second form label and textboxes are avilable to save the entering values in datagrid of first form through this 2nd form.my problem is,in 2nd form,if i enter letter a in findtextbox and i click find button means,i want to display the values automatically (assyst in companynametext box,vijay in contactpersonte xtbox,cbe in addresstextbox) in 2nd form.
for example,
in first form,
there are 4 columns named as companyname,con tactperson,addr ess in datagrid.
values are assyst for companynamecolu mn,vijay for contactperson column,cbe for address column.now values in datagrid like below
companyname contactperson address
assyst vijay cbe

in 2nd form,there are 4 label and 4 textbox.textbox are named as findtextbox,com panynametextbox ,contactpersont extbox,addresst extbox.
my problem is,
in second form,
if i enter letter a in findtextbox and i click find button means,i want to display the values automatically (assyst in companynametext box,vijay in contactpersonte xtbox,cbe in addresstextbox) in 2nd form.
during runtime in vb.net windows application.so how i do these.plz help me.
In order to pass values between forms, you should look up delegate or attribute option. If you have a database running underneath, you should look up that database, this is much easier way to do this.
Try those ways, if it's still, give me a buzz.

Cheers.
Jun 13 '07 #3

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

Similar topics

3
1946
by: Michelle | last post by:
Hi, I want to display some pretty basic xml data in a .NET user control that I would like to build for my site. I am getting the XML from a URL that has been provided to me (i.e. http://domain.com/somelink.asp). If I type the URL into my browser, the xml doc below is displayed. How can I incorporate the XML into the user control so that I can display the company name on my web page?
0
1005
by: rakesh_cool12 | last post by:
Myself doing one form based application. where there will be one textbox. when i enter 1st letter in that textbox it will display all the website start with that letter in that form . i am doing this in managed vc++.net. so plz somebody guide me that which control i have to put in the form for displaying all the hyperlink. and how to check always with every letter.
3
10819
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one months date in another textbox. and while pressing the second button (submit) i need to display the date displayed in the textbox as itself and the records between thoses two dates. if that date is still there in the textbox only i can sort the...
1
1572
by: sathyan8294 | last post by:
i want to display the name starting with any letter(A-Z,a-z) in textbox from sqldatabase through datagrid using vb.net windows application. for example, values are in datagrid like companyid companyname contactperson city 1 IBM rajesh Bangalore 2 Wipro kannan Chennai...
2
1499
by: backups2007 | last post by:
I have a customer information form that has a list box containing all the names of the customers. And when submitted and inserted to the database, automatically displays the information onto the list box. I want to be able to display data that starts with the first letter of the last name. For example, if I input john smith, all customers with last names starting with 's' will be displayed. in the list box. How can it be done? Please help.
7
3484
by: TechnoAtif | last post by:
Hi..There is again a similar problem..Now i;ve got the option values of list?menu box to show the textbox. If the option value of list is yes then the textbox is to be displayed . Can anyone help..through php or javascript. ONe more thing..How can i perform the same function for more than one such kind of problem..I mean if there is any other place in the form where i have to display textbox on selecting a particular value.how can it be...
0
1069
by: =?Utf-8?B?RnJlZGVyaWMgSHV0b3c=?= | last post by:
I am trying to build a web site using C# 2005 and msSQL, and I am trying to build a page that displays for products : A B C D E F G ... Z # If there is something an item starting with the letter A (for example), the A would be in BOLD and selectable (same thing for the other letters, # is for all others). Once the user click on the starting letter, it would display in a gridview,
16
11844
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality that most Windows programs have, so I'm suprised it's not easier to implement in Access/VBA. Through Google, I found two VB6 examples and one VBA example on the Access Web written by Dev Ashish. The VB6 examples used loops to keep checking...
13
3092
by: PhpCool | last post by:
Hi, since sometime I'm stuck in a problem where I want to check or uncheck all the checkboxes. If I'm choosing name for the checkbox array as 'chkbx_ary' then I'm able to check/uncheck all the checkboxes (code pasted below). But if name of the checkbox array is 'chkbx_ary' then it's failing. I want the name to be 'chkbx_ary' because I want to access this array at server side. Though one may not require to see php part but I'm still pasting...
0
10230
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10058
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10004
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7416
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.