|
Hi, you can manipulate the KeyChar property inside a TextBox.KeyPress handler;
this is an example in C#:
private void tb_KeyPress(object sender, KeyPressEventArgs e) {
e.KeyChar=e.KeyChar.ToString().ToUpper()[0];
}
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
hi guys
i want input in a text box in upper case,,
can u tell me how to do that ?
is there any property ?
thansl in advance
hello
|
|
|
|
|
ghumman63 wrote: is there any property ?
Nope. Trap the KeyPress event and change the KeyCode from lower case to upper case.
"The early bird may get the worm, but the second mouse gets the cheese" - anonymous, found in Uncle John's Bathroom Reader
|
|
|
|
|
Hi guys.
i can explain for my doubt with example.see.my table have multiple type of employee details like as Mangemment,Programmer,Designers,Accountants,Contra ctEmployees.Each type of department having many employee details.Now my drop down list having types of department names like that above types of department names..if i select any one type of department data wil be display in gridview format .gridview data column as employee Name,Address,Phone_No,email_address and each every row with checkboxes.gridview showing data according to select the dept.No problem.
first I select Mangemment type of employee grid view showing that type of employee details ,here i checked first two employee details then checkbox values put in one viewstate,then i go to Programmer type of employee it showing that type employee details here i want to checked two employee details using checkbox but what happened first two checkboxes are already checked. so view state having proper checked check box values but problem is
whenever i go to select for another type of employee details checkboxes are checked based upon order of previous checked index.
this is my problem.plz clear my problem.its very urgent.
whenever i select dropldown list viewstate values is emty . this is my problem.
--------------------------------------------------------------------------------
Thanigaimani.thirumalai
|
|
|
|
|
You should Post this question in ASP.NET forum instead of VB.NET.
AliAmjad(MCP)
First make it Run THEN make it Run Fast.
|
|
|
|
|
Hi all
Im trying to connect to a database that is hosted by an ISP using vb.net(widows app) and mysql
The problem is, when I try to connect I get an error message that says ‘Unable to connect to any of the specified mysql hosts : error code 1045
Can someone help by giving suggestion on what I can do to get to work without have a ask the too tone down their security policies
Ive tried connecting via ssh without any luck
Pls help
im a junior developer at a company called securemail in south africa
|
|
|
|
|
Raise a support ticket with the ISP to find out why your connection requests are failing?
|
|
|
|
|
thanx for the response, but i think im about to find a solution to this problem
i will post it when i come right
Thabang Makola
im a junior developer at a company called securemail in south africa
|
|
|
|
|
Hi all
i am using VB.Net for my application i have a list bxi in that which contains the item for currency master it has the values like (Rupees (Rs.)) now i want to give some value for each item so that i could select the get that value on selected index changed to perform some action like update or delete so plz give the code or explain it how could i do the same.
with regards
yogesh agarwal
|
|
|
|
|
hi ,
I am creating a controls of type combobox at runtime when user clicks a button . If i click the combobox ,it show the custom properties of combobox inherited from Combobox.
Here when i am entering items of a combobox and clicking again that particular combobox , It's not showing the items which i entered .
So how to maintain those items of that combobox when users comebacks to that particular combobox 1,,,etc
1) How to Handle Items Property as a property for runtime combobox ? <br />
<br />
2) How to Show the items of particular combobox when user selects again?
dvs
|
|
|
|
|
You could code against the Validate Event to add the Text to the Combo Box:
If Me.cbo.Text <> "" Then
Me.cbo.Items.Add(Me.cbo.Text)
End If
The Fanatical All Black Supporter - Kea Kaha
|
|
|
|
|
This is not the thing . It deals with String Collection Editor and some other things .Those items are not persistent there for that combobox .
I want to add only Items as strings .I amnot gettingthe correct help from web .
I am new to this thing .
dvs
|
|
|
|
|
hi,
I am creating a chat program,which will be used over internet.So i am using winsock component of vb6.0 in vb.net.Now i want to pass an IP address of remote pc(B) to winsock component for connecting with pc(A).For this whenever a remote pc(B) logs in, i want to retrieve its IP address which can be used for my pc(A) over internet,so how will i get that IP address?
coolsatty
coolsatty
|
|
|
|
|
You won't get the local ip of the machine, only the ip from the router that it is on.
"The early bird may get the worm, but the second mouse gets the cheese" - anonymous, found in Uncle John's Bathroom Reader
|
|
|
|
|
Then how this yahoo msgr works.
coolsatty
|
|
|
|
|
It only knows whats up to your router, in terms of ip, then the router redirects.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
can you elaborate it, how can i do it with winsock component,thank u.
coolsatty
|
|
|
|
|
Does VB.Net allow you to mouse over an image and enlarge it? Or am I completely off? Is dreamweaver the answer...I am new as of yesterday to all of this so Im learning everyday!
I am excited to learn this!!
thanks
|
|
|
|
|
You can probably use the MouseOver event to do whatever you want (for the most part) with the image when running the mouse over it.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
e36k224 wrote: Does VB.Net allow you to mouse over an image and enlarge it?
In ASP.NET ? VB.NET won't allow to do it when using with ASP.NET. You need to use some javascript for that.
|
|
|
|
|
I have several thousand small text files (each containing data on a separate stock) that I need to sequentially read and write. What would be the fastest file format to convert these files to in order to do that? I tried to create a datatable and serialize it, which seems pretty good -- but is it likely to be the best?
Thanks!
|
|
|
|
|
cstrader232 wrote: several thousand small text files
Certainly if you are going to be using the data many times you would be better to convert the files into a database of some description, then work with your database.
Of course, all this goes out the window if you get a new set of "several thousand small text files" each day...
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
Yes the files are new every day.
Isn't it possible to store the data from a text file in a file that is _smaller_ than the textfile itself? If I create a database and then serialize it, the resulting file is about 10x _larger_ than the original textfile.
Is there a binary file format that would allow a quicker read of the data into a datatable? Or is serializing the datatable likely to be fastest?
Thanks
|
|
|
|
|
What exactly is it that you are trying to accomplish?
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
OK, I want to read the file from disk. It is an two dimensional array of double() - size about 10 x 300
Then I need to go through the array and make some simple calculations
Then close the file and do the next file.
...many thousands of times, as fast as possible.
Perhaps I should be using binarystreamreader?
Do datatables have a lot of overhead?
thanks
|
|
|
|